shoryuken 5.0.3 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/bin/cli/sqs.rb +9 -1
- data/lib/shoryuken/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9793af33c7faa6fed94f9ba3c4d195de11fbb2bac9147740cec68f3f0a9b60b0
|
4
|
+
data.tar.gz: ba16095e67066c94e72fb9472d1f34d238bfbde6c1a77797f36c683426abb41e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80108514d02ec16533f76b172df6f5d350dcd1b3d4253bda633ebbc4fc84398e3d5073e8d47f155a2b9f42da69b008b1650f48c612759314807bc9e9d0488c2c
|
7
|
+
data.tar.gz: de622970e9b943f26933934de1784d99c0f788607f7b9ae8d183601a55dba61b514d0d9b0813b09590de35bb74a985d62a5b891834a18f4319e6b740e62c9517
|
data/CHANGELOG.md
CHANGED
data/bin/cli/sqs.rb
CHANGED
@@ -5,6 +5,7 @@ module Shoryuken
|
|
5
5
|
module CLI
|
6
6
|
class SQS < Base
|
7
7
|
namespace :sqs
|
8
|
+
class_option :endpoint, aliases: '-e', type: :string, default: ENV['SHORYUKEN_SQS_ENDPOINT'], desc: 'Endpoint URL'
|
8
9
|
|
9
10
|
no_commands do
|
10
11
|
def normalize_dump_message(message)
|
@@ -19,8 +20,15 @@ module Shoryuken
|
|
19
20
|
}
|
20
21
|
end
|
21
22
|
|
23
|
+
def client_options
|
24
|
+
endpoint = options[:endpoint]
|
25
|
+
{}.tap do |hash|
|
26
|
+
hash[:endpoint] = endpoint unless endpoint.to_s.empty?
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
22
30
|
def sqs
|
23
|
-
@_sqs ||= Aws::SQS::Client.new
|
31
|
+
@_sqs ||= Aws::SQS::Client.new(client_options)
|
24
32
|
end
|
25
33
|
|
26
34
|
def find_queue_url(queue_name)
|
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: 5.0.
|
4
|
+
version: 5.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Cantero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -217,8 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
- !ruby/object:Gem::Version
|
218
218
|
version: '0'
|
219
219
|
requirements: []
|
220
|
-
|
221
|
-
rubygems_version: 2.7.6
|
220
|
+
rubygems_version: 3.1.2
|
222
221
|
signing_key:
|
223
222
|
specification_version: 4
|
224
223
|
summary: Shoryuken is a super efficient AWS SQS thread based message processor
|