mailersend-ruby 3.0.0 → 3.0.1
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/CHANGELOG.md +3 -0
- data/lib/mailersend/email/email.rb +14 -0
- data/lib/mailersend/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17f9c7e1443d5719db627034223fe14c686120821832531d97ba1bddfd9baa3d
|
4
|
+
data.tar.gz: d796dcdb8473272add457f118eb3ec0db7f671d79a5cc58c682c5544bad95753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db2485ea6a3e44cdd2be3609ab515cc2c71192da8256dcb31d55f3d96e60324e9be5c8c378c2b6cea203b8b98ad7df30bdafc4bb4722cd7e5b52344dc2371e4b
|
7
|
+
data.tar.gz: cbbead7b4a7b9dc7c9d51af70bcad38f3e4915506ecd9deb2428b41b9496cef5b1fb4158c5426bc4ddfa8eee1be5c5c481c15a85792398ef1cbd575080380fa3
|
data/CHANGELOG.md
CHANGED
@@ -19,6 +19,8 @@ module Mailersend
|
|
19
19
|
:tags,
|
20
20
|
:variables,
|
21
21
|
:personalization,
|
22
|
+
:headers,
|
23
|
+
:list_unsubscribe,
|
22
24
|
:send_at
|
23
25
|
|
24
26
|
def initialize(client = Mailersend::Client.new)
|
@@ -35,6 +37,8 @@ module Mailersend
|
|
35
37
|
@personalization = []
|
36
38
|
@attachments = []
|
37
39
|
@tags = []
|
40
|
+
@headers = {}
|
41
|
+
@list_unsubscribe = nil
|
38
42
|
@send_at = send_at
|
39
43
|
end
|
40
44
|
|
@@ -102,6 +106,14 @@ module Mailersend
|
|
102
106
|
@attachments << { 'content' => base64_encoded, 'filename' => filename, 'disposition' => disposition }
|
103
107
|
end
|
104
108
|
|
109
|
+
def add_headers(headers)
|
110
|
+
@headers = headers
|
111
|
+
end
|
112
|
+
|
113
|
+
def add_list_unsubscribe(list_unsubscribe)
|
114
|
+
@list_unsubscribe = list_unsubscribe
|
115
|
+
end
|
116
|
+
|
105
117
|
def add_send_at(send_at)
|
106
118
|
@send_at = send_at
|
107
119
|
end
|
@@ -120,6 +132,8 @@ module Mailersend
|
|
120
132
|
'personalization' => @personalization,
|
121
133
|
'template_id' => @template_id,
|
122
134
|
'attachments' => @attachments,
|
135
|
+
'headers' => @headers,
|
136
|
+
'list_unsubscribe' => @list_unsubscribe,
|
123
137
|
'send_at' => @send_at,
|
124
138
|
'tags' => @tags
|
125
139
|
}
|
data/lib/mailersend/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailersend-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikola Milojević
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: http
|
@@ -199,7 +198,6 @@ metadata:
|
|
199
198
|
source_code_uri: https://github.com/mailersend/mailersend-ruby
|
200
199
|
changelog_uri: https://github.com/mailersend/mailersend-ruby/blob/main/CHANGELOG.md
|
201
200
|
rubygems_mfa_required: 'true'
|
202
|
-
post_install_message:
|
203
201
|
rdoc_options: []
|
204
202
|
require_paths:
|
205
203
|
- lib
|
@@ -214,8 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
212
|
- !ruby/object:Gem::Version
|
215
213
|
version: '0'
|
216
214
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
218
|
-
signing_key:
|
215
|
+
rubygems_version: 3.6.2
|
219
216
|
specification_version: 4
|
220
217
|
summary: MailerSend's official Ruby SDK
|
221
218
|
test_files: []
|