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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9959aab6bcf40022aefc0b4539e10af3c49677c3
4
- data.tar.gz: d1d4dc677754ad37e2659c481e6edc49810d0196
3
+ metadata.gz: c1ccc505db12747f85ffef4bc07f116c292d6902
4
+ data.tar.gz: 72eccd7560db30dd67d9c06a1e590657dc351743
5
5
  SHA512:
6
- metadata.gz: a694d7561e02396065fd70f1c9a369c4428a56bb69466e2dea3ff40ce271de6a71d27da1ed12dc644631410b1e1329a731573eabfac9d964cf90cea3d7b3c411
7
- data.tar.gz: ee1dd036a745350c3f7158ef249d58f080f63af52276167093964b490c03fb357c3daec5c2b9e0591ac9de3b0806942de512d56584d00628619777c6fbd6895d
6
+ metadata.gz: 7bd8cfc8ca48628a9bbf78bab6c2362f27089169362c34c8965f7e39411b88dbda1e907f8500332db1d897ce6da1d40fcf069745e8a835ddef00cbe0e96798f0
7
+ data.tar.gz: 8f3efc2adb463143c0a73b6e149ceb2b04be45fe1ae84848a840e992c5be3c044cb488e3622cae527e1f7c5adf1c20647aa6becb9d3f2d64b16671ca2397250d
data/README.md CHANGED
@@ -13,7 +13,7 @@ Use AWS SQS/SNS as event worker for Microservices.
13
13
  Add this line to your application's Gemfile:
14
14
 
15
15
  ```ruby
16
- gem 'rising_dragon', '>= 0.3.2'
16
+ gem 'rising_dragon', '>= 0.3.3'
17
17
  ```
18
18
 
19
19
  And then execute:
@@ -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: "default_group" }.merge(opt)
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[:shoryuken_group], 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[:concurrency] || 25
20
+ concurrency = option["concurrency"] || 25
21
21
  Shoryuken.add_group(group_name, concurrency)
22
22
 
23
- weight = option[:weight] || 1
23
+ weight = option["weight"] || 1
24
24
  Shoryuken.add_queue(sqs_queue_name, weight, group_name)
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module RisingDragon
2
- VERSION = "0.3.2".freeze
2
+ VERSION = "0.3.3".freeze
3
3
  end
@@ -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.2
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-07-27 00:00:00.000000000 Z
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: '3.1'
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: '3.1'
26
+ version: 3.1.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement