All Versions
65
Latest Version
Avg Release Cycle
60 days
Latest Release
553 days ago
Changelog History
Page 7
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)
- ๐ Support for high-level rule composition via
-
v0.3.1 Changes
December 08, 2015โ Added
- ๐ Support for
Range
andArray
as an argument insize?
predicate (solnic)
๐ Fixed
- Error compiler returns an empty hash rather than a nil when there are no errors (solnic)
- ๐ Support for
-
v0.3.0 Changes
December 07, 2015โ Added
- ๐ I18n messages support (solnic)
- ๐ง Ability to configure
messages
viaconfigure { 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
returnsSchema::Result
which has access to all rule results, errors and messagesSchema::Result#messages
returns a hash with rule names, messages and input values (solnic)
-
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)
-
v0.1.0 Changes
November 25, 2015๐ First public release