peek-resque 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # 1.0.0
2
+
3
+ - Intitial release.
4
+
5
+ # 1.0.2
6
+
7
+ - When no queues are passed in, expand to lookup all queues.
@@ -1,5 +1,5 @@
1
1
  module Peek
2
2
  module Resque
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -8,7 +8,8 @@ module Peek
8
8
  end
9
9
 
10
10
  def job_count
11
- @queues.collect { |queue| ::Resque.size(queue) }.inject(&:+)
11
+ lookup = @queues == ['*'] ? ::Resque.queues : @queues
12
+ lookup.collect { |queue| ::Resque.size(queue) }.inject(&:+)
12
13
  end
13
14
 
14
15
  def context
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peek-resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-28 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: peek
@@ -51,6 +51,7 @@ extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
53
  - .gitignore
54
+ - CHANGELOG.md
54
55
  - Gemfile
55
56
  - LICENSE.txt
56
57
  - README.md