discordrb-webhooks 3.7.0 → 3.7.1

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: 1fd4231a5be5dc1e5d6f731bc5a2b8edbe9737a527101c9b16a4eabeb37d8cea
4
- data.tar.gz: fa8f69e94fd67b16b1915e6ff19237f5be5ee6b122bc3aba564b5464f93e2a0f
3
+ metadata.gz: 64adff3c11dc30cbe5688e48d2dad1b827fc6ef225cfce9d767e21082f3a0469
4
+ data.tar.gz: 11bc596b4feb9d4805ab73c313dc918a346ffde62db136fb544231b42f91014a
5
5
  SHA512:
6
- metadata.gz: 8bc105bb97f84aa22bf51f576029cc94486b5c0449740b338d5c75b3bbe786b7516b02c334d9599060d0671c0e8f3df6057b79f9cb6f796358ef2708a9e6299e
7
- data.tar.gz: da63150a08d48567b2f671bde2a5980edfbb2771b8b4ceb36ad476bce6ad3d6728a6007f108e17c4fcfb2e81ddaac592c1290c89004139d296b193cc16d26b1e
6
+ metadata.gz: 5742b179ad21db8f23f73b55da2a6739cf6a7c16b63a3368a83f01c4e7b59c7e72ca26aa17b5f8beceb1aca1a72e6b9431d8d5da158625ef4c199a7ded04e53a
7
+ data.tar.gz: 75516b95f3346a5774ddd5e0067613acad2b83bf055b55e4296c14c03b45202d3a9b0113409fab37e8d78f67e7f9df5becaba878b713cfd49bef05889359180e
@@ -132,7 +132,7 @@ module Discordrb::Webhooks
132
132
  def post_multipart(builder, components, wait, thread_id)
133
133
  query = URI.encode_www_form({ wait:, thread_id: }.compact)
134
134
  data = builder.to_multipart_hash
135
- data[:components] = components.to_a if components&.any?
135
+ data[:components] = components.to_a if components&.to_a&.any?
136
136
  RestClient.post(@url + (query.empty? ? '' : "?#{query}"), data.compact)
137
137
  end
138
138
 
@@ -4,6 +4,6 @@
4
4
  module Discordrb
5
5
  module Webhooks
6
6
  # The current version of discordrb-webhooks.
7
- VERSION = '3.7.0'
7
+ VERSION = '3.7.1'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discordrb-webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - meew0