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

Use setting kwargs to fit new dry-configurable API #190

Merged
merged 1 commit into from
May 24, 2021

Conversation

timriley
Copy link
Member

@timriley timriley commented May 20, 2021

This updates the setting declarations to use the updated dry-configurable API, which uses default: and constructor: instead of second positional arg and trailing block arg respectively.

This will also unbreak the view integration tests on hanami/hanami for Ruby 2.6 and 2.7, due to their misinterpretation of a hash argument as keyword arguments.

@timriley timriley force-pushed the use-kwargs-for-dry-configurable-settings branch from 7184111 to a2d5832 Compare May 20, 2021 12:15
Gemfile Outdated
@@ -8,6 +8,8 @@ eval_gemfile "Gemfile.devtools"

gemspec

gem "dry-configurable", git: "https://github.com/dry-rb/dry-configurable.git", branch: "master"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @timriley , is this new line supposed to be here, or is it a leak from your debugging session? 🙂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waiting-for-dev Thanks for checking :) It's needed here for the time being, to allow the tests on the master branch to pass. Without this they'll fail because they don't work with the latest release of the dry-configurable gem.

When it comes to preparing all these changes for release, I'll do it in the right order (e.g. dry-configurable first, others afterwards) and pull out these Gemfile entries before each release.

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