shoryuken 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce36f4dac1c75e383185df15db196aec57c968dda1a5823b8d944ad4a9675906
4
- data.tar.gz: a460a585e97a6c0a3432f6b28bec254d494900672a06bffbd7461e830a8de0cf
3
+ metadata.gz: 2ba8bef505d23849a92954c00b8e8e60682c884d44e0c23ca3fabbc9a4d5349a
4
+ data.tar.gz: 7171d68f58db484f59b50eb53cb3a674801e690e9f6c394da9a2d7d79d82976a
5
5
  SHA512:
6
- metadata.gz: 833bab295345b25456f617f36e4ec2f2cfd0d823a01ddb87d8f528597ab79b91ce0ae8c67b47ffc2a9d1400f0a5cf62df3125fbdfbb49abd3a5e4a5eb3b7b0ee
7
- data.tar.gz: 91a4355cd9e180f006e8768bde9627c1df9cf0057d294bdfcb422f479de2ef1784aa5b904c7b97dac8ed7bb7b9879bdea56eb4cd00d51ff456d3b4555f88c991
6
+ metadata.gz: 865b059815b1e1462f4df2fb652bce2950b325a40366dc53b4a8c01c5492bfcf5687116ac4bf9e193d8235202117e8a8e7b99c0795ad7ae3c8637622bcd073a2
7
+ data.tar.gz: 40c011460dc37ec522d5924010c1ab4c80f9db646fa835206aae726fc4d9ba05f86c72c98d661166262c63e1fe18ab9d02c4f945594d776fd5498ced1cf36fcc
@@ -1,3 +1,8 @@
1
+ ## [v5.0.1] - 2019-06-19
2
+
3
+ - Add back attr_accessor for `stop_callback`
4
+ - [#571](https://github.com/phstc/shoryuken/pull/571)
5
+
1
6
  ## [v5.0.0] - 2019-06-18
2
7
 
3
8
  - Fix bug where empty queues were not paused in batch processing mode
@@ -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 = {}
@@ -1,3 +1,3 @@
1
1
  module Shoryuken
2
- VERSION = '5.0.0'.freeze
2
+ VERSION = '5.0.1'.freeze
3
3
  end
@@ -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.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-18 00:00:00.000000000 Z
11
+ date: 2019-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv