supersendtx 0.8.4 → 0.8.6
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/supersendtx/resources.rb +4 -2
- data/lib/supersendtx/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fbf5f9b1af214ebe25a061d57a93b6be81156a85bf92af2097e84f0b112e44fc
|
|
4
|
+
data.tar.gz: ea78748b69054e8b79501413f0d321413d2fe44e78f2fc1511fece71fefa92e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4875c01e3df8e853eaef526c0a1a5b5d750eb8942563bd7b591b96f2280b2dee0e6ffc5e87600328e380e069151d2ba905f55a61bbf3755bda5846f5c048def
|
|
7
|
+
data.tar.gz: cc63a43324cc2d992f56927206502ac439ce247abf8b30b9faec361b832c80e5e55ec1fb7f7f970866f2f2b6d03ffb7284f3ae22e8476b4f9aa067af3534daa8
|
|
@@ -56,7 +56,7 @@ module SuperSendTX
|
|
|
56
56
|
"to" => params["to"] || params[:to]
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
%w[subject html text reply_to replyTo cc bcc tags headers tag template attachments].each do |key|
|
|
59
|
+
%w[subject html text reply_to replyTo cc bcc tags headers tag template attachments category].each do |key|
|
|
60
60
|
value = params[key] || params[key.to_sym]
|
|
61
61
|
next if value.nil?
|
|
62
62
|
|
|
@@ -68,7 +68,9 @@ module SuperSendTX
|
|
|
68
68
|
body["text"] = params["textBody"] || params[:textBody] if params["textBody"] || params[:textBody]
|
|
69
69
|
body["scheduled_at"] = params["scheduled_at"] || params[:scheduled_at] if params["scheduled_at"] || params[:scheduled_at]
|
|
70
70
|
body["scheduled_at"] ||= params["scheduledAt"] || params[:scheduledAt]
|
|
71
|
-
|
|
71
|
+
# fetch, not ||: `"unsubscribe" => false` must stay false. A nil would go out as null, which the API rejects.
|
|
72
|
+
unsubscribe = params.fetch("unsubscribe") { params[:unsubscribe] }
|
|
73
|
+
body["unsubscribe"] = unsubscribe unless unsubscribe.nil?
|
|
72
74
|
|
|
73
75
|
body
|
|
74
76
|
end
|
data/lib/supersendtx/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: supersendtx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SuperSend TX
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|