hirefireapp 0.1.1 → 0.1.2

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: 9a2e2d6e44dc2b1f89ab20e641ac90cb61fd8fbc
4
- data.tar.gz: b398bcf5b5ad131fa99631cc7171db529a4b7852
3
+ metadata.gz: f77f454e1a4cbf917e951745f223cb11b71dbc52
4
+ data.tar.gz: a325cea5826ed2f9da7e3e049e960968de71d55a
5
5
  SHA512:
6
- metadata.gz: 82eb3503cc4ae67fd28a15645e953efa7f50b0c4ba6b0f788fab87c76234963ed0081bd141c5c22c54d22c852324590c05d13f673e40af00d3dfef5c036077ca
7
- data.tar.gz: 18f153963334c086f7fc85127bb8e01a5041fd42d96c1beaa1ce3915188479158b033018c1c436c37556523ebd306894698c653b644718e16d2d722b980a5952
6
+ metadata.gz: d4c918545f57406bacb79f2fa7bd8002332d2e55fbd467bbd105c28ed57083351abf3bf01cdfc29459d8e49560096903ef854239ab83da52dd399637f5294378
7
+ data.tar.gz: 1b8771df7f8b519eb3473dc634c8c114d12bb088d10ac28bbaa1aa90133c143282f47377d17e2015b69910542c60aec8b74ffe7b42840bcfd8b56bb308e595e0
data/hirefireapp.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |gem|
4
4
 
5
5
  # General configuration / information
6
6
  gem.name = 'hirefireapp'
7
- gem.version = '0.1.1'
7
+ gem.version = '0.1.2'
8
8
  gem.platform = Gem::Platform::RUBY
9
9
  gem.authors = 'Michael van Rooijen'
10
10
  gem.email = 'michael@hirefire.io'
@@ -91,11 +91,9 @@ module HireFireApp
91
91
  where(:failed_at => nil).
92
92
  where('run_at <= ?', Time.now).count
93
93
  else
94
- Delayed::Job.all(
95
- :conditions => [
96
- 'failed_at IS NULL and run_at <= ?', Time.now.utc
97
- ]
98
- ).count
94
+ Delayed::Job.count(
95
+ :id, :conditions => ["failed_at IS NULL and run_at <= ?", Time.now.utc]
96
+ )
99
97
  end
100
98
  elsif defined?(Mongoid) and backend?(/Mongoid/)
101
99
  Delayed::Job.where(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hirefireapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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: 2013-03-21 00:00:00.000000000 Z
11
+ date: 2013-04-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: HireFire.io - The Heroku Dyno Manager - Autoscaling your web and worker
14
14
  dynos saving you time and money!