rails-autoscale-delayed_job 1.1.1 → 1.3.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: 5f7ecc88a04f0bf95f8181f413421b331893880bcee0ce98d43c442027e59287
4
- data.tar.gz: 53b5b53f8037fb24726d247846e8644ab34d416839aa0a9159be96f22d5f87de
3
+ metadata.gz: 66ab5e9239a3b2dc1a7a6a0a522ca5a39d672d1610ca5291c1b652fa1f6c923e
4
+ data.tar.gz: cedde8db604187364f37c97aade59d54c590c82e0f406fb2f7172b9244c74faf
5
5
  SHA512:
6
- metadata.gz: b3bee9f9a86931870812601a590a8499c482b41020add3dd0f0406a8bd605ef3bdf3e376d8427f1f5e448132b32f4de7b876c3faa69d910b9631034354dfaa8e
7
- data.tar.gz: cd3b251e1b905686204878c0669ff7ea8ccbb14cdce61bc2915c16c7b92f9f645cb6aad2982a76fe39abf8640c2b5f5903f8a455616a3beeef58b0accf6b7ba4
6
+ metadata.gz: 9593e8d8b0eb7e59474b79258c08e51c225a7ea1d6a284f3d36823e2059a2d983c67723880d288ec65d0604b2a77a8ca02b41ec5ad71f78a895b6afde3f51c54
7
+ data.tar.gz: d07ce9a905349683495728753c49c1f12a6d7671dbff17965444838ab44ff650d8a6537eb98c338bd317149011aba570504ad6d2283496f144bd92733ee7940c
data/Gemfile CHANGED
@@ -1,10 +1,11 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gemspec
3
+ gemspec name: "judoscale-delayed_job"
4
4
 
5
- gem "rails-autoscale-core", path: "../rails-autoscale-core"
5
+ gem "judoscale-ruby", path: "../judoscale-ruby"
6
6
  gem "activerecord"
7
7
  gem "pg"
8
8
  gem "minitest"
9
9
  gem "rake"
10
+ gem "rake-release"
10
11
  gem "debug"
@@ -1,9 +1,10 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gemspec
3
+ gemspec name: "judoscale-delayed_job"
4
4
 
5
- gem "rails-autoscale-core", path: "../rails-autoscale-core"
5
+ gem "judoscale-ruby", path: "../judoscale-ruby"
6
6
  gem "activerecord", "~> 6.1"
7
7
  gem "pg"
8
8
  gem "minitest"
9
9
  gem "rake"
10
+ gem "rake-release"
data/Gemfile.lock CHANGED
@@ -1,48 +1,50 @@
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.3.0)
5
5
 
6
6
  PATH
7
7
  remote: .
8
8
  specs:
9
- rails-autoscale-delayed_job (1.1.1)
9
+ judoscale-delayed_job (1.3.0)
10
10
  delayed_job_active_record (>= 4.0)
11
- rails-autoscale-core
11
+ judoscale-ruby (= 1.3.0)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activemodel (7.0.2.3)
17
- activesupport (= 7.0.2.3)
18
- activerecord (7.0.2.3)
19
- activemodel (= 7.0.2.3)
20
- activesupport (= 7.0.2.3)
21
- activesupport (7.0.2.3)
16
+ activemodel (7.0.4.2)
17
+ activesupport (= 7.0.4.2)
18
+ activerecord (7.0.4.2)
19
+ activemodel (= 7.0.4.2)
20
+ activesupport (= 7.0.4.2)
21
+ activesupport (7.0.4.2)
22
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
23
  i18n (>= 1.6, < 2)
24
24
  minitest (>= 5.1)
25
25
  tzinfo (~> 2.0)
26
- concurrent-ruby (1.1.10)
27
- debug (1.6.2)
28
- irb (>= 1.3.6)
26
+ concurrent-ruby (1.2.0)
27
+ debug (1.7.1)
28
+ irb (>= 1.5.0)
29
29
  reline (>= 0.3.1)
30
30
  delayed_job (4.1.11)
31
31
  activesupport (>= 3.0, < 8.0)
32
32
  delayed_job_active_record (4.1.7)
33
33
  activerecord (>= 3.0, < 8.0)
34
34
  delayed_job (>= 3.0, < 5)
35
- i18n (1.10.0)
35
+ i18n (1.12.0)
36
36
  concurrent-ruby (~> 1.0)
37
- io-console (0.5.11)
38
- irb (1.4.1)
37
+ io-console (0.6.0)
38
+ irb (1.6.2)
39
39
  reline (>= 0.3.0)
40
- minitest (5.15.0)
41
- pg (1.3.5)
40
+ minitest (5.17.0)
41
+ pg (1.4.5)
42
42
  rake (13.0.6)
43
- reline (0.3.1)
43
+ rake-release (1.3.0)
44
+ bundler (>= 1.11, < 3)
45
+ reline (0.3.2)
44
46
  io-console (~> 0.5)
45
- tzinfo (2.0.4)
47
+ tzinfo (2.0.6)
46
48
  concurrent-ruby (~> 1.0)
47
49
 
48
50
  PLATFORMS
@@ -54,11 +56,12 @@ PLATFORMS
54
56
  DEPENDENCIES
55
57
  activerecord
56
58
  debug
59
+ judoscale-delayed_job!
60
+ judoscale-ruby!
57
61
  minitest
58
62
  pg
59
- rails-autoscale-core!
60
- rails-autoscale-delayed_job!
61
63
  rake
64
+ rake-release
62
65
 
63
66
  BUNDLED WITH
64
67
  2.3.9
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/delayed_job/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "judoscale-delayed_job"
7
+ spec.version = Judoscale::DelayedJob::VERSION
8
+ spec.authors = ["Adam McCrea", "Carlos Antonio da Silva"]
9
+ spec.email = ["adam@adamlogic.com"]
10
+
11
+ spec.summary = "This gem provides DelayedJob 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::DelayedJob::VERSION
29
+ spec.add_dependency "delayed_job_active_record", ">= 4.0"
30
+ end
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rails_autoscale/job_metrics_collector"
4
- require "rails_autoscale/job_metrics_collector/active_record_helper"
5
- require "rails_autoscale/metric"
3
+ require "judoscale/job_metrics_collector"
4
+ require "judoscale/job_metrics_collector/active_record_helper"
5
+ require "judoscale/metric"
6
6
 
7
- module RailsAutoscale
7
+ module Judoscale
8
8
  module DelayedJob
9
- class MetricsCollector < RailsAutoscale::JobMetricsCollector
9
+ class MetricsCollector < Judoscale::JobMetricsCollector
10
10
  include ActiveRecordHelper
11
11
 
12
12
  METRICS_SQL = ActiveRecordHelper.cleanse_sql(<<~SQL)
@@ -27,7 +27,7 @@ module RailsAutoscale
27
27
  SQL
28
28
 
29
29
  def self.adapter_config
30
- RailsAutoscale::Config.instance.delayed_job
30
+ Judoscale::Config.instance.delayed_job
31
31
  end
32
32
 
33
33
  def collect
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module RailsAutoscale
3
+ module Judoscale
4
4
  module DelayedJob
5
- VERSION = "1.1.1"
5
+ VERSION = "1.3.0"
6
6
  end
7
7
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "judoscale-ruby"
4
+ require "judoscale/config"
5
+ require "judoscale/delayed_job/version"
6
+ require "judoscale/delayed_job/metrics_collector"
7
+ require "delayed_job_active_record"
8
+
9
+ Judoscale.add_adapter :"judoscale-delayed_job",
10
+ {
11
+ adapter_version: Judoscale::DelayedJob::VERSION,
12
+ framework_version: Gem.loaded_specs["delayed_job_active_record"].version.to_s # DJ doesn't have a `VERSION` constant
13
+ },
14
+ metrics_collector: Judoscale::DelayedJob::MetricsCollector,
15
+ expose_config: Judoscale::Config::JobAdapterConfig.new(:delayed_job)
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "judoscale/delayed_job"
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rails_autoscale/delayed_job"
3
+ require "judoscale/delayed_job"
@@ -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/delayed_job/version"
3
+ require "judoscale/delayed_job/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "rails-autoscale-delayed_job"
7
- spec.version = RailsAutoscale::DelayedJob::VERSION
7
+ spec.version = Judoscale::DelayedJob::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 DelayedJob integration with the Rails Autoscale autoscaling add-on for Heroku."
12
- spec.homepage = "https://railsautoscale.com"
11
+ spec.summary = "This gem provides DelayedJob 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::DelayedJob::VERSION
29
29
  spec.add_dependency "delayed_job_active_record", ">= 4.0"
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-autoscale-delayed_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.3.0
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: 2023-02-09 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.3.0
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.3.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: delayed_job_active_record
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -50,20 +50,22 @@ files:
50
50
  - Gemfile-activerecord-6-1
51
51
  - Gemfile.lock
52
52
  - Rakefile
53
+ - judoscale-delayed_job.gemspec
54
+ - lib/judoscale-delayed_job.rb
55
+ - lib/judoscale/delayed_job.rb
56
+ - lib/judoscale/delayed_job/metrics_collector.rb
57
+ - lib/judoscale/delayed_job/version.rb
53
58
  - lib/rails-autoscale-delayed_job.rb
54
- - lib/rails_autoscale/delayed_job.rb
55
- - lib/rails_autoscale/delayed_job/metrics_collector.rb
56
- - lib/rails_autoscale/delayed_job/version.rb
57
59
  - rails-autoscale-delayed_job.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 DelayedJob integration with the Rails Autoscale autoscaling
86
- add-on for Heroku.
87
+ summary: This gem provides DelayedJob integration with the Judoscale autoscaling add-on
88
+ for Heroku.
87
89
  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/delayed_job/version"
6
- require "rails_autoscale/delayed_job/metrics_collector"
7
- require "delayed_job_active_record"
8
-
9
- RailsAutoscale.add_adapter :"rails-autoscale-delayed_job",
10
- {
11
- adapter_version: RailsAutoscale::DelayedJob::VERSION,
12
- framework_version: Gem.loaded_specs["delayed_job_active_record"].version.to_s # DJ doesn't have a `VERSION` constant
13
- },
14
- metrics_collector: RailsAutoscale::DelayedJob::MetricsCollector,
15
- expose_config: RailsAutoscale::Config::JobAdapterConfig.new(:delayed_job)