sidekiq 6.3.0 → 6.3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sidekiq might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b72b92d3d281aaea2b4781cb7743d95a8c7f42708526383bf85fbed420b4b82c
4
- data.tar.gz: 9546107658b47c8f68497730e2ee6689881c1388ba96db3f2415b0fda7b7f668
3
+ metadata.gz: 33cb573c76378ff933909bdc009358cc94b81e9e50c17b6dd8160170fe744f25
4
+ data.tar.gz: f13c16da01f5cc0ef9514396aed899c8e1f69049d2d425892d3f5e774d68c6a7
5
5
  SHA512:
6
- metadata.gz: 78f0af1f4ed41c5b4ad01636d9808d409d1cedc0bc6146be278412e87f9d826fad2cec9c89b31acbc6da9bab59bff44e826418991b10ce27b34631bcc3a00cf2
7
- data.tar.gz: a586b9ec613cf3da47ecb77eb4e0f5d6e497f234369d958cdfa3d8c8c7418806383e022a9b08db4c3b5d08a1c2aac3aaecdf851744234f4c42055e1a7a6ebf6c
6
+ metadata.gz: 9829304cbe0810266d2a320b14386561a4f22965aa3f9fab311253c1edd9f3075298dadba28afc0f69f898ed69d858833e744e52db1012a0d23037ecbdf33ce3
7
+ data.tar.gz: b38f253759ab7e3479829faad0e60e42ad2a6281b4dc022c66b0af652c53e85e5d7362bc07ecf02ae3ae3c530e3619572ad070267d2690aa5b4fafc08762d73e
data/Changes.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  [Sidekiq Changes](https://github.com/mperham/sidekiq/blob/main/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/main/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/main/Ent-Changes.md)
4
4
 
5
- HEAD
5
+ 6.3.1
6
+ ---------
7
+
8
+ - Fix keyword arguments error with CurrentAttributes on Ruby 3.0 [#5048]
9
+
10
+ 6.3.0
6
11
  ---------
7
12
 
8
13
  - **BREAK**: The Web UI has been refactored to remove jQuery. Any UI extensions
@@ -15,33 +15,37 @@ module Sidekiq
15
15
  #
16
16
  module CurrentAttributes
17
17
  class Save
18
- def initialize(with:)
19
- @klass = with
18
+ def initialize(cattr)
19
+ @klass = cattr
20
20
  end
21
21
 
22
22
  def call(_, job, _, _)
23
- job["ctx"] = @klass.attributes
23
+ job["cattr"] = @klass.attributes
24
24
  yield
25
25
  end
26
26
  end
27
27
 
28
28
  class Load
29
- def initialize(with:)
30
- @klass = with
29
+ def initialize(cattr)
30
+ @klass = cattr
31
31
  end
32
32
 
33
33
  def call(_, job, _, &block)
34
- @klass.set(job["ctx"], &block)
34
+ if job.has_key?("cattr")
35
+ @klass.set(job["cattr"], &block)
36
+ else
37
+ yield
38
+ end
35
39
  end
36
40
  end
37
41
 
38
42
  def self.persist(klass)
39
43
  Sidekiq.configure_client do |config|
40
- config.client_middleware.add Save, with: klass
44
+ config.client_middleware.add Save, klass
41
45
  end
42
46
  Sidekiq.configure_server do |config|
43
- config.client_middleware.add Save, with: klass
44
- config.server_middleware.add Load, with: klass
47
+ config.client_middleware.add Save, klass
48
+ config.server_middleware.add Load, klass
45
49
  end
46
50
  end
47
51
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sidekiq
4
- VERSION = "6.3.0"
4
+ VERSION = "6.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.0
4
+ version: 6.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-06 00:00:00.000000000 Z
11
+ date: 2021-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis