sendgrid_actionmailer_adapter 0.2.0 → 0.2.1
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1fac44a61ba9e6577026e8956fa84a53df446861461536d73851d99fd21dfe20
|
4
|
+
data.tar.gz: 0ed2033d464f512e4e1dbbd15c2153b974519639c800d160fa7ead54b0c71d23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 875b6e2e9103de5b51a8dc274658e5da3183eb6a85acb92b1cc0a2f7a342429dfe7b037e62d5a2d4abf8c2216d11e20a422b4203290dc99be4d5984b72c1da15
|
7
|
+
data.tar.gz: 5895a7b1d7c03845a040ccf8424d363ef685aedb67bab1f33201e070c23d545dc1b04b301d98e48565ec1a36f88172831012f1643b855f17bf2e71173815e905
|
@@ -9,7 +9,8 @@ module SendGridActionMailerAdapter
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def convert(mail)
|
12
|
-
|
12
|
+
main_part = mail.body.parts.detect(&:text?) || mail
|
13
|
+
::SendGrid::Content.new(type: main_part.mime_type, value: main_part.body.to_s)
|
13
14
|
end
|
14
15
|
|
15
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryu39
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sendgrid-ruby
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.7.3
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: A ActionMailer adapter using SendGrid Web API v3
|