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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b79fd2dc6326bb15c06bcd988858e91239d8c35684ad79160290c08cb06b07b
4
- data.tar.gz: '08da96f4ce97ecd4b674f6961a297367111f5c4d0805725b055b6450b6c5873b'
3
+ metadata.gz: 17f9c7e1443d5719db627034223fe14c686120821832531d97ba1bddfd9baa3d
4
+ data.tar.gz: d796dcdb8473272add457f118eb3ec0db7f671d79a5cc58c682c5544bad95753
5
5
  SHA512:
6
- metadata.gz: e92fddde28243b568adb088f304737edef07068a2983db5869f17bdfa60463698d721c0f828b8a8fb5ba255a886ed865fd357d284db3a864f347ddc72f503030
7
- data.tar.gz: 8499c4de45e9e4979434bc340df82936b347f3328736b0bbfecc67d6eeab728de53e8f8194a0581abe633fea5f25be6850e641bae9282eeb3cd419d5ee9f5554
6
+ metadata.gz: db2485ea6a3e44cdd2be3609ab515cc2c71192da8256dcb31d55f3d96e60324e9be5c8c378c2b6cea203b8b98ad7df30bdafc4bb4722cd7e5b52344dc2371e4b
7
+ data.tar.gz: cbbead7b4a7b9dc7c9d51af70bcad38f3e4915506ecd9deb2428b41b9496cef5b1fb4158c5426bc4ddfa8eee1be5c5c481c15a85792398ef1cbd575080380fa3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Released]
2
2
 
3
+ ## [3.0.1] - 2025-04-10
4
+ - Adding missing parameters
5
+
3
6
  ## [3.0.0] - 2024-12-20
4
7
  - *BREAKING CHANGE* - Updated the minimal required Ruby version from 2.5 to 3.1
5
8
  - Adding tests
@@ -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
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mailersend
4
- VERSION = '3.0.0'
4
+ VERSION = '3.0.1'
5
5
  end
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.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: 2024-12-20 00:00:00.000000000 Z
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.5.22
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: []