postmark 0.9.14 → 0.9.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/lib/postmark/handlers/mail.rb +6 -5
- data/lib/postmark/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
module Mail
|
2
2
|
class Postmark
|
3
|
-
|
3
|
+
|
4
4
|
attr_accessor :settings
|
5
|
-
|
5
|
+
|
6
6
|
def initialize(values)
|
7
7
|
self.settings = { :api_key => nil }.merge(values)
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def deliver!(mail)
|
11
11
|
::Postmark.api_key = settings[:api_key]
|
12
|
-
::Postmark.send_through_postmark(mail)
|
12
|
+
response = ::Postmark.send_through_postmark(mail)
|
13
|
+
mail["Message-ID"] = response["MessageID"] if response.kind_of?(Hash)
|
13
14
|
end
|
14
|
-
|
15
|
+
|
15
16
|
end
|
16
17
|
end
|
data/lib/postmark/version.rb
CHANGED
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: 0.9.
|
4
|
+
version: 0.9.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -228,7 +228,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
228
|
version: '0'
|
229
229
|
segments:
|
230
230
|
- 0
|
231
|
-
hash:
|
231
|
+
hash: 4225198034232090078
|
232
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
233
|
none: false
|
234
234
|
requirements:
|