shoryuken 6.1.0 → 6.1.1

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: ba3ab903a9490d367ced7d0d70cb3f3aae142abc17dc466f2248b64ee5566773
4
- data.tar.gz: e3f84b09a3e3a888ba280ade138fc8b9c902a0d39d27188ac6e6576a19a6e482
3
+ metadata.gz: feeefb6a4aad595df6286c02928284e9403b0f0a81ba188f3fe399138dd8e32c
4
+ data.tar.gz: a6dde4ed4a888f005580202bfd416fe2a41610fbc3c666efb31210cc2e831487
5
5
  SHA512:
6
- metadata.gz: 7273ea2e72c35dd4c443d3376da6e787e0c3c86ee4a048700a73391e662c631e0509bd22bf7cf7016d2bfe9cf35273706037b3621fc4cd5c6c2b19c7a39bb727
7
- data.tar.gz: d08532edb206f643cf3fec6ff197efc84768871f90a7ef185ebc1030f5027b8dd333642036a601e8884225a750cd4666bfbc349cb7f2a576a0f2e8fc9d0ece48
6
+ metadata.gz: 39df6a6ff9f262e7e9337487d484433c2182b8c71eb6401bdf7e0798505993a8b1a80af00f034eccf3718fafc0ca616c83cf8c5937eebbf73333ea52578077aa
7
+ data.tar.gz: 0bec3c731f75b848a6b7ddcc8eaba03331f71e2eb98687c9955ff9fc9b83196044771d182d07bb470d4a7b16070c7d06fe988561955942c740dd0eb89b4d4356
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [v6.1.1] - 2023-11-27
2
+
3
+ - Fix SQS API Changes causing nil returns instead of empty arrays
4
+ - [#754](https://github.com/ruby-shoryuken/shoryuken/pull/754)
5
+ - [#753](https://github.com/ruby-shoryuken/shoryuken/pull/753)
6
+
1
7
  ## [v6.1.0] - 2023-11-01
2
8
 
3
9
  - Add GitHub Codespaces
data/Gemfile CHANGED
@@ -6,7 +6,10 @@ gemspec
6
6
  group :test do
7
7
  gem 'activejob'
8
8
  gem 'aws-sdk-core', '~> 3'
9
- gem 'aws-sdk-sqs'
9
+ # Pin to 1.65.0 because of below issues:
10
+ # - https://github.com/ruby-shoryuken/shoryuken/pull/753#issuecomment-1822720647
11
+ # - https://github.com/getmoto/moto/issues/7054
12
+ gem 'aws-sdk-sqs', '1.65.0'
10
13
  gem 'codeclimate-test-reporter', require: nil
11
14
  gem 'httparty'
12
15
  gem 'multi_xml'
data/bin/cli/sqs.rb CHANGED
@@ -117,7 +117,7 @@ module Shoryuken
117
117
  max_number_of_messages: batch_size,
118
118
  attribute_names: ['All'],
119
119
  message_attribute_names: ['All']
120
- ).messages
120
+ ).messages || []
121
121
 
122
122
  messages.each { |m| yield m }
123
123
 
@@ -21,9 +21,10 @@ module Shoryuken
21
21
  end
22
22
 
23
23
  def delete_messages(options)
24
- client.delete_message_batch(
24
+ failed_messages = client.delete_message_batch(
25
25
  options.merge(queue_url: url)
26
- ).failed.any? do |failure|
26
+ ).failed || []
27
+ failed_messages.any? do |failure|
27
28
  logger.error do
28
29
  "Could not delete #{failure.id}, code: '#{failure.code}', message: '#{failure.message}', sender_fault: #{failure.sender_fault}"
29
30
  end
@@ -43,7 +44,8 @@ module Shoryuken
43
44
  end
44
45
 
45
46
  def receive_messages(options)
46
- client.receive_message(options.merge(queue_url: url)).messages.map { |m| Message.new(client, self, m) }
47
+ messages = client.receive_message(options.merge(queue_url: url)).messages || []
48
+ messages.map { |m| Message.new(client, self, m) }
47
49
  end
48
50
 
49
51
  def fifo?
@@ -1,3 +1,3 @@
1
1
  module Shoryuken
2
- VERSION = '6.1.0'.freeze
2
+ VERSION = '6.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoryuken
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Cantero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-01 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv