supersendtx 0.8.5 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f78ebcf51d20337a464ee2d48c5798360aa0c972e76b76c8b8ddc661ff0868f
4
- data.tar.gz: b0b08bd664728eae3c3db983c74a1882d3aae038e213167f57e6cb43cee3750c
3
+ metadata.gz: fbf5f9b1af214ebe25a061d57a93b6be81156a85bf92af2097e84f0b112e44fc
4
+ data.tar.gz: ea78748b69054e8b79501413f0d321413d2fe44e78f2fc1511fece71fefa92e9
5
5
  SHA512:
6
- metadata.gz: f63098ad1302849ab178d83ea2ba01b7d707cf4eddb8d55b54fa7cb65c43752dd424654dbf9eb1a16314e8c80c61c701939d789327960585c10028f6fd28b445
7
- data.tar.gz: 05b78b05113bce03d1875bc834fcba507532c3d43b3b21c50da198c861c85196e6e853ef31c7a7b9abb1125eff1c426c11ff26d240903988d38b0173a1a133c5
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
- body["unsubscribe"] = params["unsubscribe"] || params[:unsubscribe] if params.key?("unsubscribe") || params.key?(:unsubscribe)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SuperSendTX
4
- VERSION = "0.8.5"
4
+ VERSION = "0.8.6"
5
5
  end
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.5
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-08-19 00:00:00.000000000 Z
11
+ date: 2026-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64