emites-client 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/Rakefile +5 -0
- data/emites-client.gemspec +2 -2
- data/lib/emites.rb +2 -0
- data/lib/emites/entities/collection.rb +57 -0
- data/lib/emites/entities/nfse.rb +2 -1
- data/lib/emites/entities/nfse_status.rb +2 -2
- data/lib/emites/params.rb +20 -0
- data/lib/emites/resources/base.rb +3 -13
- data/lib/emites/resources/nfse.rb +42 -3
- data/lib/emites/response.rb +11 -6
- data/lib/emites/version.rb +1 -1
- data/spec/emites/entities/base_spec.rb +1 -1
- data/spec/emites/entities/collection_spec.rb +61 -0
- data/spec/emites/entities/nfse_spec.rb +2 -2
- data/spec/emites/params_spec.rb +17 -0
- data/spec/emites/resources/base_spec.rb +1 -15
- data/spec/emites/resources/emitter_spec.rb +3 -3
- data/spec/emites/resources/nfse_spec.rb +17 -3
- data/spec/emites/resources/service_spec.rb +3 -3
- data/spec/emites/resources/taker_spec.rb +3 -3
- data/spec/emites/resources/webhook_spec.rb +2 -2
- data/spec/emites/response_spec.rb +100 -0
- data/spec/fixtures/nfse_list.json +424 -0
- data/spec/vcr_cassettes/nfse/search/success.yml +1508 -0
- metadata +17 -3
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emites-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Thimóteo
|
@@ -9,10 +9,11 @@ authors:
|
|
9
9
|
- Rodrigo Tassinari
|
10
10
|
- Vagner Zampieri
|
11
11
|
- Wanderson Policarpo
|
12
|
+
- Luiz Carlos Buiatte
|
12
13
|
autorequire:
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
|
-
date: 2016-
|
16
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
16
17
|
dependencies:
|
17
18
|
- !ruby/object:Gem::Dependency
|
18
19
|
name: typhoeus
|
@@ -218,6 +219,7 @@ email:
|
|
218
219
|
- rodrigo.tassinari@myfreecomm.com.br
|
219
220
|
- vagner.zampieri@myfreecomm.com.br
|
220
221
|
- wanderson.policarpo@myfreecomm.com.br
|
222
|
+
- luiz.buiatte@myfreecomm.com.br
|
221
223
|
executables: []
|
222
224
|
extensions: []
|
223
225
|
extra_rdoc_files: []
|
@@ -236,6 +238,7 @@ files:
|
|
236
238
|
- lib/emites/configuration.rb
|
237
239
|
- lib/emites/entities/account.rb
|
238
240
|
- lib/emites/entities/base.rb
|
241
|
+
- lib/emites/entities/collection.rb
|
239
242
|
- lib/emites/entities/emitter.rb
|
240
243
|
- lib/emites/entities/nfse.rb
|
241
244
|
- lib/emites/entities/nfse_status.rb
|
@@ -249,6 +252,7 @@ files:
|
|
249
252
|
- lib/emites/entities/webhook.rb
|
250
253
|
- lib/emites/exception.rb
|
251
254
|
- lib/emites/http.rb
|
255
|
+
- lib/emites/params.rb
|
252
256
|
- lib/emites/request.rb
|
253
257
|
- lib/emites/resources/base.rb
|
254
258
|
- lib/emites/resources/emitter.rb
|
@@ -263,6 +267,7 @@ files:
|
|
263
267
|
- spec/emites/configuration_spec.rb
|
264
268
|
- spec/emites/entities/account_spec.rb
|
265
269
|
- spec/emites/entities/base_spec.rb
|
270
|
+
- spec/emites/entities/collection_spec.rb
|
266
271
|
- spec/emites/entities/emitter_spec.rb
|
267
272
|
- spec/emites/entities/nfse_spec.rb
|
268
273
|
- spec/emites/entities/nfse_status_spec.rb
|
@@ -276,14 +281,17 @@ files:
|
|
276
281
|
- spec/emites/entities/webhook_spec.rb
|
277
282
|
- spec/emites/exception_spec.rb
|
278
283
|
- spec/emites/http_spec.rb
|
284
|
+
- spec/emites/params_spec.rb
|
279
285
|
- spec/emites/resources/base_spec.rb
|
280
286
|
- spec/emites/resources/emitter_spec.rb
|
281
287
|
- spec/emites/resources/nfse_spec.rb
|
282
288
|
- spec/emites/resources/service_spec.rb
|
283
289
|
- spec/emites/resources/taker_spec.rb
|
284
290
|
- spec/emites/resources/webhook_spec.rb
|
291
|
+
- spec/emites/response_spec.rb
|
285
292
|
- spec/emites_spec.rb
|
286
293
|
- spec/fixtures/certificate.pfx
|
294
|
+
- spec/fixtures/nfse_list.json
|
287
295
|
- spec/shared_examples/bound_notifiers.rb
|
288
296
|
- spec/shared_examples/entity_attributes.rb
|
289
297
|
- spec/spec_helper.rb
|
@@ -310,6 +318,7 @@ files:
|
|
310
318
|
- spec/vcr_cassettes/nfse/info/success.yml
|
311
319
|
- spec/vcr_cassettes/nfse/list/success.yml
|
312
320
|
- spec/vcr_cassettes/nfse/pdf/success.yml
|
321
|
+
- spec/vcr_cassettes/nfse/search/success.yml
|
313
322
|
- spec/vcr_cassettes/nfse/status/success.yml
|
314
323
|
- spec/vcr_cassettes/nfse/update/success.yml
|
315
324
|
- spec/vcr_cassettes/nfse/xml/success.yml
|
@@ -359,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
359
368
|
version: '0'
|
360
369
|
requirements: []
|
361
370
|
rubyforge_project:
|
362
|
-
rubygems_version: 2.
|
371
|
+
rubygems_version: 2.4.8
|
363
372
|
signing_key:
|
364
373
|
specification_version: 4
|
365
374
|
summary: Official Ruby client for the Emites API.
|
@@ -368,6 +377,7 @@ test_files:
|
|
368
377
|
- spec/emites/configuration_spec.rb
|
369
378
|
- spec/emites/entities/account_spec.rb
|
370
379
|
- spec/emites/entities/base_spec.rb
|
380
|
+
- spec/emites/entities/collection_spec.rb
|
371
381
|
- spec/emites/entities/emitter_spec.rb
|
372
382
|
- spec/emites/entities/nfse_spec.rb
|
373
383
|
- spec/emites/entities/nfse_status_spec.rb
|
@@ -381,14 +391,17 @@ test_files:
|
|
381
391
|
- spec/emites/entities/webhook_spec.rb
|
382
392
|
- spec/emites/exception_spec.rb
|
383
393
|
- spec/emites/http_spec.rb
|
394
|
+
- spec/emites/params_spec.rb
|
384
395
|
- spec/emites/resources/base_spec.rb
|
385
396
|
- spec/emites/resources/emitter_spec.rb
|
386
397
|
- spec/emites/resources/nfse_spec.rb
|
387
398
|
- spec/emites/resources/service_spec.rb
|
388
399
|
- spec/emites/resources/taker_spec.rb
|
389
400
|
- spec/emites/resources/webhook_spec.rb
|
401
|
+
- spec/emites/response_spec.rb
|
390
402
|
- spec/emites_spec.rb
|
391
403
|
- spec/fixtures/certificate.pfx
|
404
|
+
- spec/fixtures/nfse_list.json
|
392
405
|
- spec/shared_examples/bound_notifiers.rb
|
393
406
|
- spec/shared_examples/entity_attributes.rb
|
394
407
|
- spec/spec_helper.rb
|
@@ -415,6 +428,7 @@ test_files:
|
|
415
428
|
- spec/vcr_cassettes/nfse/info/success.yml
|
416
429
|
- spec/vcr_cassettes/nfse/list/success.yml
|
417
430
|
- spec/vcr_cassettes/nfse/pdf/success.yml
|
431
|
+
- spec/vcr_cassettes/nfse/search/success.yml
|
418
432
|
- spec/vcr_cassettes/nfse/status/success.yml
|
419
433
|
- spec/vcr_cassettes/nfse/update/success.yml
|
420
434
|
- spec/vcr_cassettes/nfse/xml/success.yml
|