rails-autoscale-resque 1.1.1 → 1.2.3

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: 74078fbb499df592476207e8d76b8acd40fd2279a4cce735015168464978e3f0
4
- data.tar.gz: cfb81176797dd101519f0a1ce9d07104e3dd24e8b51be1676b3e56b90e63792b
3
+ metadata.gz: 38f24ca62fa1084744c54d22964d2b8d73480fa18835b5c49376a250ad95df28
4
+ data.tar.gz: 5ed03de53e089da503eec2e5759a29b6b61af736bae6f4311fd7016f0cd3d5d0
5
5
  SHA512:
6
- metadata.gz: cfa2e64af43e521d474e1e8583495f2268e965bb5efd5e254018b72719905781a226db642e4e7f73bb44c944698ea24177d439fbe93bed45a0f392284e4c8c08
7
- data.tar.gz: 8ec760eb53601f56e592023475ed028ea552e0dd3e53cfa67f52a181f0e9fb0bd4b50224f4507923c751dcae97db0b649a0854434a701e04d21c75f01b025996
6
+ metadata.gz: 6f50b653b940103a0e3081ae9a19d4f57da25b71ceed7cb92019d7677490def5ae8022cdb2be55e3c215847c544122b091b9b87cc1c61aa9f9744c4e52d3cc8b
7
+ data.tar.gz: c0b705997d40ef88dc5c230102e49b106c0b92de0a8b96417a7d57cd4489b9d9849601bce703fed84f7161e61424a193d6325775186ad4898932d40a173b2d01
data/Gemfile CHANGED
@@ -1,10 +1,11 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gemspec
3
+ gemspec name: "judoscale-resque"
4
4
 
5
- gem "rails-autoscale-core", path: "../rails-autoscale-core"
5
+ gem "judoscale-ruby", path: "../judoscale-ruby"
6
6
  gem "minitest"
7
7
  gem "rake"
8
+ gem "rake-release"
8
9
  gem "debug"
9
10
 
10
11
  # Lock to known working versions to keep tests passing.
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
- remote: ../rails-autoscale-core
2
+ remote: ../judoscale-ruby
3
3
  specs:
4
- rails-autoscale-core (1.1.1)
4
+ judoscale-ruby (1.2.3)
5
5
 
6
6
  PATH
7
7
  remote: .
8
8
  specs:
9
- rails-autoscale-resque (1.1.1)
10
- rails-autoscale-core
9
+ judoscale-resque (1.2.3)
10
+ judoscale-ruby (= 1.2.3)
11
11
  resque (>= 2.0)
12
12
 
13
13
  GEM
@@ -28,6 +28,8 @@ GEM
28
28
  rack-protection (2.2.2)
29
29
  rack
30
30
  rake (13.0.6)
31
+ rake-release (1.3.0)
32
+ bundler (>= 1.11, < 3)
31
33
  redis (4.8.0)
32
34
  redis-namespace (1.9.0)
33
35
  redis (>= 4)
@@ -54,10 +56,11 @@ PLATFORMS
54
56
 
55
57
  DEPENDENCIES
56
58
  debug
59
+ judoscale-resque!
60
+ judoscale-ruby!
57
61
  minitest
58
- rails-autoscale-core!
59
- rails-autoscale-resque!
60
62
  rake
63
+ rake-release
61
64
  redis (~> 4.0)
62
65
  resque (~> 2.2.0)
63
66
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler/gem_tasks"
3
+ require "rake/release"
4
4
  require "rake/testtask"
5
5
 
6
6
  Rake::TestTask.new(:test) do |t|
@@ -0,0 +1,30 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "judoscale/resque/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "judoscale-resque"
7
+ spec.version = Judoscale::Resque::VERSION
8
+ spec.authors = ["Adam McCrea", "Carlos Antonio da Silva"]
9
+ spec.email = ["adam@adamlogic.com"]
10
+
11
+ spec.summary = "This gem provides Resque 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", Judoscale::Resque::VERSION
29
+ spec.add_dependency "resque", ">= 2.0"
30
+ end
@@ -1,4 +1,4 @@
1
- module RailsAutoscale
1
+ module Judoscale
2
2
  module Resque
3
3
  module LatencyExtension
4
4
  # Store the time when jobs are pushed to the queue in order to calculate latency.
@@ -20,4 +20,4 @@ module RailsAutoscale
20
20
  end
21
21
  end
22
22
 
23
- ::Resque.extend(RailsAutoscale::Resque::LatencyExtension)
23
+ ::Resque.extend(Judoscale::Resque::LatencyExtension)
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rails_autoscale/job_metrics_collector"
4
- require "rails_autoscale/metric"
3
+ require "judoscale/job_metrics_collector"
4
+ require "judoscale/metric"
5
5
 
6
- module RailsAutoscale
6
+ module Judoscale
7
7
  module Resque
8
- class MetricsCollector < RailsAutoscale::JobMetricsCollector
8
+ class MetricsCollector < Judoscale::JobMetricsCollector
9
9
  def self.adapter_config
10
- RailsAutoscale::Config.instance.resque
10
+ Judoscale::Config.instance.resque
11
11
  end
12
12
 
13
13
  def collect
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module RailsAutoscale
3
+ module Judoscale
4
4
  module Resque
5
- VERSION = "1.1.1"
5
+ VERSION = "1.2.3"
6
6
  end
7
7
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "judoscale-ruby"
4
+ require "judoscale/config"
5
+ require "judoscale/resque/version"
6
+ require "judoscale/resque/metrics_collector"
7
+ require "resque"
8
+ require "judoscale/resque/latency_extension"
9
+
10
+ Judoscale.add_adapter :"judoscale-resque",
11
+ {
12
+ adapter_version: Judoscale::Resque::VERSION,
13
+ framework_version: ::Resque::VERSION
14
+ },
15
+ metrics_collector: Judoscale::Resque::MetricsCollector,
16
+ expose_config: Judoscale::Config::JobAdapterConfig.new(:resque)
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "judoscale/resque"
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rails_autoscale/resque"
3
+ require "judoscale/resque"
@@ -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 "rails_autoscale/resque/version"
3
+ require "judoscale/resque/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "rails-autoscale-resque"
7
- spec.version = RailsAutoscale::Resque::VERSION
7
+ spec.version = Judoscale::Resque::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 Resque integration with the Rails Autoscale autoscaling add-on for Heroku."
12
- spec.homepage = "https://railsautoscale.com"
11
+ spec.summary = "This gem provides Resque 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://railsautoscale.com",
17
- "bug_tracker_uri" => "https://github.com/rails-autoscale/rails-autoscale-gems/issues",
18
- "documentation_uri" => "https://railsautoscale.com/docs",
19
- "changelog_uri" => "https://github.com/rails-autoscale/rails-autoscale-gems/blob/main/CHANGELOG.md",
20
- "source_code_uri" => "https://github.com/rails-autoscale/rails-autoscale-gems"
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 "rails-autoscale-core"
28
+ spec.add_dependency "rails-autoscale-core", Judoscale::Resque::VERSION
29
29
  spec.add_dependency "resque", ">= 2.0"
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-autoscale-resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam McCrea
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-11-14 00:00:00.000000000 Z
12
+ date: 2022-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails-autoscale-core
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: 1.2.3
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: 1.2.3
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: resque
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -49,21 +49,23 @@ files:
49
49
  - Gemfile
50
50
  - Gemfile.lock
51
51
  - Rakefile
52
+ - judoscale-resque.gemspec
53
+ - lib/judoscale-resque.rb
54
+ - lib/judoscale/resque.rb
55
+ - lib/judoscale/resque/latency_extension.rb
56
+ - lib/judoscale/resque/metrics_collector.rb
57
+ - lib/judoscale/resque/version.rb
52
58
  - lib/rails-autoscale-resque.rb
53
- - lib/rails_autoscale/resque.rb
54
- - lib/rails_autoscale/resque/latency_extension.rb
55
- - lib/rails_autoscale/resque/metrics_collector.rb
56
- - lib/rails_autoscale/resque/version.rb
57
59
  - rails-autoscale-resque.gemspec
58
- homepage: https://railsautoscale.com
60
+ homepage: https://judoscale.com
59
61
  licenses:
60
62
  - MIT
61
63
  metadata:
62
- homepage_uri: https://railsautoscale.com
63
- bug_tracker_uri: https://github.com/rails-autoscale/rails-autoscale-gems/issues
64
- documentation_uri: https://railsautoscale.com/docs
65
- changelog_uri: https://github.com/rails-autoscale/rails-autoscale-gems/blob/main/CHANGELOG.md
66
- source_code_uri: https://github.com/rails-autoscale/rails-autoscale-gems
64
+ homepage_uri: https://judoscale.com
65
+ bug_tracker_uri: https://github.com/judoscale/judoscale-ruby/issues
66
+ documentation_uri: https://judoscale.com/docs
67
+ changelog_uri: https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md
68
+ source_code_uri: https://github.com/judoscale/judoscale-ruby
67
69
  post_install_message:
68
70
  rdoc_options: []
69
71
  require_paths:
@@ -82,6 +84,6 @@ requirements: []
82
84
  rubygems_version: 3.2.32
83
85
  signing_key:
84
86
  specification_version: 4
85
- summary: This gem provides Resque integration with the Rails Autoscale autoscaling
86
- add-on for Heroku.
87
+ summary: This gem provides Resque integration with the Judoscale autoscaling add-on
88
+ for Heroku.
87
89
  test_files: []
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "rails-autoscale-core"
4
- require "rails_autoscale/config"
5
- require "rails_autoscale/resque/version"
6
- require "rails_autoscale/resque/metrics_collector"
7
- require "resque"
8
- require "rails_autoscale/resque/latency_extension"
9
-
10
- RailsAutoscale.add_adapter :"rails-autoscale-resque",
11
- {
12
- adapter_version: RailsAutoscale::Resque::VERSION,
13
- framework_version: ::Resque::VERSION
14
- },
15
- metrics_collector: RailsAutoscale::Resque::MetricsCollector,
16
- expose_config: RailsAutoscale::Config::JobAdapterConfig.new(:resque)