customers_mail_cloud 0.4.0 → 0.4.2
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/Gemfile.lock +1 -1
- data/lib/customers_mail_cloud/client.rb +10 -6
- data/lib/customers_mail_cloud/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 870ade1a31804d6a0061ad24343b3b685175c392f7ff23dbe36041619e69295b
|
|
4
|
+
data.tar.gz: 34bf65253b1d0ba81668fefa087b142656f4f23e628bcf0a4a1526ab4e23d80d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6559653cb1e4d8211506417d2b861df13098357bedc2f10b0e134a793646525c34dc8584a34fafb5e891cbf2d89bc110a5d2293afc53557df4ad905b16fb3b16
|
|
7
|
+
data.tar.gz: 1fc675dc69c1e455e3ff126aeb8f0bd78b65071218b527018c13051c7c8e2e3151710fa7d1509451260d1f9257ec9568d17cda8ca3b7fd6b33ba70fdc9fc9218
|
data/Gemfile.lock
CHANGED
|
@@ -19,8 +19,8 @@ module CustomersMailCloud
|
|
|
19
19
|
@subject = ''
|
|
20
20
|
@text = ''
|
|
21
21
|
@html = ''
|
|
22
|
-
@
|
|
23
|
-
@
|
|
22
|
+
@env_from = nil
|
|
23
|
+
@reply_to = nil
|
|
24
24
|
@headers = {}
|
|
25
25
|
@charset = 'UTF-8'
|
|
26
26
|
@attachments = []
|
|
@@ -67,10 +67,14 @@ module CustomersMailCloud
|
|
|
67
67
|
subject: @subject,
|
|
68
68
|
text: @text
|
|
69
69
|
}
|
|
70
|
-
params[:envfrom] = @
|
|
71
|
-
params[:replyto] = @
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
params[:envfrom] = @env_from if @env_from
|
|
71
|
+
params[:replyto] = @reply_to.to_h if @reply_to
|
|
72
|
+
if (@headers.empty?)
|
|
73
|
+
params[:headers] = @headers.map do |key, value|
|
|
74
|
+
{ name: key, value: value }
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
params[:charset] = @charset
|
|
74
78
|
params[:html] = @html if @html != ''
|
|
75
79
|
headers = {
|
|
76
80
|
'Content-Type': 'application/json',
|