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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b254982dd524482534d83e296126f9cfe32b35f8
4
- data.tar.gz: 6509d8b5d1b76a252b32c5123a6130f75e52937e
2
+ SHA256:
3
+ metadata.gz: bd8f6c0eadecc5c8a7fec2965c8c7dcc5ed77001ecb001826c54f55e6b5ee7d9
4
+ data.tar.gz: '07948e3fee465026e5c6c7911a8295e9ca1011a3f3b1c3632035bf25dc322f0a'
5
5
  SHA512:
6
- metadata.gz: 3601c612698c399f1918b96bd9cd2e9f8d0b8e158fdd59775a41ad24fe199fd07da6345645b64d22fffb624d32e2568f9483e3d0a5db7ee9a9658f0233d815ae
7
- data.tar.gz: a297dbd6c01b572c2217b4b300ea9c5ec1bdebc349f0d1e462a467a34dd748ade4a25b5465873ad914ba50da3cbd1518886b24568d553713abc71582a5b9e31c
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 = Sidekiq::Job.new(msg)
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
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module History
3
- VERSION = '0.0.11'.freeze
3
+ VERSION = '0.0.12'.freeze
4
4
  end
5
5
  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.11
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: 2019-02-20 00:00:00.000000000 Z
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
- rubyforge_project:
138
- rubygems_version: 2.5.2.1
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: []