validates_identity-pa_ruc 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +2 -1
- data/README.md +0 -1
- data/lib/validates_identity/pa_ruc/version.rb +1 -1
- data/lib/validates_identity/pa_ruc.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '058f47429f9d90db498a7dba9b020db86dd46078dedaa6b2d07d55703a0b4bf5'
|
4
|
+
data.tar.gz: a2e03f22a734bae781b4a9db68e9d39454047014b6be6e75bf040923a34102d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95763a0ea7682761aa6c5587f20d87446689a853e90baae842d75270daf3860871b0b32e715b445c3b3b1988c5d29eec7fd068598d2682aaf1ce2abb257c775c
|
7
|
+
data.tar.gz: cd2b867a88bbb08b1893c65e854c66a053ac8782a3daf0674c016cdec8ab723da0ec879f99e8a57f1a8442775ff5ccfa3033840aa959a32e5b42b6782b656a31
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
validates_identity-pa_ruc (
|
4
|
+
validates_identity-pa_ruc (1.0.0)
|
5
5
|
activemodel
|
6
6
|
validates_identity (>= 0.5.0)
|
7
7
|
|
@@ -112,6 +112,7 @@ GEM
|
|
112
112
|
|
113
113
|
PLATFORMS
|
114
114
|
x86_64-darwin-21
|
115
|
+
x86_64-linux
|
115
116
|
|
116
117
|
DEPENDENCIES
|
117
118
|
jazz_fingers
|
data/README.md
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
This projects aims to validate Panama [Registro Único de Contribuyente](https://es.wikipedia.org/wiki/Documento_Personal_de_Identificaci%C3%B3n) identification document.
|
4
4
|
This project depends on `validates_identity` gem and is a plugin for it.
|
5
|
-
This project is based on documentations found [here](https://learn.sayari.com/interpreting-guatemalan-national-id-numbers/) and [here](https://www.mineduc.gob.gt/DIGEESP/documents/adecuacionesCurriculares/Documentos%20de%20Apoyo/C%C3%B3digos%20Departamentos-Municipios-Idiomas.pdf)
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
@@ -11,10 +11,10 @@ class ValidatesIdentity
|
|
11
11
|
end
|
12
12
|
|
13
13
|
# Legal
|
14
|
-
ValidatesIdentity.register_legal_identity_type('
|
15
|
-
ValidatesIdentity::ShouldaMatchers.register_legal_allowed_values('
|
16
|
-
ValidatesIdentity::ShouldaMatchers.register_legal_disallowed_values('
|
14
|
+
ValidatesIdentity.register_legal_identity_type('PA_RUC_LEGAL', ValidatesIdentity::PaRuc::LegalValidator)
|
15
|
+
ValidatesIdentity::ShouldaMatchers.register_legal_allowed_values('PA_RUC_LEGAL', %w[123456789-2-2015 10101010-1-2001 12312123-3-2040])
|
16
|
+
ValidatesIdentity::ShouldaMatchers.register_legal_disallowed_values('PA_RUC_LEGAL', %w[90-234-1-23 10-0-123-123])
|
17
17
|
# Person
|
18
|
-
ValidatesIdentity.register_person_identity_type('
|
19
|
-
ValidatesIdentity::ShouldaMatchers.register_person_allowed_values('
|
20
|
-
ValidatesIdentity::ShouldaMatchers.register_person_disallowed_values('
|
18
|
+
ValidatesIdentity.register_person_identity_type('PA_RUC_PERSON', ValidatesIdentity::PaRuc::PersonValidator)
|
19
|
+
ValidatesIdentity::ShouldaMatchers.register_person_allowed_values('PA_RUC_PERSON', %w[PE-23-123 10-1-123])
|
20
|
+
ValidatesIdentity::ShouldaMatchers.register_person_disallowed_values('PA_RUC_PERSON', %w[90-234-123 10-0123-123])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validates_identity-pa_ruc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo Ribeiro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|