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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +4 -1
- data/bin/cli/sqs.rb +1 -1
- data/lib/shoryuken/queue.rb +5 -3
- data/lib/shoryuken/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feeefb6a4aad595df6286c02928284e9403b0f0a81ba188f3fe399138dd8e32c
|
4
|
+
data.tar.gz: a6dde4ed4a888f005580202bfd416fe2a41610fbc3c666efb31210cc2e831487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
data/lib/shoryuken/queue.rb
CHANGED
@@ -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
|
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
|
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?
|
data/lib/shoryuken/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|