rails-autoscale-sidekiq 1.5.3 → 1.6.0

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
2
  SHA256:
3
- metadata.gz: 6bc9dfced27f624031460c209644ab7ffe8c45a92c600c7f13bee3539747905b
4
- data.tar.gz: 65ad440095c9faad55dd30771599edb24bced5e31d5b4dfd62ba7128830d1984
3
+ metadata.gz: de4c94089dcabd93f0d1341e28d6dd1ad45636e9ae780206d633711a04e20e0d
4
+ data.tar.gz: 480adb5d3fbc2b7317ba7b5de847304f6ac40dcf1047db96049dc2c3c78b5808
5
5
  SHA512:
6
- metadata.gz: 28c65a27173f0ec4c1a27bea832926a60d32e3799af7dc8d880501e120c52192b2cb6d500550927afa9709751c5e740419c576e3e236dfcf32fd9f90aa410fca
7
- data.tar.gz: 3cfdb1e692c4f8c2693b0ff404531d27e34d14e8dce38f81ae149acf145e6da109a701945f58fc896a01f6fa94db20c16e873c54fdf29f29f504a956d9c670bf
6
+ metadata.gz: 0f1780c9be24fc0cd4839dda34968e5929dea8260b8211cf7ae829f2e561c29f4a88a5e877efe3f7150fbf2fbf89e588851f4c373ec08e20203653245f1eb8fc
7
+ data.tar.gz: b1dec0415b7c1b584696465c4ebeea5bbb699a816d5a9a619f00a7ab4ff8c49467a5aaeebad2b0534b63a8edfe0e601ff1ed24b49db26ebfa92cc9e109d5daf6
data/Gemfile-sidekiq-5 CHANGED
@@ -5,5 +5,4 @@ gemspec name: "judoscale-sidekiq"
5
5
  gem "judoscale-ruby", path: "../judoscale-ruby"
6
6
  gem "sidekiq", "~> 5.0"
7
7
  gem "minitest"
8
- gem "minitest-stub-const"
9
8
  gem "rake"
data/Gemfile-sidekiq-6 ADDED
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec name: "judoscale-sidekiq"
4
+
5
+ gem "judoscale-ruby", path: "../judoscale-ruby"
6
+ gem "sidekiq", "~> 6.0"
7
+ gem "minitest"
8
+ gem "rake"
@@ -21,7 +21,9 @@ module Judoscale
21
21
  if track_busy_jobs?
22
22
  busy_counts = Hash.new { |h, k| h[k] = 0 }
23
23
  ::Sidekiq::Workers.new.each do |pid, tid, work|
24
- payload = work["payload"]
24
+ # Sidekiq 7.2 added a new Sidekiq::Work type; hash access is deprecated
25
+ payload = work.payload if work.respond_to?(:payload)
26
+ payload ||= work["payload"]
25
27
  # payload is unparsed in Sidekiq 7
26
28
  payload = JSON.parse(payload) if payload.is_a?(String)
27
29
  busy_counts[payload["queue"]] += 1
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Judoscale
4
4
  module Sidekiq
5
- VERSION = "1.5.3"
5
+ VERSION = "1.6.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-autoscale-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam McCrea
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-01-25 00:00:00.000000000 Z
13
+ date: 2024-04-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails-autoscale-core
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.5.3
21
+ version: 1.6.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.5.3
28
+ version: 1.6.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sidekiq
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -49,6 +49,7 @@ extra_rdoc_files: []
49
49
  files:
50
50
  - Gemfile
51
51
  - Gemfile-sidekiq-5
52
+ - Gemfile-sidekiq-6
52
53
  - Rakefile
53
54
  - judoscale-sidekiq.gemspec
54
55
  - lib/judoscale-sidekiq.rb