Releases: dry-rb/dry-core
Releases · dry-rb/dry-core
v0.4.1
v0.4.1 2017-11-04
Changed
- Improved error message on invalid attribute value (GustavoCaso)
v0.4.0
Added
-
Added the
:type
option to class attributes, you can now restrict attribute values with a type. You can either use plain ruby types (Integer
,String
, etc) ordry-types
(GustavoCaso)class Foo extend Dry::Core::ClassAttributes defines :ruby_attr, type: Integer defines :dry_attr, type: Dry::Types['strict.int'] end
v0.3.4
v0.3.4 2017-09-29
Fixed
Deprecations
output is set to$stderr
by default now (solnic)
v0.3.3
Fixed
- The Deprecations module now shows the right caller line (flash-gordon)
v0.3.2
v0.3.2 2017-08-31
Added
- Accept an existing logger object in
Dry::Core::Deprecations.set_logger!
(flash-gordon)
v0.3.1
Added
- Support for building classes within an existing namespace (flash-gordon)
v0.3.0
Changed
- Class attributes are initialized before running the
inherited
hook. It's slightly more convenient behavior and it's very unlikely anyone will be affected by this, but technically this is a breaking change (flash-gordon)