rails-autoscale-sidekiq 1.1.1 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -2
- data/Gemfile-sidekiq-5 +3 -2
- data/Gemfile.lock +9 -6
- data/Rakefile +1 -1
- data/judoscale-sidekiq.gemspec +30 -0
- data/lib/{rails_autoscale → judoscale}/sidekiq/metrics_collector.rb +5 -5
- data/lib/{rails_autoscale → judoscale}/sidekiq/version.rb +2 -2
- data/lib/judoscale/sidekiq.rb +15 -0
- data/lib/judoscale-sidekiq.rb +3 -0
- data/rails-autoscale-sidekiq.gemspec +10 -10
- metadata +16 -15
- data/lib/rails-autoscale-sidekiq.rb +0 -3
- data/lib/rails_autoscale/sidekiq.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f03a9d4e15d94b3512f570d2831b07158d7513edb1aef1f1f6e9591947481ab
|
4
|
+
data.tar.gz: f8b6ac6c8923b46a8e9f4d5a3b511798a21a0633552e9aa041d2eff385802eb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a199e5122ea03ecca8cb06146e6b691ccc0c7b9afa8e5637509e19dd6c440b7715936715558bc34eed865850bf69e981b375eb71e6da75cdb0719bcd629d83c
|
7
|
+
data.tar.gz: 50eec05653c48bd455a8ddac3f977983520ace2d1fad85b37af16cd2f1a58ce3c58e2375df2a276e654b8b80859fb45d019762c2f7b32738a486449e5a954b3a
|
data/Gemfile
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
gemspec
|
3
|
+
gemspec name: "judoscale-sidekiq"
|
4
4
|
|
5
|
-
gem "
|
5
|
+
gem "judoscale-ruby", path: "../judoscale-ruby"
|
6
6
|
gem "sidekiq", "~> 7.0"
|
7
7
|
gem "minitest"
|
8
8
|
gem "rake"
|
9
|
+
gem "rake-release"
|
9
10
|
gem "debug"
|
data/Gemfile-sidekiq-5
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
gemspec
|
3
|
+
gemspec name: "judoscale-sidekiq"
|
4
4
|
|
5
|
-
gem "
|
5
|
+
gem "judoscale-ruby", path: "../judoscale-ruby"
|
6
6
|
gem "sidekiq", "~> 5.0"
|
7
7
|
gem "minitest"
|
8
8
|
gem "rake"
|
9
|
+
gem "rake-release"
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
|
-
remote: ../
|
2
|
+
remote: ../judoscale-ruby
|
3
3
|
specs:
|
4
|
-
|
4
|
+
judoscale-ruby (1.2.1)
|
5
5
|
|
6
6
|
PATH
|
7
7
|
remote: .
|
8
8
|
specs:
|
9
|
-
|
10
|
-
|
9
|
+
judoscale-sidekiq (1.2.1)
|
10
|
+
judoscale-ruby
|
11
11
|
sidekiq (>= 5.0)
|
12
12
|
|
13
13
|
GEM
|
@@ -24,6 +24,8 @@ GEM
|
|
24
24
|
minitest (5.15.0)
|
25
25
|
rack (3.0.0)
|
26
26
|
rake (13.0.6)
|
27
|
+
rake-release (1.3.0)
|
28
|
+
bundler (>= 1.11, < 3)
|
27
29
|
redis-client (0.11.1)
|
28
30
|
connection_pool
|
29
31
|
reline (0.3.1)
|
@@ -42,10 +44,11 @@ PLATFORMS
|
|
42
44
|
|
43
45
|
DEPENDENCIES
|
44
46
|
debug
|
47
|
+
judoscale-ruby!
|
48
|
+
judoscale-sidekiq!
|
45
49
|
minitest
|
46
|
-
rails-autoscale-core!
|
47
|
-
rails-autoscale-sidekiq!
|
48
50
|
rake
|
51
|
+
rake-release
|
49
52
|
sidekiq (~> 7.0)
|
50
53
|
|
51
54
|
BUNDLED WITH
|
data/Rakefile
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "judoscale/sidekiq/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "judoscale-sidekiq"
|
7
|
+
spec.version = Judoscale::Sidekiq::VERSION
|
8
|
+
spec.authors = ["Adam McCrea", "Carlos Antonio da Silva"]
|
9
|
+
spec.email = ["adam@adamlogic.com"]
|
10
|
+
|
11
|
+
spec.summary = "This gem provides Sidekiq integration with the Judoscale autoscaling add-on for Heroku."
|
12
|
+
spec.homepage = "https://judoscale.com"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.metadata = {
|
16
|
+
"homepage_uri" => "https://judoscale.com",
|
17
|
+
"bug_tracker_uri" => "https://github.com/judoscale/judoscale-ruby/issues",
|
18
|
+
"documentation_uri" => "https://judoscale.com/docs",
|
19
|
+
"changelog_uri" => "https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md",
|
20
|
+
"source_code_uri" => "https://github.com/judoscale/judoscale-ruby"
|
21
|
+
}
|
22
|
+
|
23
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.required_ruby_version = ">= 2.6.0"
|
27
|
+
|
28
|
+
spec.add_dependency "judoscale-ruby"
|
29
|
+
spec.add_dependency "sidekiq", ">= 5.0"
|
30
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
4
|
-
require "
|
3
|
+
require "judoscale/job_metrics_collector"
|
4
|
+
require "judoscale/metric"
|
5
5
|
|
6
|
-
module
|
6
|
+
module Judoscale
|
7
7
|
module Sidekiq
|
8
|
-
class MetricsCollector <
|
8
|
+
class MetricsCollector < Judoscale::JobMetricsCollector
|
9
9
|
def self.adapter_config
|
10
|
-
|
10
|
+
Judoscale::Config.instance.sidekiq
|
11
11
|
end
|
12
12
|
|
13
13
|
def collect
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "judoscale-ruby"
|
4
|
+
require "judoscale/config"
|
5
|
+
require "judoscale/sidekiq/version"
|
6
|
+
require "judoscale/sidekiq/metrics_collector"
|
7
|
+
require "sidekiq/api"
|
8
|
+
|
9
|
+
Judoscale.add_adapter :"judoscale-sidekiq",
|
10
|
+
{
|
11
|
+
adapter_version: Judoscale::Sidekiq::VERSION,
|
12
|
+
framework_version: ::Sidekiq::VERSION
|
13
|
+
},
|
14
|
+
metrics_collector: Judoscale::Sidekiq::MetricsCollector,
|
15
|
+
expose_config: Judoscale::Config::JobAdapterConfig.new(:sidekiq)
|
@@ -1,23 +1,23 @@
|
|
1
1
|
lib = File.expand_path("../lib", __FILE__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "
|
3
|
+
require "judoscale/sidekiq/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rails-autoscale-sidekiq"
|
7
|
-
spec.version =
|
7
|
+
spec.version = Judoscale::Sidekiq::VERSION
|
8
8
|
spec.authors = ["Adam McCrea", "Carlos Antonio da Silva"]
|
9
9
|
spec.email = ["adam@adamlogic.com"]
|
10
10
|
|
11
|
-
spec.summary = "This gem provides Sidekiq integration with the
|
12
|
-
spec.homepage = "https://
|
11
|
+
spec.summary = "This gem provides Sidekiq integration with the Judoscale autoscaling add-on for Heroku."
|
12
|
+
spec.homepage = "https://judoscale.com"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
spec.metadata = {
|
16
|
-
"homepage_uri" => "https://
|
17
|
-
"bug_tracker_uri" => "https://github.com/
|
18
|
-
"documentation_uri" => "https://
|
19
|
-
"changelog_uri" => "https://github.com/
|
20
|
-
"source_code_uri" => "https://github.com/
|
16
|
+
"homepage_uri" => "https://judoscale.com",
|
17
|
+
"bug_tracker_uri" => "https://github.com/judoscale/judoscale-ruby/issues",
|
18
|
+
"documentation_uri" => "https://judoscale.com/docs",
|
19
|
+
"changelog_uri" => "https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md",
|
20
|
+
"source_code_uri" => "https://github.com/judoscale/judoscale-ruby"
|
21
21
|
}
|
22
22
|
|
23
23
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.required_ruby_version = ">= 2.6.0"
|
27
27
|
|
28
|
-
spec.add_dependency "
|
28
|
+
spec.add_dependency "judoscale-ruby"
|
29
29
|
spec.add_dependency "sidekiq", ">= 5.0"
|
30
30
|
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.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam McCrea
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-11-
|
12
|
+
date: 2022-11-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: judoscale-ruby
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
@@ -50,20 +50,21 @@ files:
|
|
50
50
|
- Gemfile-sidekiq-5
|
51
51
|
- Gemfile.lock
|
52
52
|
- Rakefile
|
53
|
-
-
|
54
|
-
- lib/
|
55
|
-
- lib/
|
56
|
-
- lib/
|
53
|
+
- judoscale-sidekiq.gemspec
|
54
|
+
- lib/judoscale-sidekiq.rb
|
55
|
+
- lib/judoscale/sidekiq.rb
|
56
|
+
- lib/judoscale/sidekiq/metrics_collector.rb
|
57
|
+
- lib/judoscale/sidekiq/version.rb
|
57
58
|
- rails-autoscale-sidekiq.gemspec
|
58
|
-
homepage: https://
|
59
|
+
homepage: https://judoscale.com
|
59
60
|
licenses:
|
60
61
|
- MIT
|
61
62
|
metadata:
|
62
|
-
homepage_uri: https://
|
63
|
-
bug_tracker_uri: https://github.com/
|
64
|
-
documentation_uri: https://
|
65
|
-
changelog_uri: https://github.com/
|
66
|
-
source_code_uri: https://github.com/
|
63
|
+
homepage_uri: https://judoscale.com
|
64
|
+
bug_tracker_uri: https://github.com/judoscale/judoscale-ruby/issues
|
65
|
+
documentation_uri: https://judoscale.com/docs
|
66
|
+
changelog_uri: https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md
|
67
|
+
source_code_uri: https://github.com/judoscale/judoscale-ruby
|
67
68
|
post_install_message:
|
68
69
|
rdoc_options: []
|
69
70
|
require_paths:
|
@@ -82,6 +83,6 @@ requirements: []
|
|
82
83
|
rubygems_version: 3.2.32
|
83
84
|
signing_key:
|
84
85
|
specification_version: 4
|
85
|
-
summary: This gem provides Sidekiq integration with the
|
86
|
-
|
86
|
+
summary: This gem provides Sidekiq integration with the Judoscale autoscaling add-on
|
87
|
+
for Heroku.
|
87
88
|
test_files: []
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "rails-autoscale-core"
|
4
|
-
require "rails_autoscale/config"
|
5
|
-
require "rails_autoscale/sidekiq/version"
|
6
|
-
require "rails_autoscale/sidekiq/metrics_collector"
|
7
|
-
require "sidekiq/api"
|
8
|
-
|
9
|
-
RailsAutoscale.add_adapter :"rails-autoscale-sidekiq",
|
10
|
-
{
|
11
|
-
adapter_version: RailsAutoscale::Sidekiq::VERSION,
|
12
|
-
framework_version: ::Sidekiq::VERSION
|
13
|
-
},
|
14
|
-
metrics_collector: RailsAutoscale::Sidekiq::MetricsCollector,
|
15
|
-
expose_config: RailsAutoscale::Config::JobAdapterConfig.new(:sidekiq)
|