br_documents 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +4 -0
  5. data/README.md +146 -0
  6. data/Rakefile +1 -0
  7. data/br_documents.gemspec +30 -0
  8. data/config/locales/pt-BR.yml +8 -0
  9. data/lib/br_documents.rb +4 -0
  10. data/lib/br_documents/cnpj_cpf/cnpj.rb +21 -0
  11. data/lib/br_documents/cnpj_cpf/cpf.rb +21 -0
  12. data/lib/br_documents/cnpj_cpf/document.rb +35 -0
  13. data/lib/br_documents/cnpj_validator.rb +8 -0
  14. data/lib/br_documents/commons/mod11.rb +20 -0
  15. data/lib/br_documents/cpf_validator.rb +8 -0
  16. data/lib/br_documents/ie/ac.rb +17 -0
  17. data/lib/br_documents/ie/al.rb +17 -0
  18. data/lib/br_documents/ie/am.rb +17 -0
  19. data/lib/br_documents/ie/ap.rb +52 -0
  20. data/lib/br_documents/ie/ba.rb +75 -0
  21. data/lib/br_documents/ie/base.rb +17 -0
  22. data/lib/br_documents/ie/ce.rb +12 -0
  23. data/lib/br_documents/ie/df.rb +17 -0
  24. data/lib/br_documents/ie/es.rb +12 -0
  25. data/lib/br_documents/ie/factory.rb +12 -0
  26. data/lib/br_documents/ie/go.rb +17 -0
  27. data/lib/br_documents/ie/ma.rb +12 -0
  28. data/lib/br_documents/ie/mg.rb +53 -0
  29. data/lib/br_documents/ie/ms.rb +12 -0
  30. data/lib/br_documents/ie/mt.rb +18 -0
  31. data/lib/br_documents/ie/pa.rb +17 -0
  32. data/lib/br_documents/ie/pattern1.rb +26 -0
  33. data/lib/br_documents/ie/pattern2.rb +30 -0
  34. data/lib/br_documents/ie/pb.rb +12 -0
  35. data/lib/br_documents/ie/pe.rb +51 -0
  36. data/lib/br_documents/ie/pi.rb +12 -0
  37. data/lib/br_documents/ie/pr.rb +19 -0
  38. data/lib/br_documents/ie/rj.rb +18 -0
  39. data/lib/br_documents/ie/rn.rb +47 -0
  40. data/lib/br_documents/ie/ro.rb +49 -0
  41. data/lib/br_documents/ie/rr.rb +23 -0
  42. data/lib/br_documents/ie/rs.rb +18 -0
  43. data/lib/br_documents/ie/sc.rb +17 -0
  44. data/lib/br_documents/ie/se.rb +12 -0
  45. data/lib/br_documents/ie/sp.rb +55 -0
  46. data/lib/br_documents/ie/to.rb +18 -0
  47. data/lib/br_documents/ie_validator.rb +50 -0
  48. data/lib/br_documents/version.rb +3 -0
  49. data/spec/cnpj_cpf/cnpj_spec.rb +45 -0
  50. data/spec/cnpj_cpf/cpf_spec.rb +45 -0
  51. data/spec/cnpj_validator_spec.rb +36 -0
  52. data/spec/cpf_validator_spec.rb +36 -0
  53. data/spec/ie/ac_spec.rb +40 -0
  54. data/spec/ie/al_spec.rb +33 -0
  55. data/spec/ie/am_spec.rb +40 -0
  56. data/spec/ie/ap_spec.rb +33 -0
  57. data/spec/ie/ba_spec.rb +63 -0
  58. data/spec/ie/ce_spec.rb +13 -0
  59. data/spec/ie/df_spec.rb +40 -0
  60. data/spec/ie/es_spec.rb +13 -0
  61. data/spec/ie/factory_spec.rb +203 -0
  62. data/spec/ie/go_spec.rb +40 -0
  63. data/spec/ie/ma_spec.rb +13 -0
  64. data/spec/ie/mg_spec.rb +40 -0
  65. data/spec/ie/ms_spec.rb +13 -0
  66. data/spec/ie/mt_spec.rb +40 -0
  67. data/spec/ie/pa_spec.rb +40 -0
  68. data/spec/ie/pb_spec.rb +13 -0
  69. data/spec/ie/pe_spec.rb +59 -0
  70. data/spec/ie/pi_spec.rb +13 -0
  71. data/spec/ie/pr_spec.rb +33 -0
  72. data/spec/ie/rj_spec.rb +40 -0
  73. data/spec/ie/rn_spec.rb +59 -0
  74. data/spec/ie/ro_spec.rb +59 -0
  75. data/spec/ie/rr_spec.rb +40 -0
  76. data/spec/ie/rs_spec.rb +38 -0
  77. data/spec/ie/sc_spec.rb +40 -0
  78. data/spec/ie/se_spec.rb +13 -0
  79. data/spec/ie/shared_examples_for_pattern1.rb +33 -0
  80. data/spec/ie/sp_spec.rb +42 -0
  81. data/spec/ie/to_spec.rb +40 -0
  82. data/spec/ie_validator_spec.rb +65 -0
  83. data/spec/spec_helper.rb +21 -0
  84. data/spec/support/utilities.rb +3 -0
  85. metadata +248 -0
@@ -0,0 +1,40 @@
1
+ require "spec_helper"
2
+
3
+ describe BrDocuments::IE::RR do
4
+ describe "#formatted" do
5
+ it "returns a formatted ie" do
6
+ ie = BrDocuments::IE::RR.new("123456789")
7
+ expect(ie.formatted).to eq "12345678-9"
8
+ end
9
+ end
10
+
11
+ describe "#valid?" do
12
+ it "is invalid with malformed number" do
13
+ ["24.410.109-5", "2456128-32", "24AB0559-6"].each do |number|
14
+ ie = BrDocuments::IE::RR.new(number)
15
+ expect(ie).to_not be_valid
16
+ end
17
+ end
18
+
19
+ it "is invalid with length different to 9" do
20
+ ["1234567", "123456789"].each do |number|
21
+ ie = BrDocuments::IE::RR.new(number)
22
+ expect(ie).to_not be_valid
23
+ end
24
+ end
25
+
26
+ it "is invalid with invalid check number" do
27
+ ["242131962", "247318099"].each do |number|
28
+ ie = BrDocuments::IE::RR.new(number)
29
+ expect(ie).to_not be_valid
30
+ end
31
+ end
32
+
33
+ it "is valid with valid number" do
34
+ ["241432573", "240886456"].each do |number|
35
+ ie = BrDocuments::IE::RR.new(number)
36
+ expect(ie).to be_valid
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,38 @@
1
+ require "spec_helper"
2
+
3
+ describe BrDocuments::IE::RS do
4
+ describe "#formatted" do
5
+ it "returns a formatted ie" do
6
+ ie = BrDocuments::IE::RS.new("1234567890")
7
+ expect(ie.formatted).to eq "123/4567890"
8
+ end
9
+ end
10
+
11
+ describe "#valid?" do
12
+ it "is invalid with malformed number" do
13
+ ie = BrDocuments::IE::RS.new("17/70169293")
14
+ expect(ie).to_not be_valid
15
+ end
16
+
17
+ it "is invalid with length different to 10" do
18
+ ["123456789", "12345678901"].each do |number|
19
+ ie = BrDocuments::IE::RS.new(number)
20
+ expect(ie).to_not be_valid
21
+ end
22
+ end
23
+
24
+ it "is invalid with invalid check number" do
25
+ ["1770169292", "034/0112114"].each do |number|
26
+ ie = BrDocuments::IE::RS.new(number)
27
+ expect(ie).to_not be_valid
28
+ end
29
+ end
30
+
31
+ it "is valid with valid number" do
32
+ ["1770169293", "034/0112115"].each do |number|
33
+ ie = BrDocuments::IE::RS.new(number)
34
+ expect(ie).to be_valid
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,40 @@
1
+ require "spec_helper"
2
+
3
+ describe BrDocuments::IE::SC do
4
+ describe "#formatted" do
5
+ it "returns a formatted ie" do
6
+ ie = BrDocuments::IE::SC.new("123456789")
7
+ expect(ie.formatted).to eq "123.456.789"
8
+ end
9
+ end
10
+
11
+ describe "#valid?" do
12
+ it "is invalid with malformed number" do
13
+ ["253.66.7852", "25.4062.407", "A12345678"].each do |number|
14
+ ie = BrDocuments::IE::SC.new(number)
15
+ expect(ie).to_not be_valid
16
+ end
17
+ end
18
+
19
+ it "is invalid with length different to 9" do
20
+ ["1234567890", "12345678"].each do |number|
21
+ ie = BrDocuments::IE::SC.new(number)
22
+ expect(ie).to_not be_valid
23
+ end
24
+ end
25
+
26
+ it "is invalid with invalid check number" do
27
+ ["253667853", "254.062.408"].each do |number|
28
+ ie = BrDocuments::IE::SC.new(number)
29
+ expect(ie).to_not be_valid
30
+ end
31
+ end
32
+
33
+ it "is valid with valid number" do
34
+ ["253667852", "254.062.407"].each do |number|
35
+ ie = BrDocuments::IE::SC.new(number)
36
+ expect(ie).to be_valid
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,13 @@
1
+ require "spec_helper"
2
+ require_relative "shared_examples_for_pattern1"
3
+
4
+ describe BrDocuments::IE::SE do
5
+ describe "#formatted" do
6
+ it "returns a formatted ie" do
7
+ ie = BrDocuments::IE::SE.new("123456789")
8
+ expect(ie.formatted).to eq "12345678-9"
9
+ end
10
+ end
11
+
12
+ it_behaves_like "a pattern1", "SE"
13
+ end
@@ -0,0 +1,33 @@
1
+ require "spec_helper"
2
+
3
+ shared_examples "a pattern1" do |uf|
4
+ describe "#valid?" do
5
+ it "is invalid with malformed number" do
6
+ ["1922212-21", "72.219.398-0", "63BA9943-8"].each do |number|
7
+ ie = BrDocuments::IE::Factory.create(uf, number)
8
+ expect(ie).to_not be_valid
9
+ end
10
+ end
11
+
12
+ it "is invalid with length different to 9" do
13
+ ["1234567", "12345678901"].each do |number|
14
+ ie = BrDocuments::IE::Factory.create(uf, number)
15
+ expect(ie).to_not be_valid
16
+ end
17
+ end
18
+
19
+ it "is invalid with invalid check number" do
20
+ ["226905727", "662637732"].each do |number|
21
+ ie = BrDocuments::IE::Factory.create(uf, number)
22
+ expect(ie).to_not be_valid
23
+ end
24
+ end
25
+
26
+ it "is valid with valid number" do
27
+ ["732766940", "665822081"].each do |number|
28
+ ie = BrDocuments::IE::Factory.create(uf, number)
29
+ expect(ie).to be_valid
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,42 @@
1
+ require "spec_helper"
2
+
3
+ describe BrDocuments::IE::SP do
4
+ describe "#formatted" do
5
+ context "when having 12 digits" do
6
+ it "returns a formatted ie" do
7
+ ie = BrDocuments::IE::SP.new("110042490114")
8
+ expect(ie.formatted).to eq "110.042.490.114"
9
+ end
10
+ end
11
+
12
+ context "when having 13 digits" do
13
+ it "returns a formatted ie" do
14
+ ie = BrDocuments::IE::SP.new("P011004243002")
15
+ expect(ie.formatted).to eq "P-01100424.3/002"
16
+ end
17
+ end
18
+ end
19
+
20
+ describe "#valid?" do
21
+ it "is invalid with malformed number" do
22
+ ["36.9107.395114", "527.08212.8110"].each do |number|
23
+ ie = BrDocuments::IE::SP.new(number)
24
+ expect(ie).to_not be_valid
25
+ end
26
+ end
27
+
28
+ it "is invalid with invalid check number" do
29
+ ["110042490113", "110.042.491.114", "P-01100424.4/002"].each do |number|
30
+ ie = BrDocuments::IE::SP.new(number)
31
+ expect(ie).to_not be_valid
32
+ end
33
+ end
34
+
35
+ it "is valid with valid number" do
36
+ ["110042490114", "110.042.490.114", "P-01100424.3/002"].each do |number|
37
+ ie = BrDocuments::IE::SP.new(number)
38
+ expect(ie).to be_valid
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,40 @@
1
+ require "spec_helper"
2
+
3
+ describe BrDocuments::IE::TO do
4
+ describe "#formatted" do
5
+ it "returns a formatted ie" do
6
+ ie = BrDocuments::IE::TO.new("12345678901")
7
+ expect(ie.formatted).to eq "12345678901"
8
+ end
9
+ end
10
+
11
+ describe "#valid?" do
12
+ it "is invalid with malformed number" do
13
+ ["2.903.593.362-3", "29.02.79268-45", "29.02.5AB420-5"].each do |number|
14
+ ie = BrDocuments::IE::TO.new(number)
15
+ expect(ie).to_not be_valid
16
+ end
17
+ end
18
+
19
+ it "is invalid with length different to 11" do
20
+ ["12345678", "123456789012"].each do |number|
21
+ ie = BrDocuments::IE::TO.new(number)
22
+ expect(ie).to_not be_valid
23
+ end
24
+ end
25
+
26
+ it "is invalid with invalid check number" do
27
+ ["29023864406", "29023864409"].each do |number|
28
+ ie = BrDocuments::IE::TO.new(number)
29
+ expect(ie).to_not be_valid
30
+ end
31
+ end
32
+
33
+ it "is valid with valid number" do
34
+ ["29992001436", "29992317417"].each do |number|
35
+ ie = BrDocuments::IE::TO.new(number)
36
+ expect(ie).to be_valid
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,65 @@
1
+ require "spec_helper"
2
+
3
+ describe IeValidator do
4
+ before(:each) do
5
+ @validator = IeValidator.new(attributes: "ie", uf: "uf")
6
+ @mock = double("model")
7
+ @mock.stub(:uf) {"SC"}
8
+ @mock.stub(:errors).and_return([])
9
+ @mock.errors.stub(:messages).and_return({})
10
+ @mock.errors.stub(:add) do | attribute, error |
11
+ @mock.errors.messages[attribute] = [error]
12
+ end
13
+ end
14
+
15
+ subject { @validator }
16
+
17
+ context "when IE is valid" do
18
+ it "doesn't add errors in model" do
19
+ subject.validate_each(@mock, "ie", "253667852")
20
+ expect(@mock.errors.messages).to be_empty
21
+ end
22
+ end
23
+
24
+ context "when IE is blank" do
25
+ it "doesn't add errors in model" do
26
+ subject.validate_each(@mock, "ie", "")
27
+ expect(@mock.errors.messages).to be_empty
28
+ end
29
+ end
30
+
31
+ context "when IE is invalid" do
32
+ it "adds errors in model" do
33
+ subject.validate_each(@mock, "ie", "253667853")
34
+ expect(@mock.errors.messages).to_not be_empty
35
+ end
36
+ end
37
+
38
+ context "when UF is invalid" do
39
+ it "adds error in model" do
40
+ @mock.stub(:uf){""}
41
+ subject.validate_each(@mock, "ie", "253667852")
42
+ expect(@mock.errors.messages["ie"]).to eql [t("validator.ie.uf.invalid")]
43
+ end
44
+ end
45
+
46
+ context "when it can't find attribute uf in model" do
47
+ it "adds error in model" do
48
+ @mock.stub(:uf).and_raise(NoMethodError)
49
+ subject.validate_each(@mock, "ie", "253667852")
50
+ expect(@mock.errors.messages[:base]).to eql [
51
+ t("validator.ie.uf.no_present", uf: "uf")
52
+ ]
53
+ end
54
+ end
55
+
56
+ context "when attribute uf is not defined" do
57
+ it "adds error in model" do
58
+ @validator = IeValidator.new(attributes: "ie")
59
+ subject.validate_each(@mock, "ie", "253667852")
60
+ expect(@mock.errors.messages[:base]).to eql [
61
+ t("validator.ie.uf.no_configured")
62
+ ]
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,21 @@
1
+ require "simplecov"
2
+ require "codeclimate-test-reporter"
3
+ CodeClimate::TestReporter.start
4
+ SimpleCov.start
5
+
6
+ require "bundler/setup"
7
+ Bundler.require(:default, :development)
8
+
9
+ require "br_documents"
10
+
11
+ Dir[File.dirname(__FILE__) + "/support/*.rb"].each { |f| require f }
12
+
13
+ I18n.default_locale = "pt-BR"
14
+
15
+ RSpec.configure do |config|
16
+ config.expect_with :rspec do |c|
17
+ c.syntax = :expect
18
+ end
19
+
20
+ config.order = "random"
21
+ end
@@ -0,0 +1,3 @@
1
+ def t(string, options={})
2
+ I18n.t(string, options)
3
+ end
metadata ADDED
@@ -0,0 +1,248 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: br_documents
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - ASSEINFO - Sistemas de Informação
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 10.1.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 10.1.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 2.14.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.14.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: codeclimate-test-reporter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activemodel
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 4.0.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 4.0.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: i18n
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 0.6.5
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 0.6.5
97
+ description: Solução para validar documentos brasileiros
98
+ email:
99
+ - asseinfo@asseinfo.com.br
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - .gitignore
105
+ - .rspec
106
+ - Gemfile
107
+ - README.md
108
+ - Rakefile
109
+ - br_documents.gemspec
110
+ - config/locales/pt-BR.yml
111
+ - lib/br_documents.rb
112
+ - lib/br_documents/cnpj_cpf/cnpj.rb
113
+ - lib/br_documents/cnpj_cpf/cpf.rb
114
+ - lib/br_documents/cnpj_cpf/document.rb
115
+ - lib/br_documents/cnpj_validator.rb
116
+ - lib/br_documents/commons/mod11.rb
117
+ - lib/br_documents/cpf_validator.rb
118
+ - lib/br_documents/ie/ac.rb
119
+ - lib/br_documents/ie/al.rb
120
+ - lib/br_documents/ie/am.rb
121
+ - lib/br_documents/ie/ap.rb
122
+ - lib/br_documents/ie/ba.rb
123
+ - lib/br_documents/ie/base.rb
124
+ - lib/br_documents/ie/ce.rb
125
+ - lib/br_documents/ie/df.rb
126
+ - lib/br_documents/ie/es.rb
127
+ - lib/br_documents/ie/factory.rb
128
+ - lib/br_documents/ie/go.rb
129
+ - lib/br_documents/ie/ma.rb
130
+ - lib/br_documents/ie/mg.rb
131
+ - lib/br_documents/ie/ms.rb
132
+ - lib/br_documents/ie/mt.rb
133
+ - lib/br_documents/ie/pa.rb
134
+ - lib/br_documents/ie/pattern1.rb
135
+ - lib/br_documents/ie/pattern2.rb
136
+ - lib/br_documents/ie/pb.rb
137
+ - lib/br_documents/ie/pe.rb
138
+ - lib/br_documents/ie/pi.rb
139
+ - lib/br_documents/ie/pr.rb
140
+ - lib/br_documents/ie/rj.rb
141
+ - lib/br_documents/ie/rn.rb
142
+ - lib/br_documents/ie/ro.rb
143
+ - lib/br_documents/ie/rr.rb
144
+ - lib/br_documents/ie/rs.rb
145
+ - lib/br_documents/ie/sc.rb
146
+ - lib/br_documents/ie/se.rb
147
+ - lib/br_documents/ie/sp.rb
148
+ - lib/br_documents/ie/to.rb
149
+ - lib/br_documents/ie_validator.rb
150
+ - lib/br_documents/version.rb
151
+ - spec/cnpj_cpf/cnpj_spec.rb
152
+ - spec/cnpj_cpf/cpf_spec.rb
153
+ - spec/cnpj_validator_spec.rb
154
+ - spec/cpf_validator_spec.rb
155
+ - spec/ie/ac_spec.rb
156
+ - spec/ie/al_spec.rb
157
+ - spec/ie/am_spec.rb
158
+ - spec/ie/ap_spec.rb
159
+ - spec/ie/ba_spec.rb
160
+ - spec/ie/ce_spec.rb
161
+ - spec/ie/df_spec.rb
162
+ - spec/ie/es_spec.rb
163
+ - spec/ie/factory_spec.rb
164
+ - spec/ie/go_spec.rb
165
+ - spec/ie/ma_spec.rb
166
+ - spec/ie/mg_spec.rb
167
+ - spec/ie/ms_spec.rb
168
+ - spec/ie/mt_spec.rb
169
+ - spec/ie/pa_spec.rb
170
+ - spec/ie/pb_spec.rb
171
+ - spec/ie/pe_spec.rb
172
+ - spec/ie/pi_spec.rb
173
+ - spec/ie/pr_spec.rb
174
+ - spec/ie/rj_spec.rb
175
+ - spec/ie/rn_spec.rb
176
+ - spec/ie/ro_spec.rb
177
+ - spec/ie/rr_spec.rb
178
+ - spec/ie/rs_spec.rb
179
+ - spec/ie/sc_spec.rb
180
+ - spec/ie/se_spec.rb
181
+ - spec/ie/shared_examples_for_pattern1.rb
182
+ - spec/ie/sp_spec.rb
183
+ - spec/ie/to_spec.rb
184
+ - spec/ie_validator_spec.rb
185
+ - spec/spec_helper.rb
186
+ - spec/support/utilities.rb
187
+ homepage: http://github.com/asseinfo/br_documents
188
+ licenses:
189
+ - MIT
190
+ metadata:
191
+ allowed_push_host: http://github.com/asseinfo/br_documents
192
+ post_install_message:
193
+ rdoc_options: []
194
+ require_paths:
195
+ - lib
196
+ required_ruby_version: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - '>='
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ required_rubygems_version: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ requirements: []
207
+ rubyforge_project:
208
+ rubygems_version: 2.0.6
209
+ signing_key:
210
+ specification_version: 4
211
+ summary: Solução para validar documentos brasileiros
212
+ test_files:
213
+ - spec/cnpj_cpf/cnpj_spec.rb
214
+ - spec/cnpj_cpf/cpf_spec.rb
215
+ - spec/cnpj_validator_spec.rb
216
+ - spec/cpf_validator_spec.rb
217
+ - spec/ie/ac_spec.rb
218
+ - spec/ie/al_spec.rb
219
+ - spec/ie/am_spec.rb
220
+ - spec/ie/ap_spec.rb
221
+ - spec/ie/ba_spec.rb
222
+ - spec/ie/ce_spec.rb
223
+ - spec/ie/df_spec.rb
224
+ - spec/ie/es_spec.rb
225
+ - spec/ie/factory_spec.rb
226
+ - spec/ie/go_spec.rb
227
+ - spec/ie/ma_spec.rb
228
+ - spec/ie/mg_spec.rb
229
+ - spec/ie/ms_spec.rb
230
+ - spec/ie/mt_spec.rb
231
+ - spec/ie/pa_spec.rb
232
+ - spec/ie/pb_spec.rb
233
+ - spec/ie/pe_spec.rb
234
+ - spec/ie/pi_spec.rb
235
+ - spec/ie/pr_spec.rb
236
+ - spec/ie/rj_spec.rb
237
+ - spec/ie/rn_spec.rb
238
+ - spec/ie/ro_spec.rb
239
+ - spec/ie/rr_spec.rb
240
+ - spec/ie/rs_spec.rb
241
+ - spec/ie/sc_spec.rb
242
+ - spec/ie/se_spec.rb
243
+ - spec/ie/shared_examples_for_pattern1.rb
244
+ - spec/ie/sp_spec.rb
245
+ - spec/ie/to_spec.rb
246
+ - spec/ie_validator_spec.rb
247
+ - spec/spec_helper.rb
248
+ - spec/support/utilities.rb