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 +4 -4
- data/.travis.yml +0 -3
- data/CHANGELOG.rdoc +4 -0
- data/VERSION +1 -1
- data/lib/postmark/api_client.rb +1 -1
- data/lib/postmark/version.rb +1 -1
- data/spec/integration/api_client_hashes_spec.rb +3 -1
- data/spec/integration/api_client_messages_spec.rb +3 -1
- data/spec/integration/mail_delivery_method_spec.rb +9 -3
- data/spec/unit/postmark/api_client_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dea79dd86f6f199d56c6d3845f164961be3950c5
|
4
|
+
data.tar.gz: 0b112a7f4412ccc38276947f4513ffbaaee4164a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/lib/postmark/api_client.rb
CHANGED
@@ -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.
|
110
|
+
format_response http_client.put("server", serialize(data))
|
111
111
|
end
|
112
112
|
|
113
113
|
def max_batch_size
|
data/lib/postmark/version.rb
CHANGED
@@ -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',
|
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',
|
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",
|
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",
|
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",
|
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(:
|
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.
|
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-
|
13
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|