correios_sigep 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2FhYzFlYjAxZmJiOWRjNjI2MDVmMDk4ODk5ZjFkMDZhYWNkOTZlMA==
4
+ ZmMwOTc0ZWU2MGUzYTY1NGYyMjRjNDc0MjU4MmIzMjZlZGZmZjNiYw==
5
5
  data.tar.gz: !binary |-
6
- NDFhMGYyMzU0NzBhMzI2MDRjYjQ5ODQ2NTQ5ZDhmYWE4NmQ4MjI2OQ==
6
+ NTEwYTdiZjRkODVlYzg2Yzc4MzRlZjkwODBjMzA4NWZhNmU5NDZhZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjRlYzY1YWI1MGZhNDBlODIwNzVjZjFmMDhmNWVjMmE4NWNiNThhNzRlNjE0
10
- YTI2YWMzZjQ3N2JlMjk2MDg0ZmU5MTc4NjMyYjUzODc5NGQ2NmIxNjU4MzY2
11
- ODkzNjFiYjZhY2M2MzUwMjU3NzM4OWQyZDkyZTY4M2UzNTE4OWM=
9
+ NDVjOTUyOThlNjY2NmQ5MzhiM2ZmMDAzZWY3YmZiZjBjNWNhNTFlM2U4ZmRm
10
+ MjQyNTJmYWMzMzYxYmJiOWEyYmMwODVjZTE1Y2Q0ZTc4Mjg3OTBlYjQ3Zjc5
11
+ MjMwM2YyODdhMjczOWUzZjdjOGMyM2E4NTAzZDQ0ZjliZDdiNGE=
12
12
  data.tar.gz: !binary |-
13
- ZDVmMWIzZDBkMWNiZjViNzkzOWVmMmMxYThlZTMwOGI0NTFkYzM0ZTNmMDNl
14
- MTAxOTBjMGRjNzMxN2Q0ZWEyNWY4ZGY5OGIyZmMwNWQyOGM1NWI0NGY5ZmQy
15
- ZjJhMTFkMDI2NDM1Y2FkZDJkNTFlOWE0ZDc3MmU5NGQyNDZjZTU=
13
+ MjQ0NzgyMzA3NDQ4MDk3ODc2ZTEwNzkyNTZkYzJlMGI2MTFkNTU4MzY2OTky
14
+ Yzc0MGYzYWU1NTgwMmNlMjkwNzE0MzU4NWRmZmYyYzhhMzVjZWNlYWE1MmNh
15
+ NzM0YWFkOTlhMTJiMDY1ODhiODU1OTFiMGFhMzEzMThhYjgxYzE=
data/.travis.yml CHANGED
@@ -4,7 +4,7 @@ before_install:
4
4
  rvm:
5
5
  - 2.0.0
6
6
  - 2.1.1
7
- - 2.2.0
7
+ - 2.2.2
8
8
  - jruby-19mode
9
9
  bundler_args: --without debug
10
10
  deploy:
@@ -1,13 +1,14 @@
1
1
  module CorreiosSigep
2
2
  module LogisticReverse
3
3
  class RequestCollectNumber < BaseClient
4
- def initialize(logistic_reverse)
4
+ def initialize(logistic_reverse, overrides={})
5
5
  @logistic_reverse = logistic_reverse
6
+ @overrides = overrides
6
7
  super()
7
8
  end
8
9
 
9
10
  def process
10
- xml = Builders::XML::RequestCollectNumber.build_xml(@logistic_reverse)
11
+ xml = Builders::XML::RequestCollectNumber.build_xml(@logistic_reverse, @overrides)
11
12
  response = invoke(:solicitar_postagem_reversa, xml)
12
13
  process_response response
13
14
  end
@@ -1,13 +1,14 @@
1
1
  module CorreiosSigep
2
2
  module LogisticReverse
3
3
  class RequestSRO < BaseClient
4
- def initialize(sro)
4
+ def initialize(sro, overrides={})
5
5
  @sro = sro
6
+ @overrides = overrides
6
7
  super()
7
8
  end
8
9
 
9
10
  def process
10
- xml = Builders::XML::RequestSRO.build_xml(@sro)
11
+ xml = Builders::XML::RequestSRO.build_xml(@sro, @overrides)
11
12
  process_response invoke(:acompanhar_pedido, xml)
12
13
  end
13
14
 
@@ -1,3 +1,3 @@
1
1
  module CorreiosSigep
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
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.2.0
4
+ version: 0.2.1
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-06-18 00:00:00.000000000 Z
12
+ date: 2015-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon