resque 1.18.1 → 1.18.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.

Potentially problematic release.


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

data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.18.2 (2011-08-19)
2
+
3
+ * Fix RAILS_ROOT deprecation warning
4
+
1
5
  ## 1.18.1 (2011-08-19)
2
6
 
3
7
  * Bugfix: Use RAILS_ROOT in preload task
@@ -42,8 +42,8 @@ namespace :resque do
42
42
 
43
43
  # Preload app files if this is Rails
44
44
  task :preload do
45
- if defined? RAILS_ROOT
46
- Dir["#{RAILS_ROOT}/app/**/*.rb"].each do |file|
45
+ if defined? Rails
46
+ Dir["#{Rails.root}/app/**/*.rb"].each do |file|
47
47
  require file
48
48
  end
49
49
  end
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = VERSION = '1.18.1'
2
+ Version = VERSION = '1.18.2'
3
3
  end
@@ -498,7 +498,7 @@ module Resque
498
498
  # Returns an Array of string pids of all the other workers on this
499
499
  # machine. Useful when pruning dead workers on startup.
500
500
  def solaris_worker_pids
501
- `ps -A -o pid,comm | grep ruby | grep -v grep | grep -v "resque-web"`.split("\n").map do |line|
501
+ `ps -A -o pid,comm | grep [r]uby | grep -v "resque-web"`.split("\n").map do |line|
502
502
  real_pid = line.split(' ')[0]
503
503
  pargs_command = `pargs -a #{real_pid} 2>/dev/null | grep [r]esque | grep -v "resque-web"`
504
504
  if pargs_command.split(':')[1] == " resque-#{Resque::Version}"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque
3
3
  version: !ruby/object:Gem::Version
4
- hash: 93
4
+ hash: 91
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 18
9
- - 1
10
- version: 1.18.1
9
+ - 2
10
+ version: 1.18.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Wanstrath