mailersend-actionmailer 0.0.1 → 0.0.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 +4 -4
- data/lib/mailersend_actionmailer.rb +4 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e2c1ca7a7004b5e6bbe78589d7f30d060ceaa3bdc348ac7f3ed417c91b07bb4
|
4
|
+
data.tar.gz: ba3267b015c0829fdb64fd1f1dbf377879fe7bcf868e0994f17549c80b44b576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5ccf32f227bb34a7a0089fbe9212c94cb098979d8ca7f94be9ee3c11bcb9b32be38a5c2f7bbf7b8b4268b17466ab4782218c577bb8d4561d92c26b84922d45b
|
7
|
+
data.tar.gz: f7c9fd6354afc21f6020c425741a6800c5dab2106c78a8988200acefbddf62aafc9f068acb03f4497320f23e78dea8682e0351a1c2315059cafc6ccb3eba596c
|
@@ -31,7 +31,10 @@ module MailerSendActionMailer
|
|
31
31
|
email.add_reply_to mail.reply_to
|
32
32
|
email.add_subject mail.subject
|
33
33
|
|
34
|
-
if mail.mime_type == "
|
34
|
+
if mail.mime_type == "multipart/alternative"
|
35
|
+
email.add_html mail.html_part.body.decoded
|
36
|
+
email.add_text mail.text_part.body.decoded
|
37
|
+
elsif mail.mime_type == "text/plain"
|
35
38
|
email.add_text mail.body.raw_source
|
36
39
|
else
|
37
40
|
email.add_html mail.body.raw_source
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailersend-actionmailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Sherriff
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: mailersend-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3.0'
|
41
41
|
description: An ActionMailer delivery method using the MailerSend Ruby SDK to send
|
42
42
|
emails with their API
|
43
43
|
email: james.sherriff@widgit.com
|
@@ -48,10 +48,10 @@ files:
|
|
48
48
|
- lib/mailersend-actionmailer.rb
|
49
49
|
- lib/mailersend_actionmailer.rb
|
50
50
|
- lib/mailersend_actionmailer/railtie.rb
|
51
|
-
homepage:
|
51
|
+
homepage:
|
52
52
|
licenses: []
|
53
53
|
metadata: {}
|
54
|
-
post_install_message:
|
54
|
+
post_install_message:
|
55
55
|
rdoc_options: []
|
56
56
|
require_paths:
|
57
57
|
- lib
|
@@ -66,8 +66,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
70
|
-
signing_key:
|
69
|
+
rubygems_version: 3.4.1
|
70
|
+
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: ActionMailer delivery method for MailerSend API
|
73
73
|
test_files: []
|