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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a211cd93c4479cba4bf63b849bf8e91de3413e9ccf9917c681454fcd7ed832e0
4
- data.tar.gz: 4e9ba38c842d04fbe3eb7d5987784b54d327ee9b1eaeec8dbfbcebf08110b948
3
+ metadata.gz: c778fa8f5061918ead0829be217ebdc195627a4ee946554f4fbace95517e6efc
4
+ data.tar.gz: a01f17f7c33a44452da8fff7b22c522c32c5a0e64618ae37e052d64ea88217da
5
5
  SHA512:
6
- metadata.gz: 63c27d58c685bd8edd04ce28817bbca66ed468113067c0f43f6b51bdf3add9ebcfeeb1d434bf2150f84d5ae4c7661860f834d7dfe62f7c5146bb75051408ae77
7
- data.tar.gz: 5c63d4c381f0c53dc04b1c8b933b131e9d0bdf7aaf2a4354a9d1c454d75a2116a35fec481865e8668719d0e1fab875688acb6fa2968f3c09a116aeaf1e6500f3
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": "from@email.io",
65
- "to": ["to@email.com", "to1@gmail.com"],
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
- Resend::Request.new(path, params, "post").perform
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Resend
4
- VERSION = "0.21.0"
4
+ VERSION = "0.23.0"
5
5
  end
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.21.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-05-06 00:00:00.000000000 Z
11
+ date: 2025-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty