resend 1.15.0 → 1.16.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: 3938cdaa35000f4892f2c976fac519d217a27ef09e659f43edc42743e05ce405
4
- data.tar.gz: 57b247c84895ad999bb343ec38e7a830d10df733da1bd24b244601c27afdca50
3
+ metadata.gz: c2baa04b3700513eaf33e626540ffd369fb2536b68e10b2cde3cccfcd1f4c4f6
4
+ data.tar.gz: c964e14ea899bcd871f0fee71bac5c93f754e2fcade13d3db5e414779fb08636
5
5
  SHA512:
6
- metadata.gz: 310f162c8042191f415021519dffe7be44e67b3746a804fee0c2230c5632c34f2def7626f1927852370a96ddf2d36b04075fd2eca5072d8bfd3e695e768783f4
7
- data.tar.gz: 9cc0f489144b5ba28b40f2402bb5e10e819dd64c984ab0b281ce342bc23c8810d4e0ad65eda0c2f8a89ee0aaacf23b0436eea81dbb4018cee18e5ece4bc246fb
6
+ metadata.gz: f330bb479be38dfe8dcf769c93e3c1a4eba37499b324a95ee8f023508c63245c431c0007dab8f8889e299778da66e74ec93dc2f84daaeedae746d4083d1918a2
7
+ data.tar.gz: 101369e946c4242e8f688bac3cfcd020e4eafad0f1b80264e78f3c128f36ca2ae5caab006f180af122f479d15e4217a553af986feed05145ab513c355ed32eba
@@ -52,6 +52,13 @@ module Resend
52
52
  Resend::Request.new(path, {}, "post").perform
53
53
  end
54
54
 
55
+ # https://resend.com/docs/api-reference/broadcasts/duplicate-broadcast
56
+ # @note Creates a new draft with the same content as the source, named after it with " (copy)" appended.
57
+ def duplicate(broadcast_id = "")
58
+ path = "broadcasts/#{broadcast_id}/duplicate"
59
+ Resend::Request.new(path, {}, "post").perform
60
+ end
61
+
55
62
  # https://resend.com/docs/api-reference/broadcasts/delete-broadcast
56
63
  def remove(broadcast_id = "")
57
64
  path = "broadcasts/#{broadcast_id}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Resend
4
- VERSION = "1.15.0"
4
+ VERSION = "1.16.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derich Pacheco