identificamex 0.0.2 → 0.0.3
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/.travis.yml +3 -0
- data/README.md +47 -5
- data/Rakefile +1 -1
- data/lib/identificamex.rb +26 -1
- data/lib/identificamex/nombre/mayusculas.rb +35 -0
- data/lib/identificamex/nombre/nombre_completo.rb +96 -0
- data/lib/identificamex/nombre/normalizador_apellido.rb +30 -0
- data/lib/identificamex/nombre/normalizador_cadena.rb +47 -0
- data/lib/identificamex/nombre/normalizador_nombre.rb +42 -0
- data/lib/identificamex/nombre/palabra_inconveniente.rb +55 -0
- data/lib/identificamex/nombre/razon_social.rb +92 -0
- data/lib/identificamex/rfc/homoclave.rb +209 -0
- data/lib/identificamex/rfc/rfc_base.rb +32 -0
- data/lib/identificamex/rfc/rfc_generator.rb +95 -0
- data/lib/identificamex/version.rb +1 -1
- data/lib/rfc_format_validator.rb +2 -2
- data/test/identificamex/methods_validator_test.rb +35 -0
- data/test/identificamex/nombre/nombre_completo_test.rb +64 -0
- data/test/identificamex/nombre/normalizador_apellido_test.rb +30 -0
- data/test/identificamex/nombre/normalizador_nombre_test.rb +62 -0
- data/test/identificamex/nombre/razon_social_test.rb +68 -0
- data/test/identificamex/rfc/homoclave_test.rb +24 -0
- data/test/identificamex/rfc/rfc_base_test.rb +24 -0
- data/test/identificamex/rfc/rfc_generator_test.rb +170 -0
- data/test/identificamex/rfc_format_validator_test.rb +4 -4
- data/test/test_helper.rb +7 -1
- metadata +30 -3
@@ -37,12 +37,12 @@ describe 'rfc validator' do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
describe 'force homoclave' do
|
40
|
-
it 'accepts rfc (4 carácteres para el nombre,
|
41
|
-
model_homoclave(rfc: '
|
40
|
+
it 'accepts rfc (4 carácteres para el nombre, con homoclave)' do
|
41
|
+
model_homoclave(rfc: 'AEIO111111AEI').must_be :valid?
|
42
42
|
end
|
43
43
|
|
44
|
-
it 'accepts rfc (3 carácteres para el nombre,
|
45
|
-
model_homoclave(rfc: '
|
44
|
+
it 'accepts rfc (3 carácteres para el nombre, con homoclave)' do
|
45
|
+
model_homoclave(rfc: 'AEI111111AEI').must_be :valid?
|
46
46
|
end
|
47
47
|
end # describe force homoclave
|
48
48
|
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: identificamex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Azarel Doroteo Pacheco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- .gitignore
|
63
63
|
- .ruby-version
|
64
|
+
- .travis.yml
|
64
65
|
- Gemfile
|
65
66
|
- LICENSE.txt
|
66
67
|
- README.md
|
@@ -68,10 +69,28 @@ files:
|
|
68
69
|
- identificamex.gemspec
|
69
70
|
- lib/curp_format_validator.rb
|
70
71
|
- lib/identificamex.rb
|
72
|
+
- lib/identificamex/nombre/mayusculas.rb
|
73
|
+
- lib/identificamex/nombre/nombre_completo.rb
|
74
|
+
- lib/identificamex/nombre/normalizador_apellido.rb
|
75
|
+
- lib/identificamex/nombre/normalizador_cadena.rb
|
76
|
+
- lib/identificamex/nombre/normalizador_nombre.rb
|
77
|
+
- lib/identificamex/nombre/palabra_inconveniente.rb
|
78
|
+
- lib/identificamex/nombre/razon_social.rb
|
79
|
+
- lib/identificamex/rfc/homoclave.rb
|
80
|
+
- lib/identificamex/rfc/rfc_base.rb
|
81
|
+
- lib/identificamex/rfc/rfc_generator.rb
|
71
82
|
- lib/identificamex/version.rb
|
72
83
|
- lib/rfc_format_validator.rb
|
73
84
|
- test/empleado.rb
|
74
85
|
- test/identificamex/curp_format_validator_test.rb
|
86
|
+
- test/identificamex/methods_validator_test.rb
|
87
|
+
- test/identificamex/nombre/nombre_completo_test.rb
|
88
|
+
- test/identificamex/nombre/normalizador_apellido_test.rb
|
89
|
+
- test/identificamex/nombre/normalizador_nombre_test.rb
|
90
|
+
- test/identificamex/nombre/razon_social_test.rb
|
91
|
+
- test/identificamex/rfc/homoclave_test.rb
|
92
|
+
- test/identificamex/rfc/rfc_base_test.rb
|
93
|
+
- test/identificamex/rfc/rfc_generator_test.rb
|
75
94
|
- test/identificamex/rfc_format_validator_test.rb
|
76
95
|
- test/test_helper.rb
|
77
96
|
homepage: https://github.com/LogicalBricks/identificamex
|
@@ -94,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
113
|
version: '0'
|
95
114
|
requirements: []
|
96
115
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.0.
|
116
|
+
rubygems_version: 2.0.6
|
98
117
|
signing_key:
|
99
118
|
specification_version: 4
|
100
119
|
summary: Validadores sencillos para los formatos de la Clave Única de Registro de
|
@@ -102,5 +121,13 @@ summary: Validadores sencillos para los formatos de la Clave Única de Registro
|
|
102
121
|
test_files:
|
103
122
|
- test/empleado.rb
|
104
123
|
- test/identificamex/curp_format_validator_test.rb
|
124
|
+
- test/identificamex/methods_validator_test.rb
|
125
|
+
- test/identificamex/nombre/nombre_completo_test.rb
|
126
|
+
- test/identificamex/nombre/normalizador_apellido_test.rb
|
127
|
+
- test/identificamex/nombre/normalizador_nombre_test.rb
|
128
|
+
- test/identificamex/nombre/razon_social_test.rb
|
129
|
+
- test/identificamex/rfc/homoclave_test.rb
|
130
|
+
- test/identificamex/rfc/rfc_base_test.rb
|
131
|
+
- test/identificamex/rfc/rfc_generator_test.rb
|
105
132
|
- test/identificamex/rfc_format_validator_test.rb
|
106
133
|
- test/test_helper.rb
|