hermes_messenger_of_the_gods 3.0.0.rc4 → 3.0.0.rc5

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: b32df338af3c22fa0c32c7bd627ef1532cf717fc71d9ab9d01f0d2b7dbb41e23
4
- data.tar.gz: 7e2f8b3d4a4db443058930b3a7713d241309d381b54250c8048d85a31600d510
3
+ metadata.gz: 198222807509b3910bc1db6d0bbe5819956401176abd8b3f1d13c7163c95c1dd
4
+ data.tar.gz: f476dc6f1ebf9123527890d229d63e1068c1c6487004879550f9dc3a8307643a
5
5
  SHA512:
6
- metadata.gz: 455383e01eb7d5141a25805239677479838be0abbea5bf8e42e9ae25b9835e03c8da6459649891b47604402a26c98a90cc75ae783d7ede5d647a8259ad97fe6a
7
- data.tar.gz: 022aa5ac6c26168d00796cd23eccd8db3221c885c8e203ad0dea6188a64c0d79528191c38a9e99357ccccedb774554afd07eb46751b905c54a065c98128ea03e
6
+ metadata.gz: 1ac7755e67b7c37be401031ea1f8e596d3afe1d26719d7d028964835185d3b2f2fa822bbc7c7dec97f5f411f97b1527397d6d9067e5b718a83eed6f511e74337
7
+ data.tar.gz: ad8a934c454ab879432ebdf2d7f363fcbfb8bcf31f74354064274bcf761c0eba21dca927fa1d085cb57d5f35a11025bec62093ddf5c1401c2753c16585a75432
@@ -71,6 +71,8 @@ module HermesMessengerOfTheGods
71
71
 
72
72
  class_methods do
73
73
  def send_messages(messages, options = {})
74
+ return if messages.empty?
75
+
74
76
  raise ArgumentError, "All messages must be #{self.class}" unless messages.all?{|m| m.is_a?(self) }
75
77
  messages.map(&:validate!)
76
78
  messages.first.endpoint.bulk_dispatch!(messages, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HermesMessengerOfTheGods
4
- VERSION = '3.0.0.rc4'
4
+ VERSION = '3.0.0.rc5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hermes_messenger_of_the_gods
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc4
4
+ version: 3.0.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Malinconico