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 +4 -4
- data/Changes.md +6 -1
- data/lib/sidekiq/middleware/current_attributes.rb +13 -9
- data/lib/sidekiq/version.rb +1 -1
- 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: 33cb573c76378ff933909bdc009358cc94b81e9e50c17b6dd8160170fe744f25
|
4
|
+
data.tar.gz: f13c16da01f5cc0ef9514396aed899c8e1f69049d2d425892d3f5e774d68c6a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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(
|
19
|
-
@klass =
|
18
|
+
def initialize(cattr)
|
19
|
+
@klass = cattr
|
20
20
|
end
|
21
21
|
|
22
22
|
def call(_, job, _, _)
|
23
|
-
job["
|
23
|
+
job["cattr"] = @klass.attributes
|
24
24
|
yield
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
28
|
class Load
|
29
|
-
def initialize(
|
30
|
-
@klass =
|
29
|
+
def initialize(cattr)
|
30
|
+
@klass = cattr
|
31
31
|
end
|
32
32
|
|
33
33
|
def call(_, job, _, &block)
|
34
|
-
|
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,
|
44
|
+
config.client_middleware.add Save, klass
|
41
45
|
end
|
42
46
|
Sidekiq.configure_server do |config|
|
43
|
-
config.client_middleware.add Save,
|
44
|
-
config.server_middleware.add Load,
|
47
|
+
config.client_middleware.add Save, klass
|
48
|
+
config.server_middleware.add Load, klass
|
45
49
|
end
|
46
50
|
end
|
47
51
|
end
|
data/lib/sidekiq/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|