correios_sigep 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +8 -8
  2. data/.travis.yml +1 -0
  3. data/README.md +5 -4
  4. data/correios_sigep.gemspec +1 -0
  5. data/lib/correios_sigep.rb +9 -0
  6. data/lib/correios_sigep/builders/collect.rb +15 -0
  7. data/lib/correios_sigep/builders/object.rb +15 -0
  8. data/lib/correios_sigep/builders/person.rb +15 -0
  9. data/lib/correios_sigep/builders/product.rb +15 -0
  10. data/lib/correios_sigep/builders/xml/collect_objects.rb +1 -1
  11. data/lib/correios_sigep/dsl/collect.rb +39 -0
  12. data/lib/correios_sigep/dsl/logistic_reverse.rb +13 -0
  13. data/lib/correios_sigep/dsl/object.rb +13 -0
  14. data/lib/correios_sigep/dsl/person.rb +14 -0
  15. data/lib/correios_sigep/dsl/product.rb +13 -0
  16. data/lib/correios_sigep/logistic_reverse/base_client.rb +2 -0
  17. data/lib/correios_sigep/models/collect.rb +7 -1
  18. data/lib/correios_sigep/models/logistic_reverse.rb +9 -2
  19. data/lib/correios_sigep/models/object.rb +6 -0
  20. data/lib/correios_sigep/models/product.rb +6 -0
  21. data/lib/correios_sigep/models/recipient.rb +7 -2
  22. data/lib/correios_sigep/models/sender.rb +6 -0
  23. data/lib/correios_sigep/version.rb +1 -1
  24. data/spec/correios_sigep/logistic_reverse/base_client_spec.rb +9 -2
  25. data/spec/correios_sigep/logistic_reverse/request_collect_number_spec.rb +3 -3
  26. data/spec/correios_sigep/logistic_reverse/request_sro_spec.rb +1 -1
  27. data/spec/correios_sigep/models/logistic_reverse_spec.rb +161 -0
  28. data/spec/fixtures/builders/logistic_reverse.xml +2 -2
  29. data/spec/fixtures/builders/request_collect_number.xml +2 -2
  30. data/spec/fixtures/correios/wsdl_test.xml +616 -0
  31. data/spec/fixtures/requests/collect_number_request.xml +2 -2
  32. data/spec/spec_helper.rb +2 -0
  33. metadata +27 -2
@@ -51,14 +51,14 @@
51
51
  <item>127078</item>
52
52
  <id>1405670</id>
53
53
  <desc>Pen Drive SAndisk 16GB SDCZ50-016G-A95</desc>
54
- <ship>ship</ship>
54
+ <entrega>ship</entrega>
55
55
  <num>1</num>
56
56
  </obj_col>
57
57
  <obj_col>
58
58
  <item>277574</item>
59
59
  <id>1405670</id>
60
60
  <desc>Chip unico claro Pre pago</desc>
61
- <ship>ship</ship>
61
+ <entrega>ship</entrega>
62
62
  <num>2</num>
63
63
  </obj_col>
64
64
  </coletas_solicitadas>
@@ -1,9 +1,11 @@
1
1
  ENV['GEM_ENV'] = 'test'
2
+ require 'coveralls'
2
3
  require 'pry'
3
4
  require 'simplecov'
4
5
  require 'support/logistic_reverse_helper'
5
6
  require 'support/fixture_helper'
6
7
  require 'webmock/rspec'
8
+ Coveralls.wear!
7
9
 
8
10
  File.expand_path(File.dirname(File.dirname(__FILE__)))
9
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: correios_sigep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Ribeiro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-11-05 00:00:00.000000000 Z
12
+ date: 2016-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-http-persistent
@@ -53,6 +53,20 @@ dependencies:
53
53
  - - ~>
54
54
  - !ruby/object:Gem::Version
55
55
  version: '1.7'
56
+ - !ruby/object:Gem::Dependency
57
+ name: coveralls
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: rake
58
72
  requirement: !ruby/object:Gem::Requirement
@@ -132,6 +146,10 @@ files:
132
146
  - bin/rake
133
147
  - correios_sigep.gemspec
134
148
  - lib/correios_sigep.rb
149
+ - lib/correios_sigep/builders/collect.rb
150
+ - lib/correios_sigep/builders/object.rb
151
+ - lib/correios_sigep/builders/person.rb
152
+ - lib/correios_sigep/builders/product.rb
135
153
  - lib/correios_sigep/builders/xml/authentication.rb
136
154
  - lib/correios_sigep/builders/xml/collect.rb
137
155
  - lib/correios_sigep/builders/xml/collect_objects.rb
@@ -142,6 +160,11 @@ files:
142
160
  - lib/correios_sigep/builders/xml/request_sro.rb
143
161
  - lib/correios_sigep/builders/xml/sender.rb
144
162
  - lib/correios_sigep/configuration.rb
163
+ - lib/correios_sigep/dsl/collect.rb
164
+ - lib/correios_sigep/dsl/logistic_reverse.rb
165
+ - lib/correios_sigep/dsl/object.rb
166
+ - lib/correios_sigep/dsl/person.rb
167
+ - lib/correios_sigep/dsl/product.rb
145
168
  - lib/correios_sigep/logistic_reverse/base_client.rb
146
169
  - lib/correios_sigep/logistic_reverse/request_collect_number.rb
147
170
  - lib/correios_sigep/logistic_reverse/request_sro.rb
@@ -198,6 +221,7 @@ files:
198
221
  - spec/fixtures/correios/request_sro/response_success.xml
199
222
  - spec/fixtures/correios/request_sro/response_unknown_error.xml
200
223
  - spec/fixtures/correios/wsdl.xml
224
+ - spec/fixtures/correios/wsdl_test.xml
201
225
  - spec/fixtures/requests/collect_number_request.xml
202
226
  - spec/fixtures/requests/sro_request.xml
203
227
  - spec/spec_helper.rb
@@ -261,6 +285,7 @@ test_files:
261
285
  - spec/fixtures/correios/request_sro/response_success.xml
262
286
  - spec/fixtures/correios/request_sro/response_unknown_error.xml
263
287
  - spec/fixtures/correios/wsdl.xml
288
+ - spec/fixtures/correios/wsdl_test.xml
264
289
  - spec/fixtures/requests/collect_number_request.xml
265
290
  - spec/fixtures/requests/sro_request.xml
266
291
  - spec/spec_helper.rb