resend 0.7.2 → 0.8.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: be26542af1fd2713f0b004a3e4a5fc347b798b7442d73807e4d7b1d84e1bef96
4
- data.tar.gz: d4452a29cdc20076b6d9ecb4edfd000d55907e259208b38e9b8c1da7ff18f2e6
3
+ metadata.gz: 9d47b8d94ca889992ecef9e04d771fc16674236acc93c07d3dcd849bc5d5b2fe
4
+ data.tar.gz: 637a2eedb36475746c7c8494ae657ee78ab567be7d2864e3b63c97bbdb5d797c
5
5
  SHA512:
6
- metadata.gz: 0e2f022d7a709acbdc26eef57f73f41f30d244394d65b0261a1ca353af27038b9ed366b917293dba1018fa24ec6ba2a543ea27303f09e79c37e513fdd06f275c
7
- data.tar.gz: c3e0c9fc17e4b2afb037baf542561e0871cc6bb3d274757efd452bcfaeb1c7d3eb0086f8759c26bf8deaebafc0196f99b2859f2a17bcc4328e4b4271c6062ac6
6
+ metadata.gz: 3307b328674d55b133822f6837662615d88c8f4f5b6ae5c4d3467ba0fc1538d5dcf26873dd8584128ff2a1e6ef908d9bf5dec3e0e2534988f8dcc2bba13f75ce
7
+ data.tar.gz: 4215c88a8db32f51cf076c56e0a69c1f1b9313b242425c039c16a8e30a7e78ac5f7dcd2369f5c41919976c65403557fba126d81348a9192f7a449b5b9ee9fa09
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "resend/request"
4
+
5
+ module Resend
6
+ # Module responsible for wrapping Batch email sending API
7
+ module Batch
8
+ class << self
9
+ # https://resend.com/docs/api-reference/emails/send-batch-emails
10
+ def send(params = [])
11
+ path = "emails/batch"
12
+ Resend::Request.new(path, params, "post").perform
13
+ end
14
+ end
15
+ end
16
+ end
data/lib/resend/client.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require "resend/api_keys"
4
4
  require "resend/domains"
5
5
  require "resend/emails"
6
+ require "resend/batch"
6
7
  require "httparty"
7
8
 
8
9
  module Resend
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Resend
4
- VERSION = "0.7.2"
4
+ VERSION = "0.8.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.7.2
4
+ version: 0.8.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: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2023-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -47,6 +47,7 @@ files:
47
47
  - README.md
48
48
  - lib/resend.rb
49
49
  - lib/resend/api_keys.rb
50
+ - lib/resend/batch.rb
50
51
  - lib/resend/client.rb
51
52
  - lib/resend/domains.rb
52
53
  - lib/resend/emails.rb