resend 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70596dffa29e9dcb7003a899e14efdbab47ba5358d2c4b38fb8e3b25d7a213b0
4
- data.tar.gz: c6bdbac869e0e0d87d23300f2e634f08d394ce8782711341c0a070afed5dd579
3
+ metadata.gz: 35de3e6d5edf8d140f5fddb77a69d05dfefdea65dc12381cb5003803d3002f31
4
+ data.tar.gz: 9153eece684f2609927d3123090bbd114eea09f54c6a0e349c360fe0520a4d1b
5
5
  SHA512:
6
- metadata.gz: cf2f95914e24fc67fc1b46d544cfe019bff4fe883887a601821756903581ae186207584ec34be9b7f0ef38e5d835fabbb4e415c0f8453be10d2b0539146c80f7
7
- data.tar.gz: a7da2edfcb4782f9c2159b65000f578bbeecabaebd95e79062815be439932eb94aec1e7bffd0a8c1cd6af62cc54f990536d46d8ea84edc67ebf15b27eecf4271
6
+ metadata.gz: 56c8c0d8f4195508bf4b2c116bc8c03d6bfbbc1d81f78dab030e781250f2bd932ccb276101ae333ce76abefa492478cb7465d194e0df39904eb5730fb87303cf
7
+ data.tar.gz: fd271dc660f9c775a1d820798450ed8a24c1bddc57fdc32ddfedef2395e7d80cfe1e72cca2dc6d6cd1d4e81a8402177451d5ec90700e0fd1aceebe3e89251fd9
@@ -25,7 +25,13 @@ module Resend
25
25
  Resend::Request.new(path, {}, "get").perform
26
26
  end
27
27
 
28
- # https://resend.com/docs/api-reference/contacts/delete-contact
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
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Resend
4
- VERSION = "0.9.0"
4
+ VERSION = "0.10.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.9.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-10 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty