correios-sro-xml 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33ba03e4d4da8858a2d3ba57add938e5257dd87d
4
- data.tar.gz: b213f940b135bbf21283c4564decbd0ef0ad9b4e
3
+ metadata.gz: 5f21ec9834de91823e94f0a5ec26e6df2720e74a
4
+ data.tar.gz: 598278274cbade71440cc9fd9c8633662896bfbc
5
5
  SHA512:
6
- metadata.gz: e093e621eb02f17f8e491d4471e2e28d272f91b19302316c8579d0048ecd1e594c62f925e71a00ecef5b17ac56af666eefa14902ab1491121e9aaabf9460f9bb
7
- data.tar.gz: ff206b65aaef71d71825f66612d2230bfa9e5a56bd5ea48d81ff8587376ee93ff179d3ad824020861ee4ef83fb11bb3357cac4bf88de990b0eff9eb0325875fe
6
+ metadata.gz: d6096c528bec14922417ea7329bef0fa52250857dd0096985f4072763acecfa576ff7cb2b27b324fe2716f6ac3753991827dd8d0ec7ffc7a42bc82ecf6b24c38
7
+ data.tar.gz: 4c39bf433e71d8d31adabd67ac53a6703e6105390a90a96ee146e236494bcd90d93f9dbd05613a91526db8a7a125b73e3dccfc50adf4315d7f0a3aad11a2dabd
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == Version 0.3.0
2
+ - New: {Pull Request #3: Added support to Correios::SRO::Tracker#get to accept a list as argument}[https://github.com/prodis/correios-sro-xml/pull/3].
3
+
1
4
  == Version 0.2.1
2
5
  - New: User and password can be set on configuration.
3
6
 
@@ -19,10 +22,10 @@
19
22
  - Fix: The correct place to encode is in Parser, not WebService.
20
23
 
21
24
  == Version 0.0.3
22
- - Fix: {Issue #2: Problema de encoding}[https://github.com/prodis/correios-sro-xml/pull/2].
25
+ - Fix: {Pull Request #2: Problema de encoding}[https://github.com/prodis/correios-sro-xml/pull/2].
23
26
 
24
27
  == Version 0.0.2
25
- - Improvement: {Issue #1: Incluindo campo hora}[https://github.com/prodis/correios-sro-xml/pull/1].
28
+ - Improvement: {Pull Request #1: Incluindo campo hora}[https://github.com/prodis/correios-sro-xml/pull/1].
26
29
 
27
30
  == Version 0.0.1
28
31
  - First version, unstable yet.
@@ -19,7 +19,7 @@ module Correios
19
19
  end
20
20
 
21
21
  def get(*object_numbers)
22
- @object_numbers = object_numbers
22
+ @object_numbers = object_numbers.flatten
23
23
  response = web_service.request!
24
24
  objects = parser.objects(response)
25
25
 
@@ -1,5 +1,5 @@
1
1
  module Correios
2
2
  module SRO
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -64,6 +64,12 @@ describe Correios::SRO::Tracker do
64
64
  context "to many objects" do
65
65
  let(:response) { Fixture.load :sro_many_objects }
66
66
 
67
+ it "accepts a list as argument" do
68
+ objects = subject.get(["SI047624825BR", "SX104110463BR"])
69
+
70
+ expect(objects.size).to eql 2
71
+ end
72
+
67
73
  it "sets objects numbers" do
68
74
  subject.get("SI047624825BR", "SX104110463BR")
69
75
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: correios-sro-xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prodis a.k.a. Fernando Hamasaki de Amorim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-26 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: log-me
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.2.2
200
+ rubygems_version: 2.4.8
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Tracking Objects System from Correios - SRO (Sistema de Rastreamento de Objetos