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
- SHA1:
3
- metadata.gz: ee79cf7cc71fee2d3bd2212d2bfb1221d9629d90
4
- data.tar.gz: f35a57e974388b72188ae92d9dd168763a662a6c
2
+ SHA256:
3
+ metadata.gz: 1fac44a61ba9e6577026e8956fa84a53df446861461536d73851d99fd21dfe20
4
+ data.tar.gz: 0ed2033d464f512e4e1dbbd15c2153b974519639c800d160fa7ead54b0c71d23
5
5
  SHA512:
6
- metadata.gz: c37de30e3e2b91fb8cac5860bda517d44eea91eb04d60403ed6af2b3652a6fcb3b003aaafb6bf4550287c6bb115d5d8ad2e22b18d83e68f608a32c2706292585
7
- data.tar.gz: d82abaf00a36eec76085fe8df9db0311634dd89ec49df7a799be08b55a13bd04bc1018ee6258775b5609854ffeaaab89e6ceb4930134371bfe03ddc180016b20
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
- ::SendGrid::Content.new(type: mail.mime_type, value: mail.body.to_s)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SendGridActionMailerAdapter
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
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.0
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: 2017-07-16 00:00:00.000000000 Z
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.6.11
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