boa_vista_stubs 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/boa_vista_stubs/document/cnpj.rb +5 -3
- data/app/models/boa_vista_stubs/document/cpf.rb +4 -4
- data/app/models/boa_vista_stubs/document/extension.rb +3 -3
- data/lib/boa_vista_stubs/version.rb +1 -1
- data/spec/dummy/log/test.log +13 -250
- data/spec/models/boa_vista_stubs/document/cpf_spec.rb +2 -2
- metadata +78 -16
- checksums.yaml +0 -15
@@ -2,14 +2,16 @@ module BoaVistaStubs
|
|
2
2
|
class Document::Cnpj
|
3
3
|
include BoaVistaStubs::Document::Extension
|
4
4
|
|
5
|
-
attr_reader :document_number
|
6
|
-
|
7
5
|
def initialize(document_number)
|
8
6
|
@document_number = document_number
|
9
7
|
end
|
10
8
|
|
9
|
+
def number
|
10
|
+
@document_number
|
11
|
+
end
|
12
|
+
|
11
13
|
def valid?
|
12
|
-
validator(
|
14
|
+
validator(number).valid_cnpj?
|
13
15
|
end
|
14
16
|
|
15
17
|
def invalid?
|
@@ -6,12 +6,12 @@ module BoaVistaStubs
|
|
6
6
|
@document_number = document_number
|
7
7
|
end
|
8
8
|
|
9
|
-
def
|
9
|
+
def number
|
10
10
|
@document_number.slice(3..-1)
|
11
11
|
end
|
12
12
|
|
13
13
|
def valid?
|
14
|
-
validator(
|
14
|
+
validator(cleared_number).valid_cpf?
|
15
15
|
end
|
16
16
|
|
17
17
|
def invalid?
|
@@ -24,8 +24,8 @@ module BoaVistaStubs
|
|
24
24
|
|
25
25
|
protected
|
26
26
|
|
27
|
-
def
|
28
|
-
|
27
|
+
def cleared_number
|
28
|
+
number.strip
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
@@ -2,13 +2,13 @@ module BoaVistaStubs
|
|
2
2
|
module Document::Extension
|
3
3
|
|
4
4
|
def timeout_document?
|
5
|
-
validator(
|
5
|
+
validator(number).timeout_document?
|
6
6
|
end
|
7
7
|
|
8
8
|
protected
|
9
9
|
|
10
|
-
def validator(
|
11
|
-
BoaVistaStubs::Document::ValidateExpression.new(
|
10
|
+
def validator(number)
|
11
|
+
BoaVistaStubs::Document::ValidateExpression.new(number)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -1,288 +1,51 @@
|
|
1
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
2
|
-
Parameters: {"consulta"=>"my search string"}
|
3
|
-
Rendered text template (0.0ms)
|
4
|
-
Completed 200 OK in 40.8ms (Views: 40.2ms)
|
5
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
6
|
-
Parameters: {"consulta"=>"my search string"}
|
7
|
-
Rendered text template (0.0ms)
|
8
|
-
Completed 200 OK in 6.7ms (Views: 6.4ms)
|
9
1
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
10
2
|
Parameters: {"consulta"=>"CSR60 01 my code my passwCADPJ 032C243075237000144 X"}
|
11
|
-
|
12
|
-
Completed 500 Internal Server Error in 1.1ms
|
13
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
14
|
-
Parameters: {"consulta"=>"CSR60 01 my code my passwCADPJ 032C212345678901234 X"}
|
15
|
-
[BoaVistaStubs] - Start validating document type: CNPJ
|
16
|
-
Completed 500 Internal Server Error in 0.3ms
|
17
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
18
|
-
Parameters: {"consulta"=>"CSR60 01 my code my passwSINTON 012C195711895290 X"}
|
19
|
-
[BoaVistaStubs] - Start validating document type: CPF
|
20
|
-
Completed 500 Internal Server Error in 0.3ms
|
21
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
22
|
-
Parameters: {"consulta"=>"CSR60 01 my code my passwSINTON 012C100001123321 X"}
|
23
|
-
[BoaVistaStubs] - Start validating document type: CPF
|
24
|
-
Completed 500 Internal Server Error in 0.3ms
|
25
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
26
|
-
Parameters: {"consulta"=>"my search string"}
|
27
|
-
Rendered text template (0.0ms)
|
28
|
-
Completed 200 OK in 22.7ms (Views: 22.0ms)
|
29
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
30
|
-
Parameters: {"consulta"=>"my search string"}
|
31
|
-
Rendered text template (0.0ms)
|
32
|
-
Completed 200 OK in 6.2ms (Views: 5.9ms)
|
33
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
34
|
-
Parameters: {"consulta"=>"my search string"}
|
35
|
-
Rendered text template (0.0ms)
|
36
|
-
Completed 200 OK in 40.1ms (Views: 39.3ms)
|
37
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
38
|
-
Parameters: {"consulta"=>"my search string"}
|
39
|
-
Rendered text template (0.0ms)
|
40
|
-
Completed 200 OK in 51.5ms (Views: 50.7ms)
|
41
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
42
|
-
Parameters: {"consulta"=>"my search string"}
|
43
|
-
Rendered text template (0.0ms)
|
44
|
-
Completed 200 OK in 6.3ms (Views: 6.0ms)
|
45
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
46
|
-
Parameters: {"consulta"=>"my search string"}
|
47
|
-
Rendered text template (0.0ms)
|
48
|
-
Completed 200 OK in 7.5ms (Views: 7.1ms)
|
49
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
50
|
-
Parameters: {"consulta"=>"my search string"}
|
51
|
-
Rendered text template (0.0ms)
|
52
|
-
Completed 200 OK in 22.6ms (Views: 22.0ms)
|
53
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
54
|
-
Parameters: {"consulta"=>"my search string"}
|
55
|
-
Rendered text template (0.0ms)
|
56
|
-
Completed 200 OK in 8.3ms (Views: 7.7ms)
|
57
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
58
|
-
Parameters: {"consulta"=>"my search string"}
|
59
|
-
Rendered text template (0.0ms)
|
60
|
-
Completed 200 OK in 6.3ms (Views: 5.9ms)
|
61
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
62
|
-
Parameters: {"consulta"=>"my search string"}
|
63
|
-
Rendered text template (0.0ms)
|
64
|
-
Completed 200 OK in 5.9ms (Views: 5.5ms)
|
65
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
66
|
-
Parameters: {"consulta"=>"my search string"}
|
67
|
-
Rendered text template (0.0ms)
|
68
|
-
Completed 200 OK in 23.4ms (Views: 22.7ms)
|
69
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
70
|
-
Parameters: {"consulta"=>"my search string"}
|
71
|
-
Rendered text template (0.0ms)
|
72
|
-
Completed 200 OK in 24.6ms (Views: 23.7ms)
|
73
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
74
|
-
Parameters: {"consulta"=>"my search string"}
|
75
|
-
Rendered text template (0.0ms)
|
76
|
-
Completed 200 OK in 6.1ms (Views: 5.8ms)
|
77
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
78
|
-
Parameters: {"consulta"=>"my search string"}
|
79
|
-
Rendered text template (0.0ms)
|
80
|
-
Completed 200 OK in 6.3ms (Views: 6.0ms)
|
81
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
82
|
-
Parameters: {"consulta"=>"my search string"}
|
83
|
-
Rendered text template (0.0ms)
|
84
|
-
Completed 200 OK in 11.1ms (Views: 10.6ms)
|
85
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
86
|
-
Parameters: {"consulta"=>"my search string"}
|
87
|
-
Rendered text template (0.0ms)
|
88
|
-
Completed 200 OK in 6.3ms (Views: 6.0ms)
|
89
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
90
|
-
Parameters: {"consulta"=>"my search string"}
|
91
|
-
Rendered text template (0.0ms)
|
92
|
-
Completed 200 OK in 6.2ms (Views: 5.8ms)
|
93
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
94
|
-
Parameters: {"consulta"=>"my search string"}
|
95
|
-
Rendered text template (0.0ms)
|
96
|
-
Completed 200 OK in 7.6ms (Views: 7.1ms)
|
97
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
98
|
-
Parameters: {"consulta"=>"my search string"}
|
99
|
-
Rendered text template (0.0ms)
|
100
|
-
Completed 200 OK in 8.7ms (Views: 8.4ms)
|
101
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
102
|
-
Parameters: {"consulta"=>"my search string"}
|
103
|
-
Rendered text template (0.0ms)
|
104
|
-
Completed 200 OK in 6.8ms (Views: 6.3ms)
|
105
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
106
|
-
Parameters: {"consulta"=>"my search string"}
|
107
|
-
Rendered text template (0.0ms)
|
108
|
-
Completed 200 OK in 40.1ms (Views: 39.3ms)
|
109
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
110
|
-
Parameters: {"consulta"=>"my search string"}
|
111
|
-
Rendered text template (0.0ms)
|
112
|
-
Completed 200 OK in 22.7ms (Views: 22.1ms)
|
113
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
114
|
-
Parameters: {"consulta"=>"my search string"}
|
115
|
-
Rendered text template (0.0ms)
|
116
|
-
Completed 200 OK in 39.9ms (Views: 39.1ms)
|
117
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
118
|
-
Parameters: {"consulta"=>"my search string"}
|
119
|
-
Rendered text template (0.0ms)
|
120
|
-
Completed 200 OK in 24.4ms (Views: 23.5ms)
|
121
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
122
|
-
Parameters: {"consulta"=>"my search string"}
|
123
|
-
Rendered text template (0.0ms)
|
124
|
-
Completed 200 OK in 6.4ms (Views: 6.0ms)
|
125
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
126
|
-
Parameters: {"consulta"=>"my search string"}
|
127
|
-
Rendered text template (0.1ms)
|
128
|
-
Completed 200 OK in 6.0ms (Views: 5.6ms)
|
129
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
130
|
-
Parameters: {"consulta"=>"my search string"}
|
131
|
-
Rendered text template (0.0ms)
|
132
|
-
Completed 200 OK in 22.7ms (Views: 22.0ms)
|
133
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
134
|
-
Parameters: {"consulta"=>"my search string"}
|
135
|
-
Rendered text template (0.0ms)
|
136
|
-
Completed 200 OK in 22.0ms (Views: 21.1ms)
|
137
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
138
|
-
Parameters: {"consulta"=>"my search string"}
|
139
|
-
Rendered text template (0.0ms)
|
140
|
-
Completed 200 OK in 39.8ms (Views: 38.9ms)
|
141
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
142
|
-
Parameters: {"consulta"=>"my search string"}
|
143
|
-
Rendered text template (0.0ms)
|
144
|
-
Completed 200 OK in 23.3ms (Views: 22.7ms)
|
145
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
146
|
-
Parameters: {"consulta"=>"my search string"}
|
147
|
-
Rendered text template (0.0ms)
|
148
|
-
Completed 200 OK in 22.8ms (Views: 22.2ms)
|
149
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
150
|
-
Parameters: {"consulta"=>"my search string"}
|
151
|
-
Rendered text template (0.0ms)
|
152
|
-
Completed 200 OK in 24.5ms (Views: 23.7ms)
|
153
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
154
|
-
Parameters: {"consulta"=>"my search string"}
|
155
|
-
Rendered text template (0.0ms)
|
156
|
-
Completed 200 OK in 22.8ms (Views: 22.1ms)
|
157
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
158
|
-
Parameters: {"consulta"=>"my search string"}
|
159
|
-
Rendered text template (0.0ms)
|
160
|
-
Completed 200 OK in 50.9ms (Views: 50.1ms)
|
161
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
162
|
-
Parameters: {"consulta"=>"my search string"}
|
163
|
-
Rendered text template (0.0ms)
|
164
|
-
Completed 200 OK in 51.1ms (Views: 50.3ms)
|
165
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
166
|
-
Parameters: {"consulta"=>"my search string"}
|
167
|
-
Rendered text template (0.0ms)
|
168
|
-
Completed 200 OK in 58.8ms (Views: 58.0ms)
|
169
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
170
|
-
Parameters: {"consulta"=>"my search string"}
|
171
|
-
Rendered text template (0.0ms)
|
172
|
-
Completed 200 OK in 23.2ms (Views: 22.4ms)
|
173
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
174
|
-
Parameters: {"consulta"=>"my search string"}
|
175
|
-
Rendered text template (0.0ms)
|
176
|
-
Completed 200 OK in 43.6ms (Views: 42.5ms)
|
177
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
178
|
-
Parameters: {"consulta"=>"my search string"}
|
179
|
-
Rendered text template (0.0ms)
|
180
|
-
Completed 200 OK in 38.3ms (Views: 37.5ms)
|
181
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
182
|
-
Parameters: {"consulta"=>"my search string"}
|
183
|
-
Rendered text template (0.0ms)
|
184
|
-
Completed 200 OK in 21.4ms (Views: 20.7ms)
|
185
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
186
|
-
Parameters: {"consulta"=>"my search string"}
|
187
|
-
Rendered text template (0.0ms)
|
188
|
-
Completed 200 OK in 36.6ms (Views: 36.0ms)
|
189
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
190
|
-
Parameters: {"consulta"=>"my search string"}
|
191
|
-
Rendered text template (0.0ms)
|
192
|
-
Completed 200 OK in 21.0ms (Views: 20.3ms)
|
193
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
194
|
-
Parameters: {"consulta"=>"my search string"}
|
195
|
-
Rendered text template (0.0ms)
|
196
|
-
Completed 200 OK in 33.2ms (Views: 32.6ms)
|
197
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
198
|
-
Parameters: {"consulta"=>"my search string"}
|
199
|
-
Rendered text template (0.0ms)
|
200
|
-
Completed 200 OK in 21.7ms (Views: 21.0ms)
|
201
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
202
|
-
Parameters: {"consulta"=>"my search string"}
|
203
|
-
Rendered text template (0.0ms)
|
204
|
-
Completed 200 OK in 17.0ms (Views: 16.3ms)
|
205
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
206
|
-
Parameters: {"consulta"=>"my search string"}
|
207
|
-
Rendered text template (0.0ms)
|
208
|
-
Completed 200 OK in 16.7ms (Views: 16.0ms)
|
209
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
210
|
-
Parameters: {"consulta"=>"my search string"}
|
211
|
-
Rendered text template (0.0ms)
|
212
|
-
Completed 200 OK in 19.1ms (Views: 18.5ms)
|
213
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
214
|
-
Parameters: {"consulta"=>"my search string"}
|
215
|
-
Rendered text template (0.0ms)
|
216
|
-
Completed 200 OK in 22.3ms (Views: 21.3ms)
|
217
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
218
|
-
Parameters: {"consulta"=>"my search string"}
|
219
|
-
Rendered text template (0.0ms)
|
220
|
-
Completed 200 OK in 15.3ms (Views: 14.6ms)
|
221
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
222
|
-
Parameters: {"consulta"=>"my search string"}
|
223
|
-
Rendered text template (0.0ms)
|
224
|
-
Completed 200 OK in 17.5ms (Views: 16.7ms)
|
225
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
226
|
-
Parameters: {"consulta"=>"my search string"}
|
227
|
-
Rendered text template (0.0ms)
|
228
|
-
Completed 200 OK in 29.8ms (Views: 29.1ms)
|
229
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
230
|
-
Parameters: {"consulta"=>"my search string"}
|
231
|
-
Rendered text template (0.0ms)
|
232
|
-
Completed 200 OK in 36.4ms (Views: 35.8ms)
|
233
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
234
|
-
Parameters: {"consulta"=>"my search string"}
|
235
|
-
Rendered text template (0.0ms)
|
236
|
-
Completed 200 OK in 33.9ms (Views: 33.2ms)
|
237
|
-
Processing by BoaVistaStubs::RequestsController#index as HTML
|
238
|
-
Parameters: {"consulta"=>"my search string"}
|
239
|
-
Rendered text template (0.0ms)
|
240
|
-
Completed 200 OK in 18.0ms (Views: 17.4ms)
|
3
|
+
Completed 500 Internal Server Error in 0ms
|
241
4
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
242
5
|
Parameters: {"consulta"=>"my search string"}
|
243
6
|
Rendered text template (0.0ms)
|
244
|
-
Completed 200 OK in
|
7
|
+
Completed 200 OK in 30.6ms (Views: 30.1ms)
|
245
8
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
246
9
|
Parameters: {"consulta"=>"my search string"}
|
247
10
|
Rendered text template (0.0ms)
|
248
|
-
Completed 200 OK in
|
11
|
+
Completed 200 OK in 11.8ms (Views: 11.4ms)
|
249
12
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
250
13
|
Parameters: {"consulta"=>"my search string"}
|
251
14
|
Rendered text template (0.0ms)
|
252
|
-
Completed 200 OK in
|
15
|
+
Completed 200 OK in 7.9ms (Views: 7.6ms)
|
253
16
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
254
17
|
Parameters: {"consulta"=>"my search string"}
|
255
18
|
Rendered text template (0.0ms)
|
256
|
-
Completed 200 OK in
|
19
|
+
Completed 200 OK in 13.1ms (Views: 12.8ms)
|
257
20
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
258
21
|
Parameters: {"consulta"=>"my search string"}
|
259
22
|
Rendered text template (0.0ms)
|
260
|
-
Completed 200 OK in
|
23
|
+
Completed 200 OK in 9.3ms (Views: 9.0ms)
|
261
24
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
262
25
|
Parameters: {"consulta"=>"my search string"}
|
263
26
|
Rendered text template (0.0ms)
|
264
|
-
Completed 200 OK in
|
27
|
+
Completed 200 OK in 9.1ms (Views: 8.8ms)
|
265
28
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
266
29
|
Parameters: {"consulta"=>"my search string"}
|
267
30
|
Rendered text template (0.0ms)
|
268
|
-
Completed 200 OK in
|
31
|
+
Completed 200 OK in 11.3ms (Views: 10.9ms)
|
269
32
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
270
33
|
Parameters: {"consulta"=>"my search string"}
|
271
34
|
Rendered text template (0.0ms)
|
272
|
-
Completed 200 OK in
|
35
|
+
Completed 200 OK in 11.2ms (Views: 10.9ms)
|
273
36
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
274
37
|
Parameters: {"consulta"=>"my search string"}
|
275
38
|
Rendered text template (0.0ms)
|
276
|
-
Completed 200 OK in
|
39
|
+
Completed 200 OK in 8.5ms (Views: 8.2ms)
|
277
40
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
278
41
|
Parameters: {"consulta"=>"my search string"}
|
279
42
|
Rendered text template (0.0ms)
|
280
|
-
Completed 200 OK in
|
43
|
+
Completed 200 OK in 11.8ms (Views: 10.3ms)
|
281
44
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
282
45
|
Parameters: {"consulta"=>"my search string"}
|
283
46
|
Rendered text template (0.0ms)
|
284
|
-
Completed 200 OK in
|
47
|
+
Completed 200 OK in 7.6ms (Views: 7.3ms)
|
285
48
|
Processing by BoaVistaStubs::RequestsController#index as HTML
|
286
49
|
Parameters: {"consulta"=>"my search string"}
|
287
50
|
Rendered text template (0.0ms)
|
288
|
-
Completed 200 OK in
|
51
|
+
Completed 200 OK in 9.0ms (Views: 8.6ms)
|
@@ -9,10 +9,10 @@ RSpec.describe BoaVistaStubs::Document::Cpf do
|
|
9
9
|
it { expect(instance).to be_a_instance_of(described_class) }
|
10
10
|
end
|
11
11
|
|
12
|
-
describe '#
|
12
|
+
describe '#number' do
|
13
13
|
it 'returns the document number without zeros' do
|
14
14
|
doc = described_class.new(document_number)
|
15
|
-
expect(doc.
|
15
|
+
expect(doc.number).to eq('30630011299')
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boa_vista_stubs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Kleber Shimabuku
|
@@ -9,11 +10,12 @@ authors:
|
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2016-
|
13
|
+
date: 2016-04-26 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: rails
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
20
|
- - ~>
|
19
21
|
- !ruby/object:Gem::Version
|
@@ -21,27 +23,79 @@ dependencies:
|
|
21
23
|
type: :runtime
|
22
24
|
prerelease: false
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
24
27
|
requirements:
|
25
28
|
- - ~>
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: 3.2.22
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: i18n
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - '='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 0.6.11
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - '='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.6.11
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.9.2.2
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - '='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.9.2.2
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rack-cache
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.2.0
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 1.2.0
|
28
79
|
- !ruby/object:Gem::Dependency
|
29
80
|
name: boa_vista
|
30
81
|
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
31
83
|
requirements:
|
32
84
|
- - ~>
|
33
85
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.0.
|
86
|
+
version: 0.0.12
|
35
87
|
type: :runtime
|
36
88
|
prerelease: false
|
37
89
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
38
91
|
requirements:
|
39
92
|
- - ~>
|
40
93
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.0.
|
94
|
+
version: 0.0.12
|
42
95
|
- !ruby/object:Gem::Dependency
|
43
96
|
name: rspec-rails
|
44
97
|
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
45
99
|
requirements:
|
46
100
|
- - ! '>='
|
47
101
|
- !ruby/object:Gem::Version
|
@@ -49,6 +103,7 @@ dependencies:
|
|
49
103
|
type: :development
|
50
104
|
prerelease: false
|
51
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
52
107
|
requirements:
|
53
108
|
- - ! '>='
|
54
109
|
- !ruby/object:Gem::Version
|
@@ -56,6 +111,7 @@ dependencies:
|
|
56
111
|
- !ruby/object:Gem::Dependency
|
57
112
|
name: pry-rails
|
58
113
|
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
59
115
|
requirements:
|
60
116
|
- - ! '>='
|
61
117
|
- !ruby/object:Gem::Version
|
@@ -63,6 +119,7 @@ dependencies:
|
|
63
119
|
type: :development
|
64
120
|
prerelease: false
|
65
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
66
123
|
requirements:
|
67
124
|
- - ! '>='
|
68
125
|
- !ruby/object:Gem::Version
|
@@ -70,6 +127,7 @@ dependencies:
|
|
70
127
|
- !ruby/object:Gem::Dependency
|
71
128
|
name: simplecov
|
72
129
|
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
73
131
|
requirements:
|
74
132
|
- - ! '>='
|
75
133
|
- !ruby/object:Gem::Version
|
@@ -77,6 +135,7 @@ dependencies:
|
|
77
135
|
type: :development
|
78
136
|
prerelease: false
|
79
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
80
139
|
requirements:
|
81
140
|
- - ! '>='
|
82
141
|
- !ruby/object:Gem::Version
|
@@ -84,6 +143,7 @@ dependencies:
|
|
84
143
|
- !ruby/object:Gem::Dependency
|
85
144
|
name: coveralls
|
86
145
|
requirement: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
87
147
|
requirements:
|
88
148
|
- - ! '>='
|
89
149
|
- !ruby/object:Gem::Version
|
@@ -91,6 +151,7 @@ dependencies:
|
|
91
151
|
type: :development
|
92
152
|
prerelease: false
|
93
153
|
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
94
155
|
requirements:
|
95
156
|
- - ! '>='
|
96
157
|
- !ruby/object:Gem::Version
|
@@ -103,35 +164,33 @@ executables: []
|
|
103
164
|
extensions: []
|
104
165
|
extra_rdoc_files: []
|
105
166
|
files:
|
106
|
-
- MIT-LICENSE
|
107
|
-
- Rakefile
|
108
167
|
- app/assets/javascripts/boa_vista_stubs/application.js
|
109
168
|
- app/assets/stylesheets/boa_vista_stubs/application.css
|
110
169
|
- app/controllers/boa_vista_stubs/application_controller.rb
|
111
170
|
- app/controllers/boa_vista_stubs/requests_controller.rb
|
112
171
|
- app/helpers/boa_vista_stubs/application_helper.rb
|
113
|
-
- app/models/boa_vista_stubs/document.rb
|
114
172
|
- app/models/boa_vista_stubs/document/cnpj.rb
|
115
173
|
- app/models/boa_vista_stubs/document/cpf.rb
|
116
174
|
- app/models/boa_vista_stubs/document/extension.rb
|
117
|
-
- app/models/boa_vista_stubs/document/response.rb
|
118
175
|
- app/models/boa_vista_stubs/document/response/base.rb
|
119
176
|
- app/models/boa_vista_stubs/document/response/cnpj.rb
|
120
177
|
- app/models/boa_vista_stubs/document/response/cpf.rb
|
178
|
+
- app/models/boa_vista_stubs/document/response.rb
|
121
179
|
- app/models/boa_vista_stubs/document/validate_expression.rb
|
122
|
-
- app/
|
180
|
+
- app/models/boa_vista_stubs/document.rb
|
123
181
|
- app/services/boa_vista_stubs/document_service/sleep.rb
|
182
|
+
- app/services/boa_vista_stubs/document_service.rb
|
124
183
|
- app/views/layouts/boa_vista_stubs/application.html.erb
|
125
184
|
- config/routes.rb
|
126
|
-
- lib/boa_vista_stubs.rb
|
127
185
|
- lib/boa_vista_stubs/configuration.rb
|
128
186
|
- lib/boa_vista_stubs/engine.rb
|
129
187
|
- lib/boa_vista_stubs/version.rb
|
188
|
+
- lib/boa_vista_stubs.rb
|
130
189
|
- lib/tasks/boa_vista_stubs_tasks.rake
|
190
|
+
- MIT-LICENSE
|
191
|
+
- Rakefile
|
131
192
|
- spec/boa_vista_stubs_spec.rb
|
132
193
|
- spec/controllers/requests_controller_spec.rb
|
133
|
-
- spec/dummy/README.rdoc
|
134
|
-
- spec/dummy/Rakefile
|
135
194
|
- spec/dummy/app/assets/javascripts/application.js
|
136
195
|
- spec/dummy/app/assets/stylesheets/application.css
|
137
196
|
- spec/dummy/app/controllers/application_controller.rb
|
@@ -141,7 +200,6 @@ files:
|
|
141
200
|
- spec/dummy/bin/rails
|
142
201
|
- spec/dummy/bin/rake
|
143
202
|
- spec/dummy/bin/setup
|
144
|
-
- spec/dummy/config.ru
|
145
203
|
- spec/dummy/config/application.rb
|
146
204
|
- spec/dummy/config/boot.rb
|
147
205
|
- spec/dummy/config/environment.rb
|
@@ -161,6 +219,7 @@ files:
|
|
161
219
|
- spec/dummy/config/locales/en.yml
|
162
220
|
- spec/dummy/config/routes.rb
|
163
221
|
- spec/dummy/config/secrets.yml
|
222
|
+
- spec/dummy/config.ru
|
164
223
|
- spec/dummy/db/development.sqlite3
|
165
224
|
- spec/dummy/log/development.log
|
166
225
|
- spec/dummy/log/test.log
|
@@ -168,6 +227,8 @@ files:
|
|
168
227
|
- spec/dummy/public/422.html
|
169
228
|
- spec/dummy/public/500.html
|
170
229
|
- spec/dummy/public/favicon.ico
|
230
|
+
- spec/dummy/Rakefile
|
231
|
+
- spec/dummy/README.rdoc
|
171
232
|
- spec/fixtures/layout.txt
|
172
233
|
- spec/integration/navigation_test.rb
|
173
234
|
- spec/lib/boa_vista_stubs/configuration_spec.rb
|
@@ -186,26 +247,27 @@ files:
|
|
186
247
|
homepage: https://github.com/klebershimabuku/boa_vista_stubs
|
187
248
|
licenses:
|
188
249
|
- MIT
|
189
|
-
metadata: {}
|
190
250
|
post_install_message:
|
191
251
|
rdoc_options: []
|
192
252
|
require_paths:
|
193
253
|
- lib
|
194
254
|
required_ruby_version: !ruby/object:Gem::Requirement
|
255
|
+
none: false
|
195
256
|
requirements:
|
196
257
|
- - ! '>='
|
197
258
|
- !ruby/object:Gem::Version
|
198
259
|
version: '0'
|
199
260
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
261
|
+
none: false
|
200
262
|
requirements:
|
201
263
|
- - ! '>='
|
202
264
|
- !ruby/object:Gem::Version
|
203
265
|
version: '0'
|
204
266
|
requirements: []
|
205
267
|
rubyforge_project:
|
206
|
-
rubygems_version:
|
268
|
+
rubygems_version: 1.8.23.2
|
207
269
|
signing_key:
|
208
|
-
specification_version:
|
270
|
+
specification_version: 3
|
209
271
|
summary: BoaVistaStubs.
|
210
272
|
test_files:
|
211
273
|
- spec/boa_vista_stubs_spec.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
Yjk1OGRhMDIwMzdmZWQxYTM0MTQzZjc2YzA4MWZlNDQwYzZkNjhiNw==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YWUwY2M1ZGYwNjVkOWFkODQ3MjEyNjZmZDRlYzI5YTZiZWRkNTE4Ng==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MGVhMzY1NDUwMmUwNjA0NmQ5OTNhMWFlOWNjZTgwYTMxNWQ1NzQzZjExMDRj
|
10
|
-
NmE2ZWIwZTliYjlhMDRiYmY4MDE4ODJlNmQ2ODcwOWVkNzQ3ZGE2ODVjZGNm
|
11
|
-
YTBhYWFlMTAzNmJiMjliMjQ4ZDMyOGVjNGM4MTQyNDI1MjgyZGY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
Mjk0ZDEzMmMzNGMxZTY0ZWFiYWJlMGM0ZjQyMjUyMmU1NzQyZTQ3YzU0MmY4
|
14
|
-
MjE3OWE5ZWE0YmIxZGZmYzhkMTAyODJmN2I4MzE4Y2YxMDViOGVlYTc0MjUx
|
15
|
-
OWE4NTVmYmMyMjdlZDg3Njc0ZDFlZDhiM2E5YjZmZTcyNGZjM2I=
|