mailersend-ruby 1.3.0 → 1.3.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: 06fb33a6d3379015ec34d916945369c1b2604caa3f51a5fad5a20f0f22fc65ad
4
- data.tar.gz: b14667b2ebade1bff4934506709593c5193ff8cccf5edcc68d4e61df8e4a43d9
3
+ metadata.gz: f95531e933a67ec27b789aa68008030393aceafd92f8a267ef6e69ea0684dba1
4
+ data.tar.gz: 8a292cb132a367a2d654a65dd9141faae370491614b87135ec442f3d9f04983d
5
5
  SHA512:
6
- metadata.gz: 365e01c2144cc33fad981c05f4d53f708a20d020071906fc85a1f3b714fc650e434528a7f0199316abe560dbce444d464e17d0446e30d0cdfe84f5d56ab9ee20
7
- data.tar.gz: a94ad79bfbf227265baeb848abe11fd3755e99416a41384b71786e98ca597c468cada072a4d6bcb330a08be4219ae916ea6215542cad6082027f878f1eef0535
6
+ metadata.gz: 33071f4961960a37b6732ab45905e3ea2060d82080d7289e793d72dea84014f91cfe245b12a8055800a85adfebdc44b28f4a2010d71b59bb3f04dda56077450f
7
+ data.tar.gz: 238d96acbe53f2d95b8326fe091baff168aef20eb7f3b64e68924fc6e53f4b5aa1620b92d88507ae151c4b5de1475cb7660403067d572b9f4769627a4b32af38
@@ -0,0 +1 @@
1
+ * @mailersend/ruby-sdk-maintainers
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Released]
2
2
 
3
+ ## [1.3.1] - 2022-09-28
4
+
5
+ - Added attachment content disposition
6
+
3
7
  ## [1.3.0] - 2022-08-03
4
8
 
5
9
  - SMS Personalization
data/README.md CHANGED
@@ -318,8 +318,8 @@ ms_email.add_text("Time is money, money is power, power is pizza, and pizza is k
318
318
  ms_email.add_html("<b>Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.</b>")
319
319
 
320
320
  # You can add one or multiple attachments
321
- ms.add_attachment(content: "/Users/Jerry/Desktop/doc.pdf", filename: "doc.pdf")
322
- ms.add_attachment(content: "/Users/Jerry/Desktop/pic.png", filename: "pic.png")
321
+ ms.add_attachment(content: "/Users/Jerry/Desktop/doc.pdf", filename: "doc.pdf", disposition: "attachment")
322
+ ms.add_attachment(content: "/Users/Jerry/Desktop/pic.png", filename: "pic.png", disposition: "attachment")
323
323
 
324
324
  ms_email.send
325
325
  ```
@@ -13,12 +13,13 @@ module Mailersend
13
13
  @messages = []
14
14
  end
15
15
 
16
- def add_attachment(content:, filename:)
16
+ def add_attachment(content:, filename:, disposition:)
17
17
  data = File.read(content.to_s)
18
18
  encoded = Base64.strict_encode64(data)
19
19
  @attachments << {
20
20
  'content' => encoded,
21
- 'filename' => filename
21
+ 'filename' => filename,
22
+ 'disposition' => disposition
22
23
  }
23
24
  end
24
25
 
@@ -86,12 +86,13 @@ module Mailersend
86
86
  @tags << tags
87
87
  end
88
88
 
89
- def add_attachment(content:, filename:)
89
+ def add_attachment(content:, filename:, disposition:)
90
90
  data = File.read(content.to_s)
91
91
  encoded = Base64.strict_encode64(data)
92
92
  @attachments << {
93
93
  'content' => encoded,
94
- 'filename' => filename
94
+ 'filename' => filename,
95
+ 'disposition' => disposition
95
96
  }
96
97
  end
97
98
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mailersend
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailersend-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Milojević
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -119,6 +119,7 @@ extensions: []
119
119
  extra_rdoc_files: []
120
120
  files:
121
121
  - ".env.example"
122
+ - ".github/CODEOWNERS"
122
123
  - ".github/workflows/main.yml"
123
124
  - ".github/workflows/publish_gem.yml"
124
125
  - ".gitignore"