sidekiq-history 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/sidekiq/history/middleware.rb +14 -1
- data/lib/sidekiq/history/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bd8f6c0eadecc5c8a7fec2965c8c7dcc5ed77001ecb001826c54f55e6b5ee7d9
|
4
|
+
data.tar.gz: '07948e3fee465026e5c6c7911a8295e9ca1011a3f3b1c3632035bf25dc322f0a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a81a0af3f303235ae0ac1ccdd7c79cb79e4c8c79f58fbd8f1df674388362831ee0eefaf4514268852b611d659288ad1aeb7b29bd7d32c89c3021e7aa80d7ad9
|
7
|
+
data.tar.gz: 62ba0f62a8a1298257be3aee3055de59453b7d4e2b5cab9d4941ffee2d390dea22f8b7696d45abae962922319e2e8608054939347bd087893d9b9677ec39c717
|
@@ -11,7 +11,7 @@ module Sidekiq
|
|
11
11
|
self.msg = msg
|
12
12
|
|
13
13
|
# Use the Sidekiq API to unwrap the job
|
14
|
-
job =
|
14
|
+
job = sidekiq_job_class.new(msg)
|
15
15
|
job_class = job.display_class
|
16
16
|
|
17
17
|
# Setup a unwraped copy of the bare job data
|
@@ -68,6 +68,19 @@ module Sidekiq
|
|
68
68
|
|
69
69
|
true
|
70
70
|
end
|
71
|
+
|
72
|
+
def sidekiq_job_class
|
73
|
+
@sidekiq_job_class ||= begin
|
74
|
+
actual = Gem.loaded_specs['sidekiq'].version
|
75
|
+
if Gem::Dependency.new('', '>= 6.2.2').match?('', actual)
|
76
|
+
# Renamed internal API class Sidekiq::Job to Sidekiq::JobRecord,
|
77
|
+
# since 6.2.2. See: https://bit.ly/3gtxViK
|
78
|
+
Sidekiq::JobRecord
|
79
|
+
else
|
80
|
+
Sidekiq::Job
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
71
84
|
end
|
72
85
|
end
|
73
86
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-history
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russ Smith
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -119,7 +119,7 @@ homepage: ''
|
|
119
119
|
licenses:
|
120
120
|
- MIT
|
121
121
|
metadata: {}
|
122
|
-
post_install_message:
|
122
|
+
post_install_message:
|
123
123
|
rdoc_options: []
|
124
124
|
require_paths:
|
125
125
|
- lib
|
@@ -134,9 +134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
|
-
|
138
|
-
|
139
|
-
signing_key:
|
137
|
+
rubygems_version: 3.0.6
|
138
|
+
signing_key:
|
140
139
|
specification_version: 4
|
141
140
|
summary: History for sidekiq jobs.
|
142
141
|
test_files: []
|