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 +4 -4
- data/.github/CODEOWNERS +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/mailersend/bulk_email/bulk_email.rb +3 -2
- data/lib/mailersend/email/email.rb +3 -2
- data/lib/mailersend/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f95531e933a67ec27b789aa68008030393aceafd92f8a267ef6e69ea0684dba1
|
|
4
|
+
data.tar.gz: 8a292cb132a367a2d654a65dd9141faae370491614b87135ec442f3d9f04983d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33071f4961960a37b6732ab45905e3ea2060d82080d7289e793d72dea84014f91cfe245b12a8055800a85adfebdc44b28f4a2010d71b59bb3f04dda56077450f
|
|
7
|
+
data.tar.gz: 238d96acbe53f2d95b8326fe091baff168aef20eb7f3b64e68924fc6e53f4b5aa1620b92d88507ae151c4b5de1475cb7660403067d572b9f4769627a4b32af38
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @mailersend/ruby-sdk-maintainers
|
data/CHANGELOG.md
CHANGED
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
|
|
data/lib/mailersend/version.rb
CHANGED
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.
|
|
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-
|
|
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"
|