Added
- Schemas are now compatible with procs via
#to_proc
(issue #53) (solnic) - Support for configuring
top_namespace
for localized messages (solnic) - Support for configuring more than one load path for localized messages (solnic)
- Support for inferring predicates from arbitrary types (issue #101) (solnic)
Fixed
- Handling of messages for
optional
keys without value rules works correctly (issue #87) (solnic) - Message structure for
optional
keys with an array of hashes no longer duplicates keys (issue #89) (solnic) - Inferring
:date_time?
predicate works correctly withDateTime
types (issue #97) (solnic)
Changed
- [BREAKING] Updated to work with
dry-types 0.15.0
(flash-gordon) - [BREAKING]
Result#{errors,messages,hints}
returnsMessageSet
object now which is an enumerable coercible to a hash (solnic) - [BREAKING]
Messages
backend classes no longer use global configuration (solnic) - [BREAKING] Passing a non-symbol key name in the DSL will raise
ArgumentError
(issue #29) (solnic) - [BREAKING] Configuration for message backends is now nested under
messages
key with following settings:messages.backend
- previouslymessages
messages.load_paths
- previouslymessages_path
messages.namespace
- previouslynamespace
messages.top_namespace
- new setting see above
- [BREAKING]
Messages::I18n
usesI18.store_translations
instead of messing withI18n.load_path
(solnic) - Schemas (
Params
andJSON
) have nicer inspect (solnic)