Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for dry-configurable settings separation #249

Merged
merged 6 commits into from
Oct 6, 2022

Conversation

timriley
Copy link
Member

@timriley timriley commented Oct 5, 2022

The main change here is that we stop relying on Dry::Configurable::Config internal implementation details by using the new #configured? API introduced in dry-rb/dry-configurable#143.

While we're here, we make one other small tweak to improve dry-configurable compatibility: use dry-configurable's class-level #finalize instead of Config#finalize directly, which will mean that we'll continue to have correct behaviour if dry-configurable ever moves any additional logic to this class-level method.

Now we’ve introduced `Config#configured?` as public API to dry-configurable, we no longer need our own implementation, which decouples ourselves from dry-configurable internals.
This change has no material impact (the result is the same as calling finalize directly on config), but it ensures we continue to invoke the correct behavior if dry-configurable ever moves any logic to its class-level finalize method.
@timriley
Copy link
Member Author

timriley commented Oct 5, 2022

Since this is a fairly rote PR, I intend to merge it in a day or so (i.e. next time I'm working on this) to get ready for releasing both dry-configurable and dry-system.

@timriley timriley merged commit ee8904e into main Oct 6, 2022
@timriley timriley deleted the update-for-dry-configurable-settings-separation branch October 6, 2022 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants