hanami-validations 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -0
- data/lib/hanami/validations.rb +5 -1
- data/lib/hanami/validations/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66a7b7aed1e386e42bd17c1840303d0cff588a2f51e0ec97241ca2b5ecc7960a
|
4
|
+
data.tar.gz: 6541430022c6922cba781ace7da6a1cec73a9128dbf0111394ef3a080d2a6eee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93c49b2004993dda30dbea2af527725625bff6dc5155942f8ddf18f7914c83e25d47decc1887429ad83969637a8d8a05ab6874f0ee7735843e346fa277e9d090
|
7
|
+
data.tar.gz: e9e1af41957b3e89b015a7a991b5fdeadbf14193fc79c6f6a54404c5cc479f944b8abc7d2ced45bebc42b248d887ac36c89d5f3440e9671df0fb89f0556f0f00
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Hanami::Validations
|
2
2
|
Validations mixin for Ruby objects
|
3
3
|
|
4
|
+
## v1.3.4 - 2019-07-26
|
5
|
+
### Fixed
|
6
|
+
- [Luca Guidi] Ensure to load i18n backend (including `i18n` gem), when messages engine is `:i18n`
|
7
|
+
|
4
8
|
## v1.3.3 - 2019-01-31
|
5
9
|
### Fixed
|
6
10
|
- [Luca Guidi] Depend on `dry-validation` `~> 0.11`, `< 0.12`
|
data/README.md
CHANGED
@@ -14,6 +14,8 @@ Validations mixin for Ruby objects
|
|
14
14
|
## Contact
|
15
15
|
|
16
16
|
* Home page: http://hanamirb.org
|
17
|
+
* Community: http://hanamirb.org/community
|
18
|
+
* Guides: https://guides.hanamirb.org
|
17
19
|
* Mailing List: http://hanamirb.org/mailing-list
|
18
20
|
* API Doc: http://rdoc.info/gems/hanami-validations
|
19
21
|
* Bugs/Issues: https://github.com/hanami/validations/issues
|
data/lib/hanami/validations.rb
CHANGED
@@ -71,7 +71,7 @@ module Hanami
|
|
71
71
|
#
|
72
72
|
# @since 0.6.0
|
73
73
|
#
|
74
|
-
# @see
|
74
|
+
# @see https://guides.hanamirb.org/validations/overview
|
75
75
|
#
|
76
76
|
# @example Basic Example
|
77
77
|
# require 'hanami/validations'
|
@@ -285,6 +285,8 @@ module Hanami
|
|
285
285
|
config.messages = _messages unless _messages.nil?
|
286
286
|
config.messages_file = _messages_path unless _messages_path.nil?
|
287
287
|
config.namespace = namespace
|
288
|
+
|
289
|
+
require "dry/validation/messages/i18n" if config.messages == :i18n
|
288
290
|
end
|
289
291
|
end
|
290
292
|
|
@@ -296,6 +298,8 @@ module Hanami
|
|
296
298
|
lambda do |config|
|
297
299
|
config.messages = _predicates_module&.messages || DEFAULT_MESSAGES_ENGINE
|
298
300
|
config.messages_file = _predicates_module.messages_path unless _predicates_module.nil?
|
301
|
+
|
302
|
+
require "dry/validation/messages/i18n" if config.messages == :i18n
|
299
303
|
end
|
300
304
|
end
|
301
305
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hanami-utils
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.0.
|
152
|
+
rubygems_version: 3.0.3
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Validations mixin for Ruby objects
|