All Versions
65
Latest Version
Avg Release Cycle
60 days
Latest Release
553 days ago

Changelog History
Page 7

  • v0.4.0 Changes

    December 21, 2015

    โž• Added

    • ๐Ÿ‘Œ Support for high-level rule composition via rule interface (solnic)
    • ๐Ÿ‘Œ Support for exclusive disjunction (aka xor/^ operator) (solnic)
    • ๐Ÿ‘Œ Support for nested schemas within a schema class (solnic)
    • ๐Ÿ‘Œ Support for negating rules via rule(name).not (solnic)
    • ๐Ÿ‘Œ Support for validation hints that are included in the error messages (solnic)

    ๐Ÿ›  Fixed

    • Error messages hash has now consistent structure rule_name => [msgs_array, input_value] (solnic)

    Compare v0.3.1...v0.4.0

  • v0.3.1 Changes

    December 08, 2015

    โž• Added

    • ๐Ÿ‘Œ Support for Range and Array as an argument in size? predicate (solnic)

    ๐Ÿ›  Fixed

    • Error compiler returns an empty hash rather than a nil when there are no errors (solnic)

    Compare v0.3.0...v0.3.1

  • v0.3.0 Changes

    December 07, 2015

    โž• Added

    • ๐Ÿ‘ I18n messages support (solnic)
    • ๐Ÿ”ง Ability to configure messages via configure { config.messages = :i18n } (solnic)
    • rule interface in DSL for defining rules that depend on other rules (solnic)
    • confirmation interface as a shortcut for defining "confirmation of" rule (solnic)
    • Error messages can be now matched by input value type too (solnic)

    ๐Ÿ›  Fixed

    • optional rule with coercions work correctly with | + multiple &s (solnic)
    • 0๏ธโƒฃ Schema#[] checks registered predicates first before defaulting to its own predicates (solnic)

    ๐Ÿ”„ Changed

    • Schema#messages(input) => Schema#call(input).messages (solnic)
    • Schema#call returns Schema::Result which has access to all rule results, errors and messages
    • Schema::Result#messages returns a hash with rule names, messages and input values (solnic)

    Compare v0.2.0...v0.3.0

  • v0.2.0 Changes

    November 30, 2015

    โž• Added

    • Schema::Form with a built-in coercer inferred from type-check predicates (solnic)
    • Ability to pass a block to predicate check in the DSL ie value.hash? { ... } (solnic)
    • Optional keys using optional(:key_name) { ... } interface in the DSL (solnic)
    • ๐Ÿ†• New predicates:
      • bool?
      • date?
      • date_time?
      • time?
      • float?
      • decimal?
      • hash?
      • array?

    ๐Ÿ›  Fixed

    • โž• Added missing and / or interfaces to composite rules (solnic)

    Compare v0.1.0...v0.2.0

  • v0.1.0 Changes

    November 25, 2015

    ๐Ÿš€ First public release