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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 198222807509b3910bc1db6d0bbe5819956401176abd8b3f1d13c7163c95c1dd
|
4
|
+
data.tar.gz: f476dc6f1ebf9123527890d229d63e1068c1c6487004879550f9dc3a8307643a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|