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.
@@ -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, sin homoclave)' do
41
- model_homoclave(rfc: 'AEIO111111').wont_be :valid?
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, sin homoclave)' do
45
- model_homoclave(rfc: 'AEI111111').wont_be :valid?
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
@@ -1,3 +1,9 @@
1
- require 'minitest/spec'
2
1
  require 'minitest/autorun'
2
+ require 'minitest/pride'
3
3
  require_relative '../lib/identificamex'
4
+
5
+ class MiniTest::Spec
6
+ class << self
7
+ alias_method :context, :describe
8
+ end
9
+ end
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.2
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-07-16 00:00:00.000000000 Z
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.5
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