[devtools] sync

This commit is contained in:
dry-bot 2021-02-15 10:05:01 +00:00
parent 0fea0f7373
commit 6c457b2ecf
2 changed files with 33 additions and 0 deletions

View File

@ -1,5 +1,37 @@
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
## 0.12.1 2021-02-15
### Added
- Settings may be specified with a `cloneable` option, e.g.
```ruby
setting :component_dirs, Configuration::ComponentDirs.new, cloneable: true
```
This change makes it possible to provide “rich” config values that carry their own
configuration interface.
In the above example, `ComponentDirs` could provide its own API for adding component
dirs and configuring aspects of their behavior at the same time. By being passed to
the setting along with `cloneable: true`, dry-configurable will ensure the setting's
values are cloned along with the setting at all the appropriate times.
A custom cloneable setting value should provide its own `#initialize_copy` (used by
`Object#dup`) with the appropriate logic. (@timriley in #102)
### Fixed
- Only `#initialize` instance method is prepended, leaving the rest of the instance
methods to be included as normal again. This allows classes including
`Dry::Configurable` to override instance methods with their own methods as required
(@adam12 in #103)
[Compare v0.12.0...v0.12.1](https://github.com/dry-rb/dry-configurable/compare/v0.12.0...v0.12.1)
## 0.12.0 2020-12-26

1
CODEOWNERS Normal file
View File

@ -0,0 +1 @@
* @solnic