judoscale-delayed_job 1.4.1 → 1.5.1

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: 72be6947e41dd7e0fcb3bdea68bf15c84a6eb657ac5efd9a33b513254eab34e5
4
- data.tar.gz: 99000a1192d9d54eb0a34fea3d22c5e66aa2de014a543e5b111652e2180f3592
3
+ metadata.gz: 0753771d15b033e042e91fbff783d16f86fba668ba63fc73445bfdde42049ca7
4
+ data.tar.gz: a7915850508eb14261e3aee68b7e834aca3ed0310f04e25a95d6658eca2bfdba
5
5
  SHA512:
6
- metadata.gz: eeea33fe6254efd32ad06afa778fc84dfba70c03b0c4b22f91f92012ba05ad0eca695c082f68d3aafbad09beced98ed324ff3e61e9354ac0c5b6ca4c10a8f0e9
7
- data.tar.gz: 2c8506da3c7a944d204be18d369ef8e50b4af89bfc351e15398c9c744a17ae03923a69d9566e3086dac4536ae3b6b2e940e47ddb28369664226d4b7721508aba
6
+ metadata.gz: c175862179b151e76a9778999019c56df2d6ff77ac5ed3706487403decfad25cd6dcd8dc77827d2426e45f546b00a6165bbd4ebd045c7d8e5c9a116e9fc3aadc
7
+ data.tar.gz: 0e8274b9bd51c9d8dd945625dc0deebe797c6886645c9e4fc86a987e56f3d09553d59a82a958ed5668e806e100068fa75b589bf423ee45f3f109846b2eca398d
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: ../judoscale-ruby
3
3
  specs:
4
- judoscale-ruby (1.4.1)
4
+ judoscale-ruby (1.5.1)
5
5
 
6
6
  PATH
7
7
  remote: .
8
8
  specs:
9
- judoscale-delayed_job (1.4.1)
9
+ judoscale-delayed_job (1.5.1)
10
10
  delayed_job_active_record (>= 4.0)
11
- judoscale-ruby (= 1.4.1)
11
+ judoscale-ruby (= 1.5.1)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
@@ -48,6 +48,7 @@ GEM
48
48
  PLATFORMS
49
49
  arm64-darwin-20
50
50
  arm64-darwin-21
51
+ arm64-darwin-22
51
52
  x86_64-darwin-21
52
53
  x86_64-linux
53
54
 
@@ -30,6 +30,10 @@ module Judoscale
30
30
  Judoscale::Config.instance.delayed_job
31
31
  end
32
32
 
33
+ def self.collect?(config)
34
+ super && ActiveRecordHelper.table_exists?("delayed_jobs")
35
+ end
36
+
33
37
  def collect
34
38
  metrics = []
35
39
  t = Time.now.utc
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Judoscale
4
4
  module DelayedJob
5
- VERSION = "1.4.1"
5
+ VERSION = "1.5.1"
6
6
  end
7
7
  end
@@ -6,6 +6,8 @@ require "judoscale/delayed_job/version"
6
6
  require "judoscale/delayed_job/metrics_collector"
7
7
  require "delayed_job_active_record"
8
8
 
9
+ Judoscale::Config.instance.allow_rake_tasks << /jobs:work/
10
+
9
11
  Judoscale.add_adapter :"judoscale-delayed_job",
10
12
  {
11
13
  adapter_version: Judoscale::DelayedJob::VERSION,
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judoscale-delayed_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam McCrea
8
8
  - Carlos Antonio da Silva
9
9
  - Jon Sullivan
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-05-04 00:00:00.000000000 Z
13
+ date: 2023-08-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: judoscale-ruby
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.4.1
21
+ version: 1.5.1
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.4.1
28
+ version: 1.5.1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: delayed_job_active_record
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -40,7 +40,7 @@ dependencies:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '4.0'
43
- description:
43
+ description:
44
44
  email:
45
45
  - hello@judoscale.com
46
46
  executables: []
@@ -67,7 +67,7 @@ metadata:
67
67
  documentation_uri: https://judoscale.com/docs
68
68
  changelog_uri: https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md
69
69
  source_code_uri: https://github.com/judoscale/judoscale-ruby
70
- post_install_message:
70
+ post_install_message:
71
71
  rdoc_options: []
72
72
  require_paths:
73
73
  - lib
@@ -82,8 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.2.32
86
- signing_key:
85
+ rubygems_version: 3.4.10
86
+ signing_key:
87
87
  specification_version: 4
88
88
  summary: This gem provides DelayedJob integration with the Judoscale autoscaling add-on
89
89
  for Heroku.