validates_identity 0.5.1 → 0.5.2

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: 510a895f0315e23fdce571cd146c2c338e8ca71008eb7ff6f8370a833b2ba6a2
4
- data.tar.gz: 13d68a4af8bd6f3b493e0aa6c5ee95238e64216b56facaa1d995ac09609b6b96
3
+ metadata.gz: 9085025f8d95534d921da509e3c7ee686ff162982ada75797f49dd707054f45d
4
+ data.tar.gz: d13993171531b0d63a2f283594979f5ca28769b2b3686574d13ea345a1dafcff
5
5
  SHA512:
6
- metadata.gz: 8a97b3bd0645546275308284ca59249ec4553aa027dfce7ffea15b584c799a2b23afdd348a6e5f5f7849d58a44ca3fe3821c8a182ff4a6ded8e723944a4ead01
7
- data.tar.gz: 57d319a64b6d1d7404c5b1b7eb554090794514e674801d1711d22dfcd97f45d14f44c51eb7523cc323f57a28597d6590845b83a7cc6f0d5329e12b1067f24832
6
+ metadata.gz: 739b863e02256bae0369e1b67a434a9f5210b91762ebb7bcfca8ffe01580b100ce413aaea85b97f35161dff7974c2a08801e1b6d935dd62f76182c620b7faa31
7
+ data.tar.gz: dc0be85c6cce231a380642e181eae13cc8d62268a47f4779e1e3da6d7540b3d7159dd4a15b50162c55d25c17e61484d568b07cda5fb8a9bdcda180a4d1234292
data/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
1
+ ## [0.5.2] - 2024-02-28
2
+
3
+ ### Fixed
4
+
5
+ - Matcher merging of allowed an disallowed values
6
+
1
7
  ## [0.5.1] - 2024-02-28
2
8
 
3
9
  ### Fixed
4
10
 
5
- - Matcher missing parameter
11
+ - Matcher missing parameter
6
12
 
7
13
  ## [0.5.0] - 2024-02-27
8
14
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validates_identity (0.5.0)
4
+ validates_identity (0.5.2)
5
5
  activemodel
6
6
 
7
7
  GEM
@@ -68,8 +68,8 @@ module Shoulda
68
68
 
69
69
  def disallowed_values
70
70
  case @type
71
- when :person then person_disallowed_values + legal_allowed_values
72
- when :legal then legal_disallowed_values + person_allowed_values
71
+ when :person then person_disallowed_values.deep_merge(legal_allowed_values)
72
+ when :legal then legal_disallowed_values.deep_merge(person_allowed_values)
73
73
  else ValidatesIdentity::ShouldaMatchers.disallowed_values
74
74
  end
75
75
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ValidatesIdentity
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_identity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Ribeiro