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 +4 -4
- data/lib/resend/api_keys.rb +6 -0
- data/lib/resend/emails.rb +11 -0
- data/lib/resend/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f371f1dad3f54dd4be3d53a1a242749f451a2052b87faf8c062a29b001fa9d40
|
|
4
|
+
data.tar.gz: 5acf401dbb4d342126629e4e7f13744cd9569ec4cb872a1e14822f5c1d207ab7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65c023232e15a0a64fe731ab6a5691d29972bc3b2e57a2f25b5ccdfe94d7c92ef80da1d8acb06a1cd9ddb23338767b07c960cb099d74990f46a9f0c8a3e8314d
|
|
7
|
+
data.tar.gz: 88301451135d13c9944062cb08e5b2a59e76e933cdc01cdcabbfc8c944f9cce70fa88eb7fd238cd59f799fd4f22d0b0cfd1bf9e0bc785d5cd03b363dff6177fe
|
data/lib/resend/api_keys.rb
CHANGED
|
@@ -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
|
#
|
data/lib/resend/version.rb
CHANGED
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.
|
|
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:
|
|
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:
|
|
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: []
|