resend 1.9.0 → 1.10.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: 0d4fd70fd0f2eab7c555c5448fadede3d5393d8629e8e9edab9a606ee114157d
4
- data.tar.gz: 4f9507e590d7ea64b0d55df9ca840c9b6d8d0895ef0621d07153c3d6c2027a4a
3
+ metadata.gz: f371f1dad3f54dd4be3d53a1a242749f451a2052b87faf8c062a29b001fa9d40
4
+ data.tar.gz: 5acf401dbb4d342126629e4e7f13744cd9569ec4cb872a1e14822f5c1d207ab7
5
5
  SHA512:
6
- metadata.gz: 27ab0c3ba82126ddd1a4bf6c092b25a796c9975eedb20718947e2d2d1c70631f358d969a83701079dca6ae16ee38dd33316b58336ff3b1a4f98bed7d0e0e5648
7
- data.tar.gz: 456c3b77bc440bf672b3d50d9ed922246f9375ee51e4ce9442c5ca68178bf4a922ab2f945bb954b1487259a93c7f39014ad21891584e4a8f33899dc7695f05dc
6
+ metadata.gz: 65c023232e15a0a64fe731ab6a5691d29972bc3b2e57a2f25b5ccdfe94d7c92ef80da1d8acb06a1cd9ddb23338767b07c960cb099d74990f46a9f0c8a3e8314d
7
+ data.tar.gz: 88301451135d13c9944062cb08e5b2a59e76e933cdc01cdcabbfc8c944f9cce70fa88eb7fd238cd59f799fd4f22d0b0cfd1bf9e0bc785d5cd03b363dff6177fe
@@ -21,6 +21,12 @@ module Resend
21
21
  path = "api-keys/#{api_key_id}"
22
22
  Resend::Request.new(path, {}, "delete").perform
23
23
  end
24
+
25
+ # https://resend.com/docs/api-reference/api-keys/update-api-key
26
+ def update(params)
27
+ path = "api-keys/#{params[:id]}"
28
+ Resend::Request.new(path, { name: params[:name] }, "patch").perform
29
+ end
24
30
  end
25
31
  end
26
32
  end
data/lib/resend/emails.rb CHANGED
@@ -32,6 +32,17 @@ module Resend
32
32
  Resend::Request.new(path, {}, "post").perform
33
33
  end
34
34
 
35
+ # Create a shareable link for a sent or received email.
36
+ #
37
+ # @param email_id [String] The email id (sent or received).
38
+ # @param params [Hash] Optional parameters
39
+ # @option params [String] :expires_in Human-readable duration (e.g. "10m", "2 hours",
40
+ # "1 day"). Defaults to "48h" and is capped at 48 hours.
41
+ def share(email_id, params = {})
42
+ path = "emails/#{email_id}/share"
43
+ Resend::Request.new(path, params, "post").perform
44
+ end
45
+
35
46
  # List emails with optional pagination.
36
47
  # see more: https://resend.com/docs/api-reference/emails/list-emails
37
48
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Resend
4
- VERSION = "1.9.0"
4
+ VERSION = "1.10.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derich Pacheco
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-08-18 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: base64
@@ -38,7 +37,6 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: 0.22.0
41
- description:
42
40
  email: carlosderich@gmail.com
43
41
  executables: []
44
42
  extensions: []
@@ -85,7 +83,6 @@ homepage: https://github.com/resend/resend-ruby
85
83
  licenses:
86
84
  - MIT
87
85
  metadata: {}
88
- post_install_message:
89
86
  rdoc_options: []
90
87
  require_paths:
91
88
  - lib
@@ -100,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
97
  - !ruby/object:Gem::Version
101
98
  version: '0'
102
99
  requirements: []
103
- rubygems_version: 3.0.3.1
104
- signing_key:
100
+ rubygems_version: 4.0.16
105
101
  specification_version: 4
106
102
  summary: The Ruby and Rails SDK for resend.com
107
103
  test_files: []