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 +4 -0
- data/lib/resque/tasks.rb +2 -2
- data/lib/resque/version.rb +1 -1
- data/lib/resque/worker.rb +1 -1
- metadata +3 -3
data/HISTORY.md
CHANGED
data/lib/resque/tasks.rb
CHANGED
@@ -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?
|
46
|
-
Dir["#{
|
45
|
+
if defined? Rails
|
46
|
+
Dir["#{Rails.root}/app/**/*.rb"].each do |file|
|
47
47
|
require file
|
48
48
|
end
|
49
49
|
end
|
data/lib/resque/version.rb
CHANGED
data/lib/resque/worker.rb
CHANGED
@@ -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
|
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:
|
4
|
+
hash: 91
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 18
|
9
|
-
-
|
10
|
-
version: 1.18.
|
9
|
+
- 2
|
10
|
+
version: 1.18.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Wanstrath
|