judoscale-que 1.4.0 → 1.5.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: 4da4c3df17c5aa5c72b0a52f0f608fda1e28d4246112307d1313dd27c8a0ce24
4
- data.tar.gz: 497df82947835bae3aa78ed59f70cdf49f00c8d36942cf1559b547b9ef2a303b
3
+ metadata.gz: 887c41e787f44ae6cafca201d7d0d06750513475797e3c2f06a670ce4c02ab31
4
+ data.tar.gz: 118045222b99daaa807a68d495c84d5f268dde8cab1216346cab889be77761b4
5
5
  SHA512:
6
- metadata.gz: '048a99e868d9e2f5efb85c72a656374ca5e4d5f759240fd79acb8d6cfb4317e6697f998baae793929ba9f2db02d6168c7dd6af3c679c0636ca420da89805829c'
7
- data.tar.gz: 8b6a7ab7186ae0eb59610188873d562a1732321f1d8503ca218c1d98c20e68d059fb4aa97e193e72dbd89f7f7fd0bee7cb2377a6cfd238ca80c9669d0275ebd8
6
+ metadata.gz: e8abb5bad1794bf5d03036c9f70df8c3344489a72ae23a69c005fe4f1256b396f01d7db6dfbec931205c5a33fa54dc403276bc5591b348c56fe90e01b1c8d03d
7
+ data.tar.gz: 31a586c2226d34e7fb5c6ee89aae789e4668cfb11db843e18fc6cd200c569792a4256500ec53e1c42b7d405c3c5f778ca9d65718e97bfc27be84342c0f1b7959
data/Gemfile CHANGED
@@ -7,5 +7,4 @@ gem "activerecord"
7
7
  gem "pg"
8
8
  gem "minitest"
9
9
  gem "rake"
10
- gem "rake-release"
11
10
  gem "debug"
@@ -7,4 +7,3 @@ gem "activerecord", "~> 6.1"
7
7
  gem "pg"
8
8
  gem "minitest"
9
9
  gem "rake"
10
- gem "rake-release"
data/Gemfile-que-2 CHANGED
@@ -8,4 +8,3 @@ gem "activerecord"
8
8
  gem "pg"
9
9
  gem "minitest"
10
10
  gem "rake"
11
- gem "rake-release"
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: ../judoscale-ruby
3
3
  specs:
4
- judoscale-ruby (1.4.0)
4
+ judoscale-ruby (1.5.0)
5
5
 
6
6
  PATH
7
7
  remote: .
8
8
  specs:
9
- judoscale-que (1.4.0)
10
- judoscale-ruby (= 1.4.0)
9
+ judoscale-que (1.5.0)
10
+ judoscale-ruby (= 1.5.0)
11
11
  que (>= 1.0)
12
12
 
13
13
  GEM
@@ -34,10 +34,8 @@ GEM
34
34
  reline (>= 0.3.0)
35
35
  minitest (5.17.0)
36
36
  pg (1.4.5)
37
- que (2.2.0)
37
+ que (2.2.1)
38
38
  rake (13.0.6)
39
- rake-release (1.3.0)
40
- bundler (>= 1.11, < 3)
41
39
  reline (0.3.2)
42
40
  io-console (~> 0.5)
43
41
  tzinfo (2.0.6)
@@ -46,6 +44,7 @@ GEM
46
44
  PLATFORMS
47
45
  arm64-darwin-20
48
46
  arm64-darwin-21
47
+ arm64-darwin-22
49
48
  x86_64-darwin-21
50
49
  x86_64-linux
51
50
 
@@ -57,7 +56,6 @@ DEPENDENCIES
57
56
  minitest
58
57
  pg
59
58
  rake
60
- rake-release
61
59
 
62
60
  BUNDLED WITH
63
61
  2.3.9
data/Rakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rake/release"
4
3
  require "rake/testtask"
5
4
 
6
5
  Rake::TestTask.new(:test) do |t|
@@ -38,6 +38,10 @@ module Judoscale
38
38
  Judoscale::Config.instance.que
39
39
  end
40
40
 
41
+ def self.collect?(config)
42
+ super && ActiveRecordHelper.table_exists?("que_jobs")
43
+ end
44
+
41
45
  def collect
42
46
  metrics = []
43
47
  t = Time.now.utc
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Judoscale
4
4
  module Que
5
- VERSION = "1.4.0"
5
+ VERSION = "1.5.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judoscale-que
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
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-04-21 00:00:00.000000000 Z
13
+ date: 2023-07-21 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.0
21
+ version: 1.5.0
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.0
28
+ version: 1.5.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: que
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -40,7 +40,7 @@ dependencies:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '1.0'
43
- description:
43
+ description:
44
44
  email:
45
45
  - hello@judoscale.com
46
46
  executables: []
@@ -68,7 +68,7 @@ metadata:
68
68
  documentation_uri: https://judoscale.com/docs
69
69
  changelog_uri: https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md
70
70
  source_code_uri: https://github.com/judoscale/judoscale-ruby
71
- post_install_message:
71
+ post_install_message:
72
72
  rdoc_options: []
73
73
  require_paths:
74
74
  - lib
@@ -83,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.2.32
87
- signing_key:
86
+ rubygems_version: 3.4.10
87
+ signing_key:
88
88
  specification_version: 4
89
89
  summary: This gem provides Que integration with the Judoscale autoscaling add-on for
90
90
  Heroku.