postmark 1.2.0 → 1.2.1

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: 2bdedf5c9c85549872f00c732d6415a597f40267
4
- data.tar.gz: fb1aa95ee6adedf96a0a39c91223cfb54ce804a2
3
+ metadata.gz: 8805ed14f8ffc61a08bc09e84eee2295b58eaa21
4
+ data.tar.gz: c7cfb0d603081a3b87d9be13f5580c44e997dca9
5
5
  SHA512:
6
- metadata.gz: 03e03d105cfc7dbcea13c2f3c5966af5d1e8519a30eba3473da82e46b59bdb48e7599e3cd294e0c576f1f4f0f6d01e6f245b52e087e4b51e2dec04bd7029027f
7
- data.tar.gz: e5bb214b73f426f7dae362ac16a44976097e6c878033b6b58ff6718093b67cef2b60c39788940d7fc51760e34f38d9c3aca1fd3bc444acd9f8e7db3f6b333c36
6
+ metadata.gz: c0d157f01d2f9fa37a0797bc8714570766e36fd9e0530382c1d9ee79ec8b28ea3268cd76983baf2d7a72c73ccdb509c65806ba474aa98eab67637bb0bb0b200a
7
+ data.tar.gz: 5a25f5e31dc092898b8939118f943dc931cb92b5e30e23795f85ce4b8c5d6c335135810a206b7a06b2195ebf5248a7c076e52ca819f9836bb30d55b2175e905e
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 1.2.1
4
+
5
+ * Fixed a bug in Postmark::ApiClient causing #get_bounces to return unexpected value.
6
+
3
7
  == 1.2.0
4
8
 
5
9
  * Added support for the Postmark Account API.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -89,7 +89,8 @@ module Postmark
89
89
  end
90
90
 
91
91
  def get_bounces(options = {})
92
- load_batch('bounces', 'Bounces', options)
92
+ _, batch = load_batch('bounces', 'Bounces', options)
93
+ batch
93
94
  end
94
95
 
95
96
  def get_bounced_tags
@@ -1,3 +1,3 @@
1
1
  module Postmark
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -345,8 +345,9 @@ describe Postmark::ApiClient do
345
345
  let(:response) { {"Bounces" => []} }
346
346
 
347
347
  it 'requests data at /bounces' do
348
- http_client.should_receive(:get).with("bounces", options) { response }
349
- subject.get_bounces(options).should be_an Array
348
+ allow(http_client).to receive(:get).with("bounces", options) { response }
349
+ expect(subject.get_bounces(options)).to be_an(Array)
350
+ expect(subject.get_bounces(options).count).to be_zero
350
351
  end
351
352
  end
352
353
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petyo Ivanov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-18 00:00:00.000000000 Z
13
+ date: 2014-05-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake