postmark 1.1.1 → 1.1.2

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: 8eebbba5a54ad6b496a1c8bd3dcbf9bd15d8bcba
4
- data.tar.gz: 8044ddcd84c2f2399b43a7d257d8d8fd1e4946ea
3
+ metadata.gz: dea79dd86f6f199d56c6d3845f164961be3950c5
4
+ data.tar.gz: 0b112a7f4412ccc38276947f4513ffbaaee4164a
5
5
  SHA512:
6
- metadata.gz: f9652bc38ac0b727c46421ffd0f4529a76e854f1dc54c864dd47ad6db7e542947319ab31c6248591aa710c14c67c8f9a6955b9ba5675f98b48bceb8d58954baa
7
- data.tar.gz: e9cbb7d5bc13d8d018e8e3ecc8f46d3dd1254ff1665984c6ff6e70fee312a6e075d28c90e665fdf211d9b7663a300750f020808fb4128932bd0f2d2a2575fcf2
6
+ metadata.gz: a578a7aede0e3dd604b67bbe4ea922cf3459b52fc10ee46cf80dcdf681283bd8a09f0d17927e261ee9c17c3070dc8251788fd01c537b1975c1e230a4bb4083e9
7
+ data.tar.gz: 933f64251c5bd09c29ee044c23ea84637e589ceb060155d0da2cfd9d75590cab622ace4e140a89956a1b908762fe284119fb09b2eaf4a8337324549402c16516
data/.travis.yml CHANGED
@@ -2,9 +2,6 @@ env:
2
2
  global:
3
3
  secure: MV+nKlzuLJ5CEoEfCmzwRMlnBOudgB1fTxBYI6aDV9vUkwYRzkcpCPS+Ik6jdCzNEFK+L2dTfv/IfDOvxnK3cZpMi1sp0po04m3Pg+ZhzYoANS1KY6V4sFIFaPtx+x2DVStxjFch4WQV8ktzdoUI0POlCdJrD6GYXLh1aTgbAGU=
4
4
  language: ruby
5
- before_install:
6
- - gem update --system 2.1.11
7
- - gem --version
8
5
  rvm:
9
6
  - 1.8.7
10
7
  - 1.9.3
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 1.1.2
4
+
5
+ * Fixed HTTP verb used to update server info from POST to PUT to support the breaking change in the API.
6
+
3
7
  == 1.1.1
4
8
 
5
9
  * Fixed inbound support for the Postmark Messages API.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -107,7 +107,7 @@ module Postmark
107
107
 
108
108
  def update_server_info(attributes = {})
109
109
  data = HashHelper.to_postmark(attributes)
110
- format_response http_client.post("server", serialize(data))
110
+ format_response http_client.put("server", serialize(data))
111
111
  end
112
112
 
113
113
  def max_batch_size
@@ -1,3 +1,3 @@
1
1
  module Postmark
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -3,7 +3,9 @@ require 'spec_helper'
3
3
  describe "Sending messages as Ruby hashes with Postmark::ApiClient" do
4
4
  let(:postmark_message_id_format) { /\w{8}\-\w{4}-\w{4}-\w{4}-\w{12}/ }
5
5
  let(:api_client) {
6
- Postmark::ApiClient.new('POSTMARK_API_TEST', :http_open_timeout => 15)
6
+ Postmark::ApiClient.new('POSTMARK_API_TEST',
7
+ :http_open_timeout => 15,
8
+ :http_read_timeout => 15)
7
9
  }
8
10
 
9
11
  let(:message) {
@@ -3,7 +3,9 @@ require 'spec_helper'
3
3
  describe "Sending Mail::Messages with Postmark::ApiClient" do
4
4
  let(:postmark_message_id_format) { /\w{8}\-\w{4}-\w{4}-\w{4}-\w{12}/ }
5
5
  let(:api_client) {
6
- Postmark::ApiClient.new('POSTMARK_API_TEST', :http_open_timeout => 15)
6
+ Postmark::ApiClient.new('POSTMARK_API_TEST',
7
+ :http_open_timeout => 15,
8
+ :http_read_timeout => 15)
7
9
  }
8
10
 
9
11
  let(:message) {
@@ -10,7 +10,9 @@ describe "Sending Mail::Messages with delivery_method Mail::Postmark" do
10
10
  subject "Mail::Message object"
11
11
  body "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
12
12
  "eiusmod tempor incididunt ut labore et dolore magna aliqua."
13
- delivery_method Mail::Postmark, :api_key => "POSTMARK_API_TEST", :http_open_timeout => 15
13
+ delivery_method Mail::Postmark, :api_key => "POSTMARK_API_TEST",
14
+ :http_open_timeout => 15,
15
+ :http_read_timeout => 15
14
16
 
15
17
  end
16
18
  }
@@ -25,7 +27,9 @@ describe "Sending Mail::Messages with delivery_method Mail::Postmark" do
25
27
  Mail.new do
26
28
  from "sender@postmarkapp.com"
27
29
  to "recipient@postmarkapp.com"
28
- delivery_method Mail::Postmark, :api_key => "POSTMARK_API_TEST", :http_open_timeout => 15
30
+ delivery_method Mail::Postmark, :api_key => "POSTMARK_API_TEST",
31
+ :http_open_timeout => 15,
32
+ :http_read_timeout => 15
29
33
  end
30
34
  }
31
35
 
@@ -39,7 +43,9 @@ describe "Sending Mail::Messages with delivery_method Mail::Postmark" do
39
43
  Mail.new do
40
44
  from "sender@postmarkapp.com"
41
45
  to "@postmarkapp.com"
42
- delivery_method Mail::Postmark, :api_key => "POSTMARK_API_TEST", :http_open_timeout => 15
46
+ delivery_method Mail::Postmark, :api_key => "POSTMARK_API_TEST",
47
+ :http_open_timeout => 15,
48
+ :http_read_timeout => 15
43
49
  end
44
50
  }
45
51
 
@@ -328,7 +328,7 @@ describe Postmark::ApiClient do
328
328
  let(:update) { {:smtp_api_activated => false} }
329
329
 
330
330
  it 'updates server info in Postmark and converts it to ruby format' do
331
- http_client.should_receive(:post).with('server', anything) { response }
331
+ http_client.should_receive(:put).with('server', anything) { response }
332
332
  subject.update_server_info(update)[:smtp_api_activated].should be_false
333
333
  end
334
334
  end
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.1.1
4
+ version: 1.1.2
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-15 00:00:00.000000000 Z
13
+ date: 2014-04-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake