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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55f7d098c0e7f1b2293bb85b33102f7d4aadf132
4
- data.tar.gz: 35449e6ecc446ebf5b6499b89e400bbc58eb580b
3
+ metadata.gz: a53771f42678ba3031d73939189beac65033dadb
4
+ data.tar.gz: b179eaa5cf35425099ecd0c2e7d54fdcc82f423d
5
5
  SHA512:
6
- metadata.gz: 85b2822d64941baeb0858c657c9c81b7aad4aed571f24832b90298e8ec5d6949ecca79eec9db26dd90a718723a2756eea8671a69c390c4d589b9d1bdcd6f641c
7
- data.tar.gz: c1f2e509425b88609215c94dbcb022c6be47b77305bbdf8053a567913e4c5aab6eaf21f9cb1a50e9cadbe829aa548a0233771799d6e8da6ed54a531119340d9c
6
+ metadata.gz: 056c43faa960538f237284451083b58eb47840e3a9e17328411ee76e45fc91e5e974220150c150af17265d4956661c0d49a537c5da0705c0bada343cb34f99bf
7
+ data.tar.gz: bc30c52a0a0d4993338cff45485e6e4cefbb0a3442928be7a9248451c18353d84b1f8826fa357aabbf045ff2227a8d93a0c388fcf565b888da2fe67924d3abb4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Hanami::Validations
2
2
  Validations mixin for Ruby objects
3
3
 
4
+ ## v1.1.0.beta2 - 2017-10-03
5
+
4
6
  ## v1.1.0.beta1 - 2017-08-11
5
7
 
6
8
  ## v1.0.0 - 2017-04-06
@@ -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.beta1'
24
- spec.add_dependency 'dry-validation', '~> 0.10'
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'
@@ -1,6 +1,6 @@
1
1
  module Hanami
2
2
  module Validations
3
3
  # @since 0.1.0
4
- VERSION = '1.1.0.beta1'.freeze
4
+ VERSION = '1.1.0.beta2'.freeze
5
5
  end
6
6
  end
@@ -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
- %{root}.%{rule}.%{predicate}
11
- ).freeze
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 && _predicates_module.messages || DEFAULT_MESSAGES_ENGINE
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
@@ -1 +1 @@
1
- require 'hanami/validations' # rubocop:disable Style/FileName
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.beta1
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-08-11 00:00:00.000000000 Z
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.beta1
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.beta1
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.10'
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.10'
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.11
121
+ rubygems_version: 2.6.13
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Validations mixin for Ruby objects