validates_identity-co_cc 1.0.1 → 1.1.0

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: 856b29acc424a52364b4710b6b06476eb50df4c4e50f106184e4137fd765a2eb
4
+ data.tar.gz: f88a0c54812317663b0ffdd93c29ad12431684fb8b4b943b853234b3c1b0e9b5
5
5
  SHA512:
6
- metadata.gz: 0d2db2c7c6c5851f2d39ffeeeb3039144fe8b5bec470c367f414f65eaa3b6edbb1003f304187040c9880ae049faf43dd06fac5ab5143aa7cf54c5b95cef001a1
7
- data.tar.gz: f308ea8e43756b8cb015458fdb327b7beee56a2050b4073970c2a34786c73a3c0896205a469095dd962c84bd1d0adb7901e55db5591e73dfb51160b4db837af0
6
+ metadata.gz: ab1df8b8e4543e81c25d729de683bf273b04dca48b2eb699eba7b18370504427aa9ac1ad25e25fa659fad6c21b49249bcc44d92ec6b9e99dba840e9f90d20eab
7
+ data.tar.gz: 268f640bd929e8a2d1e63d9f5df2038778991732086ac5faa4d3ff8074e63d639ca8aabc8af94520d3fda5d209fd8e0f607569a4883972715380c304de2619d0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [1.1.0] - 2026-04-17
2
+
3
+ ### Fixed
4
+
5
+ - Allow numbers with 5 and 6 characters
6
+
7
+ ## [1.0.2] - 2025-01-16
8
+
9
+ ### Fixed
10
+
11
+ - Allow numbers with 7 characters
12
+
1
13
  ## [1.0.1] - 2025-01-15
2
14
 
3
15
  ### 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.1.0)
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{5,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.1.0'
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[12345 123456 1234567 12345678 123456789 1234567890])
14
+ ValidatesIdentity::ShouldaMatchers.register_person_disallowed_values('CO_CC', %w[1234 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.1.0
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: 2026-04-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activemodel