postmark 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.rdoc +4 -0
- data/README.md +0 -18
- data/VERSION +1 -1
- data/lib/postmark/api_client.rb +2 -1
- data/lib/postmark/version.rb +1 -1
- data/spec/unit/postmark/api_client_spec.rb +2 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8eebbba5a54ad6b496a1c8bd3dcbf9bd15d8bcba
|
4
|
+
data.tar.gz: 8044ddcd84c2f2399b43a7d257d8d8fd1e4946ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9652bc38ac0b727c46421ffd0f4529a76e854f1dc54c864dd47ad6db7e542947319ab31c6248591aa710c14c67c8f9a6955b9ba5675f98b48bceb8d58954baa
|
7
|
+
data.tar.gz: e9cbb7d5bc13d8d018e8e3ecc8f46d3dd1254ff1665984c6ff6e70fee312a6e075d28c90e665fdf211d9b7663a300750f020808fb4128932bd0f2d2a2575fcf2
|
data/.travis.yml
CHANGED
data/CHANGELOG.rdoc
CHANGED
data/README.md
CHANGED
@@ -600,24 +600,6 @@ Postmark.response_parser_class = :Json # :ActiveSupport or :Yajl are also suppor
|
|
600
600
|
* Commit, do not mess with rakefile, version, or history.
|
601
601
|
* Send me a pull request. Bonus points for topic branches.
|
602
602
|
|
603
|
-
## Authors & Contributors
|
604
|
-
|
605
|
-
* Petyo Ivanov
|
606
|
-
* Ilya Sabanin
|
607
|
-
* Artem Chistyakov
|
608
|
-
* Hristo Deshev
|
609
|
-
* Dmitry Sabanin
|
610
|
-
* Randy Schmidt
|
611
|
-
* Chris Williams
|
612
|
-
* Aitor García Rey
|
613
|
-
* James Miller
|
614
|
-
* Yury Batenko
|
615
|
-
* Pavel Maksimenko
|
616
|
-
* Anton Astashov
|
617
|
-
* Marcus Brito
|
618
|
-
* Tyler Hunt
|
619
|
-
* Russell Bevers
|
620
|
-
|
621
603
|
## Copyright
|
622
604
|
|
623
605
|
Copyright © 2014 Wildbit LLC. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/postmark/api_client.rb
CHANGED
@@ -69,7 +69,8 @@ module Postmark
|
|
69
69
|
path, params = extract_messages_path_and_params(options)
|
70
70
|
params[:offset] ||= 0
|
71
71
|
params[:count] ||= 50
|
72
|
-
|
72
|
+
messages_key = options[:inbound] ? 'InboundMessages' : 'Messages'
|
73
|
+
format_response http_client.get(path, params)[messages_key]
|
73
74
|
end
|
74
75
|
|
75
76
|
def get_message(id, options = {})
|
data/lib/postmark/version.rb
CHANGED
@@ -172,9 +172,9 @@ describe Postmark::ApiClient do
|
|
172
172
|
|
173
173
|
describe '#get_messages' do
|
174
174
|
let(:http_client) { subject.http_client }
|
175
|
-
let(:response) { {"TotalCount" => 1, "Messages" => [{}]} }
|
176
175
|
|
177
176
|
context 'given outbound' do
|
177
|
+
let(:response) { {"TotalCount" => 1, "Messages" => [{}]} }
|
178
178
|
|
179
179
|
it 'requests data at /messages/outbound' do
|
180
180
|
http_client.should_receive(:get).
|
@@ -186,6 +186,7 @@ describe Postmark::ApiClient do
|
|
186
186
|
end
|
187
187
|
|
188
188
|
context 'given inbound' do
|
189
|
+
let(:response) { {"TotalCount" => 1, "InboundMessages" => [{}]} }
|
189
190
|
|
190
191
|
it 'requests data at /messages/inbound' do
|
191
192
|
http_client.should_receive(:get).
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Petyo Ivanov
|
@@ -10,76 +10,76 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: json
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '0'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: mail
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0'
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: activesupport
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- - ~>
|
61
|
+
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '3.0'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- - ~>
|
68
|
+
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '3.0'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: yajl-ruby
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
description: Use this gem to send emails through Postmark HTTP API and retrieve info
|
@@ -91,11 +91,11 @@ extra_rdoc_files:
|
|
91
91
|
- LICENSE
|
92
92
|
- README.md
|
93
93
|
files:
|
94
|
-
- .document
|
95
|
-
- .gitignore
|
96
|
-
- .rake_tasks
|
97
|
-
- .rspec
|
98
|
-
- .travis.yml
|
94
|
+
- ".document"
|
95
|
+
- ".gitignore"
|
96
|
+
- ".rake_tasks"
|
97
|
+
- ".rspec"
|
98
|
+
- ".travis.yml"
|
99
99
|
- CHANGELOG.rdoc
|
100
100
|
- Gemfile
|
101
101
|
- LICENSE
|
@@ -150,22 +150,22 @@ post_install_message: "\n ==================\n Thanks for installing the p
|
|
150
150
|
\ Review the README.md for implementation details and examples.\n ==================\n
|
151
151
|
\ "
|
152
152
|
rdoc_options:
|
153
|
-
- --charset=UTF-8
|
153
|
+
- "--charset=UTF-8"
|
154
154
|
require_paths:
|
155
155
|
- lib
|
156
156
|
required_ruby_version: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
|
-
- -
|
158
|
+
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '0'
|
161
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
|
-
- -
|
163
|
+
- - ">="
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: 1.3.7
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.2.1
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Official Postmark API wrapper.
|