resque 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of resque might be problematic. Click here for more details.

data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.9.2 (2010-06-13)
2
+
3
+ * Bugfix: Worker.all returning nil fix
4
+ * Bugfix: Make ps -o more cross platform friendly
5
+
1
6
  ## 1.9.1 (2010-06-04)
2
7
 
3
8
  * Less strict JSON dependency
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = VERSION = '1.9.1'
2
+ Version = VERSION = '1.9.2'
3
3
  end
@@ -24,7 +24,7 @@ module Resque
24
24
 
25
25
  # Returns an array of all worker objects.
26
26
  def self.all
27
- redis.smembers(:workers).map { |id| find(id) }
27
+ Array(redis.smembers(:workers)).map { |id| find(id) }
28
28
  end
29
29
 
30
30
  # Returns an array of all worker objects currently processing
@@ -447,7 +447,7 @@ module Resque
447
447
  # Returns an array of string pids of all the other workers on this
448
448
  # machine. Useful when pruning dead workers on startup.
449
449
  def worker_pids
450
- `ps -A -o pid,command | grep [r]esque`.split("\n").map do |line|
450
+ `ps -A -o pid,comm | grep [r]esque`.split("\n").map do |line|
451
451
  line.split(' ')[0]
452
452
  end
453
453
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 9
8
- - 1
9
- version: 1.9.1
8
+ - 2
9
+ version: 1.9.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Wanstrath
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-04 00:00:00 -07:00
17
+ date: 2010-06-13 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency