hirefire-resource 0.4.0 → 0.4.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
  SHA1:
3
- metadata.gz: eca03aa06b7cb5b597f9247abfb2094cd4ba5804
4
- data.tar.gz: 52a6226f8766e9ea15fbeafcda513e6c948cfbd8
3
+ metadata.gz: 071eef5dfbd579fa92c75ae256fe83aa5169cf8c
4
+ data.tar.gz: 566e042e7838b0faabd85b8fb2ff57fa9a421eff
5
5
  SHA512:
6
- metadata.gz: 900c29b7ad260db8510b831c76ff87dfcccc5fd8990fc0cca3f792f0b65a44532dbe11852cc60ab61b9f1a536e826159b36432ce5c7d0cda8a3640cf3a56d1c5
7
- data.tar.gz: 2481e45b0c12da53f39e8c708e4258c2433d96318f52d6c489800402991d3ac552a4b9c2e268ed08124225aa769792de6177baa617e0649e2efe116d70385409
6
+ metadata.gz: 7a20bbe4094c924f954d3889316cd85ef808dbacd5d5fc9df7996262d9b85ac45986524992236d95a1f1a122d8e4f0deec5eafd68710d266b48dea14b984af21
7
+ data.tar.gz: 6cf16d48804582430b4a85dc492732de51dc7ab953d29f97486ce4c39cd7dfc0815c95dc056492a0645ea968c10e57dca39c653608ca17e5a2676f1fb4734fe7
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "hirefire-resource"
5
- gem.version = "0.4.0"
5
+ gem.version = "0.4.1"
6
6
  gem.platform = Gem::Platform::RUBY
7
7
  gem.authors = "Michael van Rooijen"
8
8
  gem.email = "michael@hirefire.io"
@@ -19,6 +19,8 @@ module HireFire
19
19
  queues = queues.flatten.map(&:to_s)
20
20
  queues = ::Resque.queues if queues.empty?
21
21
 
22
+ return 0 if queues.empty?
23
+
22
24
  redis = ::Resque.redis
23
25
  ids = Array(redis.smembers(:workers)).compact
24
26
  raw_jobs = redis.pipelined { ids.map { |id| redis.get("worker:#{id}") } }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hirefire-resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van Rooijen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-09 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Load- and schedule-based scaling for web- and worker dynos
14
14
  email: michael@hirefire.io
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  requirements: []
59
59
  rubyforge_project:
60
- rubygems_version: 2.6.8
60
+ rubygems_version: 2.6.11
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Autoscaling for your Heroku dynos