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 +4 -4
- data/lib/mailgun/deliverer.rb +7 -0
- data/lib/mailgun/mail_ext.rb +1 -0
- data/lib/mailgun/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928d8547984f87cab1c813bdc332f4fc9c2db2a0
|
4
|
+
data.tar.gz: c0ba0816d17b70886c89dfb8342410f35cf59e4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b2d8935fd66a38dad0a2d2af03a243b6d5fcf607a14c593a15961c4c4b8aaa480772f71eb8631164e5cc88135aa3d912d671464a29a29098d1a3cb20c561ea9
|
7
|
+
data.tar.gz: c6f1ac7917f95871ec6115348ec57636338d6fef7edd6c473227191047a50c5080606c5440efb5ffcf81bae59f7006ee94fe446caea45481244f5016d5c7acb6
|
data/lib/mailgun/deliverer.rb
CHANGED
@@ -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
|
data/lib/mailgun/mail_ext.rb
CHANGED
data/lib/mailgun/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|