Skip to content

Releases: dry-rb/dry-core

v0.4.1

04 Nov 12:59
v0.4.1
d76c638
Compare
Choose a tag to compare

v0.4.1 2017-11-04

Changed

  • Improved error message on invalid attribute value (GustavoCaso)

Compare v0.4.0...v0.4.1

v0.4.0

02 Nov 12:44
v0.4.0
c91bc0d
Compare
Choose a tag to compare

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) or dry-types (GustavoCaso)

      class Foo
        extend Dry::Core::ClassAttributes
    
        defines :ruby_attr, type: Integer
        defines :dry_attr, type: Dry::Types['strict.int']
      end

Compare v0.3.4...v0.4.0

v0.3.4

02 Nov 12:44
Compare
Choose a tag to compare

v0.3.4 2017-09-29

Fixed

  • Deprecations output is set to $stderr by default now (solnic)

Compare v0.3.3...v0.3.4

v0.3.3

31 Aug 13:16
v0.3.3
5624324
Compare
Choose a tag to compare

Fixed

  • The Deprecations module now shows the right caller line (flash-gordon)

Compare v0.3.2...v0.3.3

v0.3.2

31 Aug 08:24
v0.3.2
8b81d3f
Compare
Choose a tag to compare

v0.3.2 2017-08-31

Added

  • Accept an existing logger object in Dry::Core::Deprecations.set_logger! (flash-gordon)

Compare v0.3.1...v0.3.2

v0.3.1

27 May 10:04
v0.3.1
c585977
Compare
Choose a tag to compare

Added

  • Support for building classes within an existing namespace (flash-gordon)

Compare v0.3.0...v0.3.1

v0.3.0

05 May 21:43
v0.3.0
3c87395
Compare
Choose a tag to compare

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)

Compare v0.2.4...v0.3.0