shoryuken 5.1.0 → 5.1.1

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
  SHA256:
3
- metadata.gz: 313fe407e7c7715e8a83bd3fcef713cb5755d31e9d94345fe26157c823f4b156
4
- data.tar.gz: 53890b5dc5dcf0d12fd5153b459d9cb317dace747d95516f754bd320be7eb105
3
+ metadata.gz: 0d08b7287c9dcb2c488715f1313e11d9a9645c068d90fc160c76dbc57ff5d795
4
+ data.tar.gz: 1e6009538535c438a02267e948d5f3eacaedf4aa1283950733bfc51972dcf872
5
5
  SHA512:
6
- metadata.gz: b349de0985d3beac244ed9f1b8886c7b71e18a810936d1cf1e89baddff507ee5b83af100a598653976ba8e337f0e8ad25f3db6b178b6bbd544e9696772b63160
7
- data.tar.gz: 92ef7d6d5648485c1556225a81e6808d6ba127342e3edcb93cacb10e4f1070077f40f6b5ec3b9a1809226e092eb99c2710c2d238c4f16ea3072455f83c2eb643
6
+ metadata.gz: dfc89030844c19828865a6495a4dcf4ef8e46f361303c4c906a0f1d56b2e9fdc46baebcd9eb6ee826a65a173dde4ed2d1a2e1ebc8dae64a8ed131fc5ebe65f13
7
+ data.tar.gz: af2ac18ce6d1445fd261344220b72271d78e10c4034bf565c782d4baad44f946459348342b1fbcbaa75fbe8984ef2655aad78cad2a7128feee5603466fc736d5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [v5.1.1] - 2021-02-10
2
+
3
+ - Fix regression in Ruby 3.0 introduced in Shoryuken 5.1.0, where enqueueing jobs with ActiveJob to workers that used keyword arguments would fail
4
+ - [#654](https://github.com/phstc/shoryuken/pull/654)
5
+
1
6
  ## [v5.1.0] - 2021-02-06
2
7
 
3
8
  - Add support for specifying SQS SendMessage parameters with ActiveJob `.set`
@@ -19,6 +19,7 @@ module Shoryuken
19
19
  super(*arguments)
20
20
  self.sqs_send_message_parameters = {}
21
21
  end
22
+ ruby2_keywords(:initialize) if respond_to?(:ruby2_keywords, true)
22
23
 
23
24
  def enqueue(options = {})
24
25
  sqs_options = options.extract! :message_attributes,
@@ -1,3 +1,3 @@
1
1
  module Shoryuken
2
- VERSION = '5.1.0'.freeze
2
+ VERSION = '5.1.1'.freeze
3
3
  end
@@ -17,6 +17,17 @@ RSpec.describe ActiveJob::Base do
17
17
  Object.send :remove_const, :MyWorker
18
18
  end
19
19
 
20
+ describe '#perform_now' do
21
+ it 'allows keyward args' do
22
+ collaborator = double 'worker collaborator'
23
+ subject.send(:define_method, :perform) do |**kwargs|
24
+ collaborator.foo(**kwargs)
25
+ end
26
+ expect(collaborator).to receive(:foo).with(foo: 'bar')
27
+ subject.perform_now foo: 'bar'
28
+ end
29
+ end
30
+
20
31
  describe '#perform_later' do
21
32
  it 'calls enqueue on the adapter with the expected job' do
22
33
  expect(queue_adapter).to receive(:enqueue) do |job|
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.1.0
4
+ version: 5.1.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: 2021-02-07 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv