v0.4.0
Pre-release
Pre-release
Added
- Schemas are now compatible with procs via
#to_proc(issue #53) (solnic) - Support for configuring
top_namespacefor 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
optionalkeys without value rules works correctly (issue #87) (solnic) - Message structure for
optionalkeys with an array of hashes no longer duplicates keys (issue #89) (solnic) - Inferring
:date_time?predicate works correctly withDateTimetypes (issue #97) (solnic)
Changed
- [BREAKING] Updated to work with
dry-types 0.15.0(flash-gordon) - [BREAKING]
Result#{errors,messages,hints}returnsMessageSetobject now which is an enumerable coercible to a hash (solnic) - [BREAKING]
Messagesbackend 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
messageskey with following settings:messages.backend- previouslymessagesmessages.load_paths- previouslymessages_pathmessages.namespace- previouslynamespacemessages.top_namespace- new setting see above
- [BREAKING]
Messages::I18nusesI18.store_translationsinstead of messing withI18n.load_path(solnic) - Schemas (
ParamsandJSON) have nicer inspect (solnic)