sidekiq-history 0.0.10 → 0.0.13

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: e960876faa26b6bc5144bf2651c229e9863f4c01
4
- data.tar.gz: 41f8495091e1fa008ff9f19cf4165c0939544e3b
2
+ SHA256:
3
+ metadata.gz: 85c133e8ace68f1c2e531a3da68ac485748ab39bbc5318fe5545de83506cd142
4
+ data.tar.gz: b95fa6fce1c361fdf01a850ee982622e5e388e96c92de03f1bbfd7d858f14fa4
5
5
  SHA512:
6
- metadata.gz: de904b6ec8eae8dc5416d00c09c07af70eb0e5288a15f05c0d5a6020d8e1522f967b0587566b8fde41d2ae8d65fc9c13616b76c86ef3ee22163fd241a24a5d61
7
- data.tar.gz: 87d356426ec6ab4025880a983d0d02c6dd501914f9e103a560710da04588eff2f9fbfc11866fd6a66ed6ae4db2874063c4e84ea7a311449fe404d816187ef155
6
+ metadata.gz: a029e21aed70b4fb114348a198625662841b6e27ae77ca10f0011b5cac21cec09c70dd146233de05438b0bc22fd69b58ae5d733cac488d15f17d68b9b9ade88b
7
+ data.tar.gz: 7889ff8d064889abfdf523b4a51d0feb7cb6dcb042060f57416dd2019271e9ae253ae9c82836e957e1db54043a405a66d2b9b23bc7f09ad85a4a6d6ff9f2939f
data/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  A really simple addition to sidekiq web to enable a job history log.
4
4
 
5
+ # Maintainers Wanted
6
+ This project is looking for maintainers. I don't use Ruby primarily anymore and don't interact with this code much.
7
+
5
8
  ## Installation
6
9
 
7
10
  Add this line to your application's Gemfile:
@@ -1,9 +1,9 @@
1
- require 'sidekiq/util'
1
+ require 'sidekiq/component'
2
2
 
3
3
  module Sidekiq
4
4
  module History
5
5
  class Middleware
6
- include Sidekiq::Util
6
+ include Sidekiq::Component
7
7
 
8
8
  attr_accessor :msg
9
9
 
@@ -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.10'.freeze
3
+ VERSION = '0.0.13'.freeze
4
4
  end
5
5
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "sidekiq", ">= 3.0.0"
21
+ spec.add_dependency "sidekiq", ">= 6.5.0"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
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.10
4
+ version: 0.0.13
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: 2022-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0
19
+ version: 6.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.0
26
+ version: 6.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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.3.8
138
+ signing_key:
140
139
  specification_version: 4
141
140
  summary: History for sidekiq jobs.
142
141
  test_files: []