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 CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 0.9.15
4
+
5
+ * Save a received MessageID in message headers.
6
+
3
7
  == 0.9.14
4
8
 
5
9
  * Parse Subject and MessageID from the Bounce API response.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Postmark
2
- VERSION = "0.9.14"
2
+ VERSION = "0.9.15"
3
3
  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: 0.9.14
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: 3786712246708808315
231
+ hash: 4225198034232090078
232
232
  required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  none: false
234
234
  requirements: