hanami-validations 1.1.0.beta1 → 1.1.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/hanami-validations.gemspec +2 -4
- data/lib/hanami/validations/version.rb +1 -1
- data/lib/hanami/validations.rb +4 -4
- data/lib/hanami-validations.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a53771f42678ba3031d73939189beac65033dadb
|
4
|
+
data.tar.gz: b179eaa5cf35425099ecd0c2e7d54fdcc82f423d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 056c43faa960538f237284451083b58eb47840e3a9e17328411ee76e45fc91e5e974220150c150af17265d4956661c0d49a537c5da0705c0bada343cb34f99bf
|
7
|
+
data.tar.gz: bc30c52a0a0d4993338cff45485e6e4cefbb0a3442928be7a9248451c18353d84b1f8826fa357aabbf045ff2227a8d93a0c388fcf565b888da2fe67924d3abb4
|
data/CHANGELOG.md
CHANGED
data/hanami-validations.gemspec
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
1
|
lib = File.expand_path('../lib', __FILE__)
|
4
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
3
|
require 'hanami/validations/version'
|
@@ -20,8 +18,8 @@ Gem::Specification.new do |spec|
|
|
20
18
|
spec.require_paths = ['lib']
|
21
19
|
spec.required_ruby_version = '>= 2.3.0'
|
22
20
|
|
23
|
-
spec.add_dependency 'hanami-utils', '1.1.0.
|
24
|
-
spec.add_dependency 'dry-validation', '~> 0.
|
21
|
+
spec.add_dependency 'hanami-utils', '1.1.0.beta2'
|
22
|
+
spec.add_dependency 'dry-validation', '~> 0.11'
|
25
23
|
|
26
24
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
27
25
|
spec.add_development_dependency 'rake', '~> 10'
|
data/lib/hanami/validations.rb
CHANGED
@@ -6,9 +6,9 @@ require 'hanami/validations/inline_predicate'
|
|
6
6
|
require 'set'
|
7
7
|
|
8
8
|
Dry::Validation::Messages::Namespaced.configure do |config|
|
9
|
-
config.lookup_paths = config.lookup_paths + %w
|
10
|
-
|
11
|
-
|
9
|
+
config.lookup_paths = config.lookup_paths + %w[
|
10
|
+
%<root>s.%<rule>s.%<predicate>s
|
11
|
+
].freeze
|
12
12
|
end
|
13
13
|
|
14
14
|
# @since 0.1.0
|
@@ -289,7 +289,7 @@ module Hanami
|
|
289
289
|
return if _predicates_module.nil? && _predicates.empty?
|
290
290
|
|
291
291
|
lambda do |config|
|
292
|
-
config.messages = _predicates_module
|
292
|
+
config.messages = _predicates_module&.messages || DEFAULT_MESSAGES_ENGINE
|
293
293
|
config.messages_file = _predicates_module.messages_path unless _predicates_module.nil?
|
294
294
|
end
|
295
295
|
end
|
data/lib/hanami-validations.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require 'hanami/validations' # rubocop:disable
|
1
|
+
require 'hanami/validations' # rubocop:disable Naming/FileName
|
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.1.0.
|
4
|
+
version: 1.1.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hanami-utils
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.1.0.
|
19
|
+
version: 1.1.0.beta2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.1.0.
|
26
|
+
version: 1.1.0.beta2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dry-validation
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.11'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.11'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: 1.3.1
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.6.
|
121
|
+
rubygems_version: 2.6.13
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Validations mixin for Ruby objects
|