All Versions
57
Latest Version
Avg Release Cycle
26 days
Latest Release
17 days ago

Changelog History
Page 1

  • v1.5.3

    July 27, 2020

    ➕ Added

    • You can now access current value's index via rule(:foo).each do |index:| (issue #606 done via #657) (@mrbongiolo)

    🛠 Fixed

    • 🛠 Using .each(:foo) works as expected when there are errors related to other keys (issue #659 fixed via #660) (@solnic)

    🔄 Changed

    • 🛠 Result#error? is now a public API and it takes into consideration both schema and rule errors (issue #655 fixed via #656) (@PragTob)

    Compare v1.5.2...v1.5.3

  • v1.5.2

    July 14, 2020

    🛠 Fixed

  • v1.5.1

    June 18, 2020

    🛠 Fixed

    • dry-monads no longer required for the :hints extension (@schokomarie)
    • 🛠 Using full: true option works as expected with custom rule messages (issue #618 fixed via #651) (@sirfilip)
    • 🛠 Using locale: ... option works as expected with hints (issue #589 fixed via #652) (@sirfilip)

    Compare v1.5.0...v1.5.1

  • v1.5.0

    March 11, 2020

    ➕ Added

    🔄 Changed

    • dry-schema dependency was bumped to ~> 1.5 (@solnic)
    • 🚚 [internal] KeyMap patches have been removed since dry-schema now provides required functionality (@solnic)

    Compare v1.4.2...v1.5.0

  • v1.4.2

    January 18, 2020

    🛠 Fixed

    • Macros using predicates that accept a range argument work as expected (no need to wrap the argument in an array) (@waiting-for-dev)

    Compare v1.4.1...v1.4.2

  • v1.4.1

    January 08, 2020

    ➕ Added

    🛠 Fixed

    • 👀 List tokens are correctly interpolated as a comma-separated list in rule messages (see #611) (@waiting-for-dev)
    • ⚠ Warnings about delegated keywords (@flash-gordon)

    Compare v1.4.0...v1.4.1

  • v1.4.0

    December 12, 2019

    ➕ Added

    • 👌 Support for multi-schema inheritance (@ianwhite)

    🛠 Fixed

    • ⚠ Keyword warnings reported by Ruby 2.7 (@flash-gordon)
    • 🛠 Fixed an issue where MessageSet would be marked as empty too early (@ianwhite)
    • 👀 Messages are correctly generated when there are errors for both an array and one or more of its elements (see #599) (@Bugagazavr)

    🔄 Changed

    • 👻 A meaningful exception is raised when failure options are not valid (@MatElGran)
    • [internal] improved performance in Contract.ensure_valid_keys (@grzegorz-jakubiak)
    • ⚠ [internal] fixed keyword warnings on MRI 2.7.0 (@flash-gordon)

    Compare v1.3.1...v1.4.0

  • v1.3.1

    August 16, 2019

    🔄 Changed

    • You can now set an external schema without providing a block (@alassek)

    Compare v1.3.0...v1.3.1

  • v1.3.0

    August 14, 2019

    ➕ Added

    • 👌 Support for setting an external schema (that can be extended too) (fixed #574) (@solnic)

    🛠 Fixed

    • 🛠 Using a hash spec to define rule keys with more than one value is properly handled by rule guard now (fixed #576) (@solnic)

    🔄 Changed

    • 🐎 values within rules uses Hash#fetch_values internally now, which improves performance (@esparta)

    Compare v1.2.1...v1.3.0

  • v1.2.1

    July 16, 2019

    🛠 Fixed

    • Defining an abstract contract class that has no schema no longer crashes (issue #565) (@solnic)
    • 🛠 Fixed an issue where Rule#each would crash when the value is not an array (issue #567) (@solnic)
    • 🛠 Fixed an issue where guarding a rule would crash when keys are missing in the input (issue #569) (@solnic)
    • ➕ Added missing "pathname" require (issue #570) (@solnic)

    Compare v1.2.0...v1.2.1