bipbip 0.7.8 → 0.7.9

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: 0b7777292e1ad5542031723e2560daf16236b60c
4
- data.tar.gz: e377adebf53bc1b22624627dac1901dd056c3f6e
3
+ metadata.gz: 9d135f5044ba55cbbfc4fc02b01b1a4f8185059a
4
+ data.tar.gz: 45041cdcd5993efb4d755f34713686c9261172fa
5
5
  SHA512:
6
- metadata.gz: 08f7c9b3eb80606e59c7e323b140f7288cc72f5ec3bcb549fa63d2e9b93e01830aeabf5883eb0a67af4be9ce5e7da4c68e341ea1c03338568cf884bb8838b19a
7
- data.tar.gz: 21cec67eb92bf830b11e30f63a987121e06d1c77b9da182c1558a75c80ec9e00cf85aba6e4ffad5859aee5e2ff1289714c67a21b0f9dea13a2ff4d00b33829c0
6
+ metadata.gz: e3ef917453fbafbd8986f0a1e9f31b53f4d0202f57b95e88312e3e59bf702e0ee2d972d7367a6c192308cf8e3b5490851267900378ec9ee861ce5afff65938b5
7
+ data.tar.gz: aea4339262650758e43d6aebc67ffbc004b1a3680f495344c2d241db8c5bd5e10513c6f20f6e692a649f4cec894ee7a11c2a7ce06969c830b38d1e9d40167c4f
@@ -66,7 +66,8 @@ module Bipbip
66
66
 
67
67
  stats = Hash.new(0)
68
68
 
69
- mysql.query('SELECT priority, count(priority) as jobs_count FROM gearman_queue GROUP by priority').each do |row|
69
+ mysql_table = config['mysql_table'] || 'gearman_queue'
70
+ mysql.query("SELECT priority, count(priority) as jobs_count FROM #{mysql_table} GROUP by priority").each do |row|
70
71
  stats[row['priority']] = row['jobs_count']
71
72
  end
72
73
 
@@ -1,3 +1,3 @@
1
1
  module Bipbip
2
- VERSION = '0.7.8'.freeze
2
+ VERSION = '0.7.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bipbip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media