shoryuken 5.0.0 → 5.0.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 +5 -0
- data/lib/shoryuken/options.rb +1 -1
- data/lib/shoryuken/version.rb +1 -1
- data/spec/shoryuken/options_spec.rb +18 -0
- 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: 2ba8bef505d23849a92954c00b8e8e60682c884d44e0c23ca3fabbc9a4d5349a
|
4
|
+
data.tar.gz: 7171d68f58db484f59b50eb53cb3a674801e690e9f6c394da9a2d7d79d82976a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 865b059815b1e1462f4df2fb652bce2950b325a40366dc53b4a8c01c5492bfcf5687116ac4bf9e193d8235202117e8a8e7b99c0795ad7ae3c8637622bcd073a2
|
7
|
+
data.tar.gz: 40c011460dc37ec522d5924010c1ab4c80f9db646fa835206aae726fc4d9ba05f86c72c98d661166262c63e1fe18ab9d02c4f945594d776fd5498ced1cf36fcc
|
data/CHANGELOG.md
CHANGED
data/lib/shoryuken/options.rb
CHANGED
@@ -16,7 +16,7 @@ module Shoryuken
|
|
16
16
|
|
17
17
|
attr_accessor :active_job_queue_name_prefixing, :cache_visibility_timeout, :default_worker_options, :groups,
|
18
18
|
:launcher_executor, :sqs_client, :sqs_client_receive_message_opts,
|
19
|
-
:start_callback, :worker_executor, :worker_registry
|
19
|
+
:start_callback, :stop_callback, :worker_executor, :worker_registry
|
20
20
|
|
21
21
|
def initialize
|
22
22
|
self.groups = {}
|
data/lib/shoryuken/version.rb
CHANGED
@@ -3,6 +3,24 @@ require 'spec_helper'
|
|
3
3
|
RSpec.describe Shoryuken::Options do
|
4
4
|
subject { Shoryuken.shoryuken_options }
|
5
5
|
|
6
|
+
describe '.on_stop' do
|
7
|
+
specify do
|
8
|
+
on_stop = Proc.new {}
|
9
|
+
Shoryuken.on_stop(&on_stop)
|
10
|
+
|
11
|
+
expect(Shoryuken.stop_callback).to eq(on_stop)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe '.on_start' do
|
16
|
+
specify do
|
17
|
+
on_start = Proc.new {}
|
18
|
+
Shoryuken.on_start(&on_start)
|
19
|
+
|
20
|
+
expect(Shoryuken.start_callback).to eq(on_start)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
6
24
|
describe '.add_group adds queues and optional delay' do
|
7
25
|
before do
|
8
26
|
Shoryuken.groups.clear
|
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.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: 2019-06-
|
11
|
+
date: 2019-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|