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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36bb857d62d1f6a560c2714690aedbe5e8478928305cdb68ec945f98a50c920c
4
- data.tar.gz: 567bec0506957181b1c35c753f8bc386748380fbe76d766c3c778b2d3c234462
3
+ metadata.gz: 66a7b7aed1e386e42bd17c1840303d0cff588a2f51e0ec97241ca2b5ecc7960a
4
+ data.tar.gz: 6541430022c6922cba781ace7da6a1cec73a9128dbf0111394ef3a080d2a6eee
5
5
  SHA512:
6
- metadata.gz: 6551382db3572cd58f1fc43d052190bb0373bf443c58f1e6ceca97008ab9ad36e19fbf7e765311d0d8008cb05d977f76fc6e5ce1686c2c22ead86c2f803c2d2e
7
- data.tar.gz: c09db90b0bbdf5ab4c01cc45cff8dd5c5e05fff8565eccee5cc64364657f092aacb8cbefecf568f22cd75dafbab7a165394ae575e1c1f76770417ff3dd0d7a5f
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
@@ -71,7 +71,7 @@ module Hanami
71
71
  #
72
72
  # @since 0.6.0
73
73
  #
74
- # @see http://hanamirb.org/guides/validations/overview/
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
 
@@ -1,6 +1,6 @@
1
1
  module Hanami
2
2
  module Validations
3
3
  # @since 0.1.0
4
- VERSION = '1.3.3'.freeze
4
+ VERSION = '1.3.4'.freeze
5
5
  end
6
6
  end
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.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-01-31 00:00:00.000000000 Z
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.2
152
+ rubygems_version: 3.0.3
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Validations mixin for Ruby objects