rising_dragon 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rising_dragon/sqs/worker.rb +4 -4
- data/lib/rising_dragon/version.rb +1 -1
- data/rising_dragon.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1ccc505db12747f85ffef4bc07f116c292d6902
|
4
|
+
data.tar.gz: 72eccd7560db30dd67d9c06a1e590657dc351743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bd8cfc8ca48628a9bbf78bab6c2362f27089169362c34c8965f7e39411b88dbda1e907f8500332db1d897ce6da1d40fcf069745e8a835ddef00cbe0e96798f0
|
7
|
+
data.tar.gz: 8f3efc2adb463143c0a73b6e149ceb2b04be45fe1ae84848a840e992c5be3c044cb488e3622cae527e1f7c5adf1c20647aa6becb9d3f2d64b16671ca2397250d
|
data/README.md
CHANGED
@@ -10,17 +10,17 @@ module RisingDragon
|
|
10
10
|
|
11
11
|
module ClassMethods
|
12
12
|
def rising_dragon_options(sqs_queue_name, opt = {})
|
13
|
-
shoryuken_opt = { queue: sqs_queue_name, body_parser: :json, auto_delete: true, shoryuken_group: "
|
13
|
+
shoryuken_opt = { queue: sqs_queue_name, body_parser: :json, auto_delete: true, shoryuken_group: "default" }.merge(opt)
|
14
14
|
shoryuken_options(shoryuken_opt)
|
15
15
|
|
16
|
-
register_queue(sqs_queue_name, shoryuken_opt[
|
16
|
+
register_queue(sqs_queue_name, shoryuken_opt["shoryuken_group"], opt) # shoryuken_options will change hash key.... :(
|
17
17
|
end
|
18
18
|
|
19
19
|
def register_queue(sqs_queue_name, group_name, option)
|
20
|
-
concurrency = option[
|
20
|
+
concurrency = option["concurrency"] || 25
|
21
21
|
Shoryuken.add_group(group_name, concurrency)
|
22
22
|
|
23
|
-
weight = option[
|
23
|
+
weight = option["weight"] || 1
|
24
24
|
Shoryuken.add_queue(sqs_queue_name, weight, group_name)
|
25
25
|
end
|
26
26
|
|
data/rising_dragon.gemspec
CHANGED
@@ -29,7 +29,7 @@ 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 "shoryuken", "~> 3.1"
|
32
|
+
spec.add_dependency "shoryuken", "~> 3.1.7"
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", "~> 1.14"
|
35
35
|
spec.add_development_dependency "rake", "~> 12.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rising_dragon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ota42y
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoryuken
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.1.7
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.1.7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|