mailgun_rails 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f133bcb89e60c9999821e315f9f79c5cace8901
4
- data.tar.gz: b1e601ed8a9d7b3b4cbfad69b54eb7d4dd13d8e0
3
+ metadata.gz: 928d8547984f87cab1c813bdc332f4fc9c2db2a0
4
+ data.tar.gz: c0ba0816d17b70886c89dfb8342410f35cf59e4d
5
5
  SHA512:
6
- metadata.gz: 79a2d035f5a111cd6c2f5f0fafdde88a301c550017023410384e18c7fae582b66739fdb741ea25c59d4f3701cf3be890a459fd7c7518c3161f55b9e414673808
7
- data.tar.gz: 64e9ea1ea0e9736980c4ab915494199149d79c2b6270a9bf2066982e08c37cc0570a324bd66826d4f6b6b3b37a3b1193f5a17b0392612d8cec959138a8fdc169
6
+ metadata.gz: 0b2d8935fd66a38dad0a2d2af03a243b6d5fcf607a14c593a15961c4c4b8aaa480772f71eb8631164e5cc88135aa3d912d671464a29a29098d1a3cb20c561ea9
7
+ data.tar.gz: c6f1ac7917f95871ec6115348ec57636338d6fef7edd6c473227191047a50c5080606c5440efb5ffcf81bae59f7006ee94fe446caea45481244f5016d5c7acb6
@@ -34,6 +34,7 @@ module Mailgun
34
34
  transform_mailgun_variables rails_message, mailgun_message
35
35
  transform_mailgun_recipient_variables rails_message, mailgun_message
36
36
  transform_custom_headers rails_message, mailgun_message
37
+ transform_o_headers rails_message, mailgun_message
37
38
  end
38
39
 
39
40
  def build_basic_mailgun_message_for(rails_message)
@@ -73,6 +74,12 @@ module Mailgun
73
74
  mailgun_message["h:#{name}"] = value
74
75
  end
75
76
  end
77
+
78
+ def transform_o_headers(rails_message, mailgun_message)
79
+ rails_message.mailgun_o_headers.try(:each) do |name, value|
80
+ mailgun_message["o:#{name}"] = value
81
+ end
82
+ end
76
83
 
77
84
  def transform_mailgun_recipient_variables(rails_message, mailgun_message)
78
85
  mailgun_message['recipient-variables'] = rails_message.mailgun_recipient_variables.to_json if rails_message.mailgun_recipient_variables
@@ -3,5 +3,6 @@ module Mail
3
3
  attr_accessor :mailgun_variables
4
4
  attr_accessor :mailgun_recipient_variables
5
5
  attr_accessor :mailgun_headers
6
+ attr_accessor :mailgun_o_headers
6
7
  end
7
8
  end
@@ -1,3 +1,3 @@
1
1
  module Mailgun
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailgun_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails