rails-autoscale-sidekiq 1.5.2 → 1.5.4

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: a64b2f13e74328bd91722cb55b28646a6eba51338b53111f6f40b8fc0e08c2ba
4
- data.tar.gz: d65e1d010c11af84ba7cdd6045c5efdbe740844a8cdf136c1f6a814e1ef67e2f
3
+ metadata.gz: 79939236af24b5c04fb9f222bcb1a5f3efe0ad5832f1fd0ded93d663db5dd564
4
+ data.tar.gz: beebbab82136f26e239e911f7d2e95856ab9e90782abc0d81cf49434c0b710bb
5
5
  SHA512:
6
- metadata.gz: 418df30c3f3d832e093f1ecb29757b5df5c7ce9966397dc38a1d818d888faa4f7388166312794ac1777c5e690a769311ef5bdee2aa57812fd4682b487398b95c
7
- data.tar.gz: 5507a57ab6e667efdfc02f47f2095a6a33a122e2216e9849feb3f2b8aa7c703493899898dc1f49109a0f98d54ca2f1900d3f18fef47165d0fec57b23f83f14d9
6
+ metadata.gz: e51305f4016696483362aaee86d019bb9dc7d3f148cc4e522b7601edda38f2c74a41f9213455ac1b6c16a0bfa2880df6ecd0774ba62fa03fc2d27d4c92f4c3f8
7
+ data.tar.gz: 20943ae878cecd01c0a1e5d5edd9807a48cdb857fa1c902cdc65417700f819bde9e9d3fcbfaf37c6cbd6d2483c9f0596d5704ce8a75c2c55b761716ec92f7407
data/Rakefile CHANGED
@@ -3,9 +3,13 @@
3
3
  require "rake/testtask"
4
4
 
5
5
  Rake::TestTask.new(:test) do |t|
6
- t.libs << "lib"
7
- t.libs << "test"
8
- t.test_files = FileList["test/**/*_test.rb"]
6
+ t.libs = %w[lib test]
7
+ t.pattern = "test/**/*_test.rb"
8
+ end
9
+
10
+ Rake::TestTask.new(:bench) do |t|
11
+ t.libs = %w[lib test]
12
+ t.pattern = "test/benchmarks/**/*_benchmark.rb"
9
13
  end
10
14
 
11
15
  task default: :test
@@ -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.2"
5
+ VERSION = "1.5.4"
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.2
4
+ version: 1.5.4
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: 2023-08-10 00:00:00.000000000 Z
13
+ date: 2024-02-07 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.2
21
+ version: 1.5.4
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.2
28
+ version: 1.5.4
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sidekiq
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -49,7 +49,6 @@ extra_rdoc_files: []
49
49
  files:
50
50
  - Gemfile
51
51
  - Gemfile-sidekiq-5
52
- - Gemfile.lock
53
52
  - Rakefile
54
53
  - judoscale-sidekiq.gemspec
55
54
  - lib/judoscale-sidekiq.rb
data/Gemfile.lock DELETED
@@ -1,53 +0,0 @@
1
- PATH
2
- remote: ../judoscale-ruby
3
- specs:
4
- judoscale-ruby (1.5.2)
5
-
6
- PATH
7
- remote: .
8
- specs:
9
- judoscale-sidekiq (1.5.2)
10
- judoscale-ruby (= 1.5.2)
11
- sidekiq (>= 5.0)
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- specs:
16
- concurrent-ruby (1.2.0)
17
- connection_pool (2.3.0)
18
- debug (1.7.1)
19
- irb (>= 1.5.0)
20
- reline (>= 0.3.1)
21
- io-console (0.6.0)
22
- irb (1.6.2)
23
- reline (>= 0.3.0)
24
- minitest (5.17.0)
25
- rack (3.0.4.1)
26
- rake (13.0.6)
27
- redis-client (0.12.1)
28
- connection_pool
29
- reline (0.3.2)
30
- io-console (~> 0.5)
31
- sidekiq (7.0.3)
32
- concurrent-ruby (< 2)
33
- connection_pool (>= 2.3.0)
34
- rack (>= 2.2.4)
35
- redis-client (>= 0.11.0)
36
-
37
- PLATFORMS
38
- arm64-darwin-20
39
- arm64-darwin-21
40
- arm64-darwin-22
41
- x86_64-darwin-21
42
- x86_64-linux
43
-
44
- DEPENDENCIES
45
- debug
46
- judoscale-ruby!
47
- judoscale-sidekiq!
48
- minitest
49
- rake
50
- sidekiq (~> 7.0)
51
-
52
- BUNDLED WITH
53
- 2.3.9