validates_identity-co_cc 1.0.0 → 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 +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +13 -1
- data/Gemfile.lock +1 -1
- data/lib/validates_identity/co_cc/validator.rb +1 -2
- data/lib/validates_identity/co_cc/version.rb +1 -1
- data/lib/validates_identity/co_cc.rb +2 -2
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c873010e0cd1e6f30b3258d2a8ee34374a05cc44c4568ef5063a2cd8a9ecabbd
|
4
|
+
data.tar.gz: f0afcfcb589cf2b5ba725ff325bd390822b4f0edb6e5bc277ab3cc258484828f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b06c8e9a935fe2136df968ed77e6bdad42a92f7d8bf008e3a139c4ee54d96921ce51ef7b34a018fa94c0060743078d9d58eb90428e63a778c28359807d206454
|
7
|
+
data.tar.gz: 966c3f9a748fab18cda6080881c11b9cb48e6db9cdd04113dcd5ba108c47897d6582c346add5c196a85df3a76a129c9a13f8f702a03372d389b7fc198a982479
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
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
@@ -3,7 +3,7 @@
|
|
3
3
|
class ValidatesIdentity
|
4
4
|
module CoCc
|
5
5
|
class Validator
|
6
|
-
VALIDATION_REGULAR_EXPRESSION = /\A\d{
|
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
|
@@ -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[
|
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.
|
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:
|
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.
|
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: []
|