v0.13.0
Added
-
Added flags to determine whether to warn on the API usage deprecated in this release (see "Changed" section below). Set these to
false
to suppress the warnings. (#124 by @timriley)Dry::Configurable.warn_on_setting_constructor_block false Dry::Configurable.warn_on_setting_positional_default false
Fixed
- Fixed
ArgumentError
for classes includingDry::Configurable
whoseinitializer
has required kwargs. (#113 by @timriley)
Changed
-
Deprecated the setting constructor provided as a block. Provide it via the
constructor:
keyword argument instead. (#111 by @waiting-for-dev & @timriley)setting :path, constructor: -> path { Pathname(path) }
-
Deprecated the setting default provided as the second positional argument. Provide it via the
default:
keyword argument instead. (#112 and #121 by @waiting-for-dev & @timriley)setting :path, default: "some/default/path"
-
[BREAKING] Removed implicit
to_hash
conversion fromConfig
. (#114 by @timriley)