mailgun_rails 0.6.5 → 0.6.6
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 +5 -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: 84d8c9ceeba79e15eacaaf4354852ba421d64d16
|
4
|
+
data.tar.gz: b3d29c00a87f44216f4e3cde59ed6358899a6a37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5675a51c2bb80366a2e40398a28d6d275f75817b22f70b7074535e20894fe3e40b0b27b7274e214000a377543a47e9292f7a70b93962466a6d8cc5a74aa5091e
|
7
|
+
data.tar.gz: 747aca271bf02dbc4579ddb1667a2c89774c09e7089a86505e71aa5c03fa76be2d53908fef82bd14dd25aebe299c652785e7806581c6d3596cd0c3ddfe151043
|
data/lib/mailgun/deliverer.rb
CHANGED
@@ -45,6 +45,11 @@ module Mailgun
|
|
45
45
|
html: extract_html(rails_message),
|
46
46
|
text: extract_text(rails_message)
|
47
47
|
}
|
48
|
+
|
49
|
+
[:cc, :bcc].each do |key|
|
50
|
+
mailgun_message[key] = rails_message[key].formatted if rails_message[key]
|
51
|
+
end
|
52
|
+
|
48
53
|
return mailgun_message if rails_message.attachments.empty?
|
49
54
|
|
50
55
|
# RestClient requires attachments to be in file format, use a temp directory and the decoded attachment
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Manrubia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01
|
11
|
+
date: 2015-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|