validates_identity-co_cc 1.0.0 → 1.0.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: 25bdb6cebab6e353da762c792ba622cbdf918a6e976b0b06512e7ef9ae73f460
4
- data.tar.gz: 9afe40b56d69be364b29e379a3b56e7d9c4cda24683fcbdb3d6b76d583690d36
3
+ metadata.gz: c873010e0cd1e6f30b3258d2a8ee34374a05cc44c4568ef5063a2cd8a9ecabbd
4
+ data.tar.gz: f0afcfcb589cf2b5ba725ff325bd390822b4f0edb6e5bc277ab3cc258484828f
5
5
  SHA512:
6
- metadata.gz: a57417fd43d9f67ea2f8e3b87fc1cd0673ae464993f1e99414a59372247bcea7f0e38f0b330fce33f337fbc2ca58ce1a9e377852d03d43fe8f02bc6c0919a5ab
7
- data.tar.gz: cb1b52aff39d4dbc7cac44c1767d88d7a60e0306eb11344250cf0e5a02b2f5698bb28fa3119aef2562e12a9b98e66439a26baed2368df062767461a142a674cd
6
+ metadata.gz: b06c8e9a935fe2136df968ed77e6bdad42a92f7d8bf008e3a139c4ee54d96921ce51ef7b34a018fa94c0060743078d9d58eb90428e63a778c28359807d206454
7
+ data.tar.gz: 966c3f9a748fab18cda6080881c11b9cb48e6db9cdd04113dcd5ba108c47897d6582c346add5c196a85df3a76a129c9a13f8f702a03372d389b7fc198a982479
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.4.1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [1.0.2] - 2025-01-16
2
+
3
+ ### Fixed
4
+
5
+ - Allow numbers with 7 characters
6
+
7
+ ## [1.0.1] - 2025-01-15
8
+
9
+ ### Fixed
10
+
11
+ - Allow numbers with 9 characters
12
+
1
13
  ## [1.0.0] - 2024-03-22
2
14
 
3
15
  ### Added
@@ -8,4 +20,4 @@
8
20
 
9
21
  ### Added
10
22
 
11
- - Initial release
23
+ - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validates_identity-co_cc (0.1.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
 
@@ -13,7 +13,6 @@ class ValidatesIdentity
13
13
 
14
14
  def valid?
15
15
  return true if value.blank?
16
- return false if value.length == 9
17
16
 
18
17
  result.present?
19
18
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  class ValidatesIdentity
4
4
  module CoCc
5
- VERSION = '1.0.0'
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 1234567890])
14
- ValidatesIdentity::ShouldaMatchers.register_person_disallowed_values('CO_CC', %w[1234567 123456789 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,14 +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.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Ribeiro
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-03-22 00:00:00.000000000 Z
10
+ date: 2025-01-16 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activemodel
@@ -38,7 +37,6 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: 0.5.0
41
- description:
42
40
  email:
43
41
  - plribeiro3000@gmail.com
44
42
  executables: []
@@ -68,7 +66,6 @@ metadata:
68
66
  source_code_uri: https://github.com/plribeiro3000/validates_identity-co_cc/blob/master
69
67
  changelog_uri: https://github.com/plribeiro3000/validates_identity-co_cc/blob/master/CHANGELOG.md
70
68
  rubygems_mfa_required: 'true'
71
- post_install_message:
72
69
  rdoc_options: []
73
70
  require_paths:
74
71
  - lib
@@ -83,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
80
  - !ruby/object:Gem::Version
84
81
  version: '0'
85
82
  requirements: []
86
- rubygems_version: 3.5.3
87
- signing_key:
83
+ rubygems_version: 3.6.2
88
84
  specification_version: 4
89
85
  summary: Validates Colombia CC Document and test it with matchers in a simple way.
90
86
  test_files: []