que-web 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46f81a12d2b43f9bbc710b2bce8ea3804dbd8df2
4
- data.tar.gz: a089be90460ddd5a5181a01f8798f96cb68dda0d
3
+ metadata.gz: f961c975dc887e5c769088ab961dc143d91b810a
4
+ data.tar.gz: cf90a843935e7ff3918c8ea6f5f21e2cb31097f6
5
5
  SHA512:
6
- metadata.gz: 702c9325393847a91b17f295043a2717d7477d07ada89ee713e00174f2d9d32d9b57e15e9682cdd1a8400573798a1435fc210897522bca7089066052e8d34306
7
- data.tar.gz: ba87ba7b865fea08890586a1d9fc260c6826f34e8aa238659d122bcf3907843251e3ecba5a54c13e22d44db2274e37c427293d3deccd4a6d174cf6c9e318133b
6
+ metadata.gz: ec34ca05e2e6ea188dfd667fc666a484e6b3f757fc660350c9e4596f603433dd9a60963ea58886ead379af07e081988a175f0c77a914b38d3b5797d21d9d5356
7
+ data.tar.gz: 61dc356e013622a56334b7813e82ea62033e5f6c57f3e7a3ab5f4ccf6472bc3d9ceae1b6dc611ec9783ee742b372bbac19e4182ca2171a04fc172f1b0e8eadac
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../
3
3
  specs:
4
- que-web (0.2.0)
4
+ que-web (0.2.2)
5
5
  que (~> 0.8)
6
6
  sinatra
7
7
 
data/lib/que/web/sql.rb CHANGED
@@ -2,8 +2,8 @@ Que::Web::SQL = {
2
2
  :dashboard_stats => %{
3
3
  SELECT count(*) AS total,
4
4
  count(locks.job_id) AS running,
5
- sum((error_count > 0 AND locks.job_id IS NULL)::int) AS failing,
6
- sum((error_count = 0 AND locks.job_id IS NULL)::int) AS scheduled
5
+ coalesce(sum((error_count > 0 AND locks.job_id IS NULL)::int), 0) AS failing,
6
+ coalesce(sum((error_count = 0 AND locks.job_id IS NULL)::int), 0) AS scheduled
7
7
  FROM que_jobs
8
8
  LEFT JOIN (
9
9
  SELECT (classid::bigint << 32) + objid::bigint AS job_id
data/lib/que/web.rb CHANGED
@@ -2,7 +2,6 @@ require "sinatra"
2
2
 
3
3
  module Que
4
4
  class Web < Sinatra::Base
5
- VERSION = "0.2.1"
6
5
  PAGE_SIZE = 10
7
6
 
8
7
  use Rack::MethodOverride
data/que-web.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "que-web"
7
- spec.version = "0.2.1"
7
+ spec.version = "0.2.2"
8
8
  spec.authors = ["Jason Staten"]
9
9
  spec.email = ["jstaten07@gmail.com"]
10
10
  spec.summary = %q{A web interface for the que queue}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: que-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Staten
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: que