Skip to content

Commit 78bc066

Browse files
committed
Bump v2.2.0
1 parent 31b62c7 commit 78bc066

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [2.2.0] [2017-09-13]
9+
10+
### Added
11+
- Option `:desc` for option/param to add a description (nepalez)
12+
13+
- Methods `Definition#inch` and `Config#inch` to inspect definitions (nepalez)
14+
15+
```ruby
16+
class User
17+
extend Dry::Initializer
18+
option :name, proc(&:to_s), optional: true, desc: "User name"
19+
option :email, optional: true, desc: "user email"
20+
end
21+
22+
User.dry_initializer.inch
23+
# @!method initialize(*, **options)
24+
# Initializes an instance of User
25+
# @option [Object] :name (optional) User name
26+
# @option [Object] :email (optional) User email
27+
# @return [User]
28+
```
29+
830
## [2.1.0] [2017-09-11]
931
1032
### Added
@@ -687,3 +709,5 @@ First public release
687709
[1.4.0]: https://github.com/dry-rb/dry-initializer/compare/v1.3.0...v1.4.0
688710
[1.4.1]: https://github.com/dry-rb/dry-initializer/compare/v1.4.0...v1.4.1
689711
[2.0.0]: https://github.com/dry-rb/dry-initializer/compare/v1.4.1...v2.0.0
712+
[2.1.0]: https://github.com/dry-rb/dry-initializer/compare/v2.0.0...v2.1.0
713+
[2.2.0]: https://github.com/dry-rb/dry-initializer/compare/v2.1.0...v2.2.0

dry-initializer.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |gem|
22
gem.name = "dry-initializer"
3-
gem.version = "2.1.0"
3+
gem.version = "2.2.0"
44
gem.author = ["Vladimir Kochnev (marshall-lee)", "Andrew Kozin (nepalez)"]
55
gem.email = "[email protected]"
66
gem.homepage = "https://github.com/dryrb/dry-initializer"

0 commit comments

Comments
 (0)