sendgrid_actionmailer_adapter 0.2.1 → 0.2.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3459fa2cabe507129253244ce31666e7c613b4761f1d3209e9d42bd7a142b41
|
4
|
+
data.tar.gz: 7df639a0e08d5f906cdb64f2851b3157120fe253c2819ec293e0d45259858345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a37ec28980cafa9aaa7a7175fe7946b43cf8ac3b83ae4ff5ffed70f915b172f4982efe2404d3399199da77eda88f9f27ca7345a19934001b24adf7a2f89a45
|
7
|
+
data.tar.gz: 7c18f61dc83ca6eb4d8ed50e0de4d5092dd78d1c5de55064ed699c97159ab1d142d6e3010afa30618ad215c5de86f1654ec5bf852621552c4ec8b5d2eb6f8c0d
|
@@ -9,8 +9,8 @@ module SendGridActionMailerAdapter
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def convert(mail)
|
12
|
-
|
13
|
-
::SendGrid::Content.new(type:
|
12
|
+
contents = mail.body.multipart? ? mail.body.parts.select(&:text?) : [mail]
|
13
|
+
contents.map { |c| ::SendGrid::Content.new(type: c.mime_type, value: c.body.to_s) }
|
14
14
|
end
|
15
15
|
|
16
16
|
def assign_attributes(sendgrid_mail, value)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendgrid_actionmailer_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryu39
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sendgrid-ruby
|