dry-equalizer/CHANGELOG.md

1.6 KiB

0.3.0 2019-11-07

Added

  • Memoization option for immutable objects. If immutable: true is passed the result of .hash call will be memoized after its first invocation or on .freeze call (skryukov)
    class User
      include Dry::Equalizer(:id, :name, :age, immutable: true)
    end
    

Changed

  • [BREAKING] Dropped support for Ruby < 2.4

Compare v0.2.2...v0.3.0

0.2.2 2019-03-08

Added

  • Generation of #to_s and #inspect can be disabled with inspect: false (flash-gordon)
    class User
      include Dry::Equalizer(:id, :name, :age, inspect: false)
    end
    

Compare v0.2.1...v0.2.2

0.2.1 2018-04-26

Fixed

  • Including equalizer module with same keys multiple times won't cause duped keys in inspect output (radar)

Compare v0.2.0...v0.2.1

0.2.0 2015-11-13

Really make it work with MRI 2.0 again (it's Friday 13th OK?!)

Compare v0.1.1...v0.2.0

0.1.1 2015-11-13

Make it work with MRI 2.0 again

Compare v0.1.0...v0.1.1

0.1.0 2015-11-11

Added

  • Dry::Equalizer() method accepting a list of keys (solnic)

Changed

  • eql? no longer tries to coerce other with coerce method (solnic)