Skip to content

Conversation

@afuno
Copy link
Member

@afuno afuno commented Jul 7, 2025

No description provided.

@afuno afuno self-assigned this Jul 7, 2025
@afuno afuno added the feature label Jul 7, 2025
afuno added 3 commits July 9, 2025 03:24
- Introduced a centralized configuration object for the `Servactory::Web::Engine` to manage settings such as `mount_path`, `app_name`, and URLs.
- Refactored components to use `Engine.config.servactory_web` for configuration instead of global settings.
- Added validations for critical configuration attributes such as `mount_path` and `app_name`.
- Updated tree builders to use the new configuration structure.
- Enhanced routing with a `mount_servactory_web` method for simplified inclusion in routes.
- Improved maintainability and consistency across the Servactory::Web module.
- Updated version references in layout file to use `::Servactory::VERSION::STRING` for consistency.
- Added a new initializer to validate `Servactory::Web` configuration after initialization.
- Raised an error if the configuration is invalid, displaying all validation errors for easier debugging.
- Improved maintainability by ensuring stricter validation of configuration attributes.
module Servactory
module Web
module Routing
def mount_servactory_web(under:, at: Engine.config.servactory_web.mount_path)

Check warning

Code scanning / Rubocop

Checks for unused method arguments. Warning

Lint/UnusedMethodArgument: Unused method argument - under.
- Added `propshaft/railtie` to the spec setup to ensure full initialization for tests.
- Adjusted `servactory.rb` initializer to configure `Servactory::Web::Engine`, including setting a mount path and services directory.
- Rearranged `require` statements in `spec_helper.rb` for consistency.
- Enhanced configuration flexibility by introducing new attributes like `mount_path` and `app_services_directory`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants