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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c56490bbbbccdbcc1af3de56f1975048a33a0ad
4
- data.tar.gz: ce12417419f575f639c24166111cda0d00f94c88
3
+ metadata.gz: 84d8c9ceeba79e15eacaaf4354852ba421d64d16
4
+ data.tar.gz: b3d29c00a87f44216f4e3cde59ed6358899a6a37
5
5
  SHA512:
6
- metadata.gz: 02eaffa49c0fc4f5b55a2d8f3308a936ca2f95204b59e3243eb728ea4cf426bf4e80894cc16a04df23901f80f1404c05d378aaae329131bbf80834ceac68b2f9
7
- data.tar.gz: a9e10aa437d7ae83725694597962bbdfe573b00a4488f2bad922b26c3fdc24cb9d57bc2833ff6dae7081c96b38e79d53ed564696baeb4a8456b744a5223e6727
6
+ metadata.gz: 5675a51c2bb80366a2e40398a28d6d275f75817b22f70b7074535e20894fe3e40b0b27b7274e214000a377543a47e9292f7a70b93962466a6d8cc5a74aa5091e
7
+ data.tar.gz: 747aca271bf02dbc4579ddb1667a2c89774c09e7089a86505e71aa5c03fa76be2d53908fef82bd14dd25aebe299c652785e7806581c6d3596cd0c3ddfe151043
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Mailgun
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.6"
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.5
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-07 00:00:00.000000000 Z
11
+ date: 2015-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails