hermes_messenger_of_the_gods 3.0.0.rc3 → 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: cd5650b206ac5ee874b867a415dc4b1fa35a59df94dd9ee686f6d4a568d0ec18
4
- data.tar.gz: 1095c1beb1db82beafc7eb23818fcba5bca0e65a0511237d796c5b7bc67a2d8c
3
+ metadata.gz: 198222807509b3910bc1db6d0bbe5819956401176abd8b3f1d13c7163c95c1dd
4
+ data.tar.gz: f476dc6f1ebf9123527890d229d63e1068c1c6487004879550f9dc3a8307643a
5
5
  SHA512:
6
- metadata.gz: c09be9e2e461be0406068d22c779d851b1d0858414f0a8273f74fe0cc56839d253ed00c538026a80c6213bf12d05ddc193b071884cd2d944694d5a2ef9bce0fd
7
- data.tar.gz: 68fa8509b6d12e21dadbb46d2bbdcfb2b7dbda972e975de2d34977823ee4e7abfde1403c181022fdbe6ddc44e55d936980bbd4885e7ee114f564c3a2afc4492d
6
+ metadata.gz: 1ac7755e67b7c37be401031ea1f8e596d3afe1d26719d7d028964835185d3b2f2fa822bbc7c7dec97f5f411f97b1527397d6d9067e5b718a83eed6f511e74337
7
+ data.tar.gz: ad8a934c454ab879432ebdf2d7f363fcbfb8bcf31f74354064274bcf761c0eba21dca927fa1d085cb57d5f35a11025bec62093ddf5c1401c2753c16585a75432
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.1.2
@@ -29,8 +29,8 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ['lib']
31
31
 
32
- spec.add_dependency 'activemodel', '> 4.2.3'
33
- spec.add_dependency 'activesupport', '> 4.2.3'
32
+ spec.add_dependency 'activemodel', '~> 7.0'
33
+ spec.add_dependency 'activesupport', '~> 7.0'
34
34
  spec.add_dependency 'aws-sdk-sns', '~> 1.0'
35
35
  spec.add_dependency 'aws-sdk-sqs', '~> 1.0'
36
36
  spec.add_dependency 'rexml'
@@ -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,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_model/validations'
3
+ require 'active_model'
4
4
 
5
5
  module HermesMessengerOfTheGods
6
6
  class ValidationError < ActiveModel::ValidationError; end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HermesMessengerOfTheGods
4
- VERSION = '3.0.0.rc3'
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.rc3
4
+ version: 3.0.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Malinconico
@@ -15,30 +15,30 @@ dependencies:
15
15
  name: activemodel
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">"
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 4.2.3
20
+ version: '7.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">"
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 4.2.3
27
+ version: '7.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: activesupport
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">"
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 4.2.3
34
+ version: '7.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">"
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 4.2.3
41
+ version: '7.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: aws-sdk-sns
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  - !ruby/object:Gem::Version
255
255
  version: 1.3.1
256
256
  requirements: []
257
- rubygems_version: 3.2.22
257
+ rubygems_version: 3.3.7
258
258
  signing_key:
259
259
  specification_version: 4
260
260
  summary: Create and receive messages like a god!