validates_identity-co_cc 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bb43d3ab047bde877f7c2d0a326811ceab131c9400a245b67b455f6b163c6bf
4
- data.tar.gz: e3d890b02a1e7015d41b054a1009af4284f7a6ac14c0d92b991b7029e1c914ed
3
+ metadata.gz: c873010e0cd1e6f30b3258d2a8ee34374a05cc44c4568ef5063a2cd8a9ecabbd
4
+ data.tar.gz: f0afcfcb589cf2b5ba725ff325bd390822b4f0edb6e5bc277ab3cc258484828f
5
5
  SHA512:
6
- metadata.gz: 0d2db2c7c6c5851f2d39ffeeeb3039144fe8b5bec470c367f414f65eaa3b6edbb1003f304187040c9880ae049faf43dd06fac5ab5143aa7cf54c5b95cef001a1
7
- data.tar.gz: f308ea8e43756b8cb015458fdb327b7beee56a2050b4073970c2a34786c73a3c0896205a469095dd962c84bd1d0adb7901e55db5591e73dfb51160b4db837af0
6
+ metadata.gz: b06c8e9a935fe2136df968ed77e6bdad42a92f7d8bf008e3a139c4ee54d96921ce51ef7b34a018fa94c0060743078d9d58eb90428e63a778c28359807d206454
7
+ data.tar.gz: 966c3f9a748fab18cda6080881c11b9cb48e6db9cdd04113dcd5ba108c47897d6582c346add5c196a85df3a76a129c9a13f8f702a03372d389b7fc198a982479
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.0.2] - 2025-01-16
2
+
3
+ ### Fixed
4
+
5
+ - Allow numbers with 7 characters
6
+
1
7
  ## [1.0.1] - 2025-01-15
2
8
 
3
9
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validates_identity-co_cc (1.0.0)
4
+ validates_identity-co_cc (1.0.2)
5
5
  activemodel
6
6
  validates_identity (>= 0.5.0)
7
7
 
@@ -3,7 +3,7 @@
3
3
  class ValidatesIdentity
4
4
  module CoCc
5
5
  class Validator
6
- VALIDATION_REGULAR_EXPRESSION = /\A\d{8,10}\z/i.freeze
6
+ VALIDATION_REGULAR_EXPRESSION = /\A\d{7,10}\z/i.freeze
7
7
 
8
8
  attr_reader :value
9
9
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  class ValidatesIdentity
4
4
  module CoCc
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
  end
7
7
  end
@@ -10,5 +10,5 @@ class ValidatesIdentity
10
10
  end
11
11
 
12
12
  ValidatesIdentity.register_person_identity_type('CO_CC', ValidatesIdentity::CoCc::Validator)
13
- ValidatesIdentity::ShouldaMatchers.register_person_allowed_values('CO_CC', %w[12345678 123456789 1234567890])
14
- ValidatesIdentity::ShouldaMatchers.register_person_disallowed_values('CO_CC', %w[1234567 12345678901])
13
+ ValidatesIdentity::ShouldaMatchers.register_person_allowed_values('CO_CC', %w[1234567 12345678 123456789 1234567890])
14
+ ValidatesIdentity::ShouldaMatchers.register_person_disallowed_values('CO_CC', %w[123456 12345678901])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_identity-co_cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Ribeiro
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-01-15 00:00:00.000000000 Z
10
+ date: 2025-01-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activemodel