resend 0.21.0 → 0.23.0
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/README.md +2 -2
- data/lib/resend/batch.rb +3 -2
- data/lib/resend/mailer.rb +3 -0
- data/lib/resend/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c778fa8f5061918ead0829be217ebdc195627a4ee946554f4fbace95517e6efc
|
4
|
+
data.tar.gz: a01f17f7c33a44452da8fff7b22c522c32c5a0e64618ae37e052d64ea88217da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2123d296efa006c8da9d603b25fe77f5f81cd161aabe14d3c61e5e0c2ee8de3ab183cc9fc194fd5aacdacdb9d4bbcdb97a6dbf43038da298bbc398d09a4f76e7
|
7
|
+
data.tar.gz: edd3e07d509449f0c2f76c302dc2e6cbecb5278701c4720008de7668fdfd5a3a2407430ec3c48fc943a52530369d421e63aac918088ec82757b08fcd418d1bf1
|
data/README.md
CHANGED
@@ -61,8 +61,8 @@ require "resend"
|
|
61
61
|
Resend.api_key = ENV["RESEND_API_KEY"]
|
62
62
|
|
63
63
|
params = {
|
64
|
-
"from": "
|
65
|
-
"to": ["
|
64
|
+
"from": "onboarding@resend.dev",
|
65
|
+
"to": ["delivered@resend.dev", "your@email.com"],
|
66
66
|
"html": "<h1>Hello World</h1>",
|
67
67
|
"subject": "Hey"
|
68
68
|
}
|
data/lib/resend/batch.rb
CHANGED
@@ -5,9 +5,10 @@ module Resend
|
|
5
5
|
module Batch
|
6
6
|
class << self
|
7
7
|
# https://resend.com/docs/api-reference/emails/send-batch-emails
|
8
|
-
def send(params = [])
|
8
|
+
def send(params = [], options: {})
|
9
9
|
path = "emails/batch"
|
10
|
-
|
10
|
+
|
11
|
+
Resend::Request.new(path, params, "post", options: options).perform
|
11
12
|
end
|
12
13
|
end
|
13
14
|
end
|
data/lib/resend/mailer.rb
CHANGED
@@ -219,6 +219,9 @@ module Resend
|
|
219
219
|
filename: part.filename,
|
220
220
|
content: part.body.decoded.bytes
|
221
221
|
}
|
222
|
+
|
223
|
+
# Rails uses the auto generated cid for inline attachments
|
224
|
+
attachment[:inline_content_id] = part.cid if part.inline?
|
222
225
|
attachments.append(attachment)
|
223
226
|
end
|
224
227
|
attachments
|
data/lib/resend/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derich Pacheco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|