postmark 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +7 -0
- data/CONTRIBUTING.md +18 -0
- data/Gemfile +6 -5
- data/LICENSE +1 -1
- data/README.md +62 -9
- data/VERSION +1 -1
- data/gemfiles/Gemfile.legacy +4 -3
- data/lib/postmark.rb +1 -18
- data/lib/postmark/api_client.rb +32 -1
- data/lib/postmark/client.rb +8 -4
- data/lib/postmark/error.rb +117 -0
- data/lib/postmark/http_client.rb +7 -25
- data/lib/postmark/mail_message_converter.rb +1 -1
- data/lib/postmark/version.rb +1 -1
- data/spec/integration/account_api_client_spec.rb +2 -2
- data/spec/integration/api_client_messages_spec.rb +3 -3
- data/spec/spec_helper.rb +4 -1
- data/spec/support/custom_matchers.rb +30 -0
- data/spec/unit/postmark/account_api_client_spec.rb +22 -22
- data/spec/unit/postmark/api_client_spec.rb +164 -54
- data/spec/unit/postmark/bounce_spec.rb +10 -10
- data/spec/unit/postmark/error_spec.rb +218 -0
- data/spec/unit/postmark/handlers/mail_spec.rb +5 -5
- data/spec/unit/postmark/http_client_spec.rb +4 -5
- data/spec/unit/postmark/mail_message_converter_spec.rb +6 -0
- data/spec/unit/postmark/message_extensions/mail_spec.rb +6 -6
- data/spec/unit/postmark_spec.rb +5 -5
- metadata +33 -4
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.
|
4
|
+
version: 1.11.0
|
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:
|
13
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- ".rspec"
|
70
70
|
- ".travis.yml"
|
71
71
|
- CHANGELOG.rdoc
|
72
|
+
- CONTRIBUTING.md
|
72
73
|
- Gemfile
|
73
74
|
- LICENSE
|
74
75
|
- README.md
|
@@ -81,6 +82,7 @@ files:
|
|
81
82
|
- lib/postmark/api_client.rb
|
82
83
|
- lib/postmark/bounce.rb
|
83
84
|
- lib/postmark/client.rb
|
85
|
+
- lib/postmark/error.rb
|
84
86
|
- lib/postmark/handlers/mail.rb
|
85
87
|
- lib/postmark/helpers/hash_helper.rb
|
86
88
|
- lib/postmark/helpers/message_helper.rb
|
@@ -102,12 +104,14 @@ files:
|
|
102
104
|
- spec/integration/api_client_resources_spec.rb
|
103
105
|
- spec/integration/mail_delivery_method_spec.rb
|
104
106
|
- spec/spec_helper.rb
|
107
|
+
- spec/support/custom_matchers.rb
|
105
108
|
- spec/support/helpers.rb
|
106
109
|
- spec/support/shared_examples.rb
|
107
110
|
- spec/unit/postmark/account_api_client_spec.rb
|
108
111
|
- spec/unit/postmark/api_client_spec.rb
|
109
112
|
- spec/unit/postmark/bounce_spec.rb
|
110
113
|
- spec/unit/postmark/client_spec.rb
|
114
|
+
- spec/unit/postmark/error_spec.rb
|
111
115
|
- spec/unit/postmark/handlers/mail_spec.rb
|
112
116
|
- spec/unit/postmark/helpers/hash_helper_spec.rb
|
113
117
|
- spec/unit/postmark/helpers/message_helper_spec.rb
|
@@ -142,8 +146,33 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
146
|
version: 1.3.7
|
143
147
|
requirements: []
|
144
148
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
149
|
+
rubygems_version: 2.6.14
|
146
150
|
signing_key:
|
147
151
|
specification_version: 4
|
148
152
|
summary: Official Postmark API wrapper.
|
149
|
-
test_files:
|
153
|
+
test_files:
|
154
|
+
- spec/data/empty.gif
|
155
|
+
- spec/integration/account_api_client_spec.rb
|
156
|
+
- spec/integration/api_client_hashes_spec.rb
|
157
|
+
- spec/integration/api_client_messages_spec.rb
|
158
|
+
- spec/integration/api_client_resources_spec.rb
|
159
|
+
- spec/integration/mail_delivery_method_spec.rb
|
160
|
+
- spec/spec_helper.rb
|
161
|
+
- spec/support/custom_matchers.rb
|
162
|
+
- spec/support/helpers.rb
|
163
|
+
- spec/support/shared_examples.rb
|
164
|
+
- spec/unit/postmark/account_api_client_spec.rb
|
165
|
+
- spec/unit/postmark/api_client_spec.rb
|
166
|
+
- spec/unit/postmark/bounce_spec.rb
|
167
|
+
- spec/unit/postmark/client_spec.rb
|
168
|
+
- spec/unit/postmark/error_spec.rb
|
169
|
+
- spec/unit/postmark/handlers/mail_spec.rb
|
170
|
+
- spec/unit/postmark/helpers/hash_helper_spec.rb
|
171
|
+
- spec/unit/postmark/helpers/message_helper_spec.rb
|
172
|
+
- spec/unit/postmark/http_client_spec.rb
|
173
|
+
- spec/unit/postmark/inbound_spec.rb
|
174
|
+
- spec/unit/postmark/inflector_spec.rb
|
175
|
+
- spec/unit/postmark/json_spec.rb
|
176
|
+
- spec/unit/postmark/mail_message_converter_spec.rb
|
177
|
+
- spec/unit/postmark/message_extensions/mail_spec.rb
|
178
|
+
- spec/unit/postmark_spec.rb
|