resend 0.9.0 → 0.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/contacts.rb +7 -1
- data/lib/resend/request.rb +1 -1
- 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: 35de3e6d5edf8d140f5fddb77a69d05dfefdea65dc12381cb5003803d3002f31
|
4
|
+
data.tar.gz: 9153eece684f2609927d3123090bbd114eea09f54c6a0e349c360fe0520a4d1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56c8c0d8f4195508bf4b2c116bc8c03d6bfbbc1d81f78dab030e781250f2bd932ccb276101ae333ce76abefa492478cb7465d194e0df39904eb5730fb87303cf
|
7
|
+
data.tar.gz: fd271dc660f9c775a1d820798450ed8a24c1bddc57fdc32ddfedef2395e7d80cfe1e72cca2dc6d6cd1d4e81a8402177451d5ec90700e0fd1aceebe3e89251fd9
|
data/lib/resend/contacts.rb
CHANGED
@@ -25,7 +25,13 @@ module Resend
|
|
25
25
|
Resend::Request.new(path, {}, "get").perform
|
26
26
|
end
|
27
27
|
|
28
|
-
#
|
28
|
+
#
|
29
|
+
# Remove a contact from an audience
|
30
|
+
#
|
31
|
+
# @param audience_id [String] the audience id
|
32
|
+
# @param contact_id [String] either the contact id or contact email
|
33
|
+
#
|
34
|
+
# see also: https://resend.com/docs/api-reference/contacts/delete-contact
|
29
35
|
def remove(audience_id, contact_id)
|
30
36
|
path = "audiences/#{audience_id}/contacts/#{contact_id}"
|
31
37
|
Resend::Request.new(path, {}, "delete").perform
|
data/lib/resend/request.rb
CHANGED
@@ -8,7 +8,7 @@ module Resend
|
|
8
8
|
# This class is responsible for making the appropriate HTTP calls
|
9
9
|
# and raising the specific errors based on the response.
|
10
10
|
class Request
|
11
|
-
BASE_URL = "https://api.resend.com/"
|
11
|
+
BASE_URL = ENV["RESEND_BASE_URL"] || "https://api.resend.com/"
|
12
12
|
|
13
13
|
attr_accessor :body, :verb
|
14
14
|
|
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.10.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: 2024-01-
|
11
|
+
date: 2024-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|