mailpace-rails 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bddf2babf3726e39c5bcf3d3866bbe97920ae3013864a328e3621f8dd72c3ab
4
- data.tar.gz: 03f854b13967e2f5e5e31f83935522d734dcfd001cec171ac243f496d5b83355
3
+ metadata.gz: b7357c468655883089e9d6d028387cd78a5b5499c3277ea5581837f3255ac192
4
+ data.tar.gz: c70e63597707b4811523a427efe95a48417a75f93b8c25443a1d0731f09dd260
5
5
  SHA512:
6
- metadata.gz: 861485b876d02f2565a938fb397f9737cce872939e162640303f998d15a3ccf986a2a7e49b4e838d283680fbd4df4dfca6588c02ed1c25b9a368ec5bede0fe1c
7
- data.tar.gz: 06b646a8c7e65121e44e117171d233ff600217d73a16623bb829d8a407dbc59b6c7999f4f8e9cb8aeb48a8abd8cdee1424334870bbf2e28be69ddfbca9792d76
6
+ metadata.gz: 8c88ded5300cd4a9a7538f31a7b98a72d714b112469d96a628cbb160643c176a4ec543fbc52e7dd41a450ab3ea6edccd84be333a8480edd0f9e9f3588dcd1ba4
7
+ data.tar.gz: d691dbb4676db53f50d835e1fd993a88e2b1e838f20b06156b1dfbbefb95a2be2e0e88517581c611abde47e9f7ddc1142158381ddf1c61d728b53f337aa876dd
@@ -1,5 +1,5 @@
1
1
  module Mailpace
2
2
  module Rails
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
4
4
  end
5
5
  end
@@ -18,8 +18,8 @@ module Mailpace
18
18
 
19
19
  def deliver!(mail)
20
20
  if mail.multipart?
21
- htmlbody = mail.html_part.body.decoded,
22
- textbody = mail.text_part.body.decoded
21
+ htmlbody = mail.html_part&.body&.decoded
22
+ textbody = mail.text_part&.body&.decoded
23
23
  elsif mail.mime_type == "text/plain"
24
24
  textbody = mail.body.to_s
25
25
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailpace-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MailPace
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-06 00:00:00.000000000 Z
11
+ date: 2025-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer