resque 1.18.0 → 1.18.1
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 +4 -0
- data/lib/resque/tasks.rb +8 -6
- data/lib/resque/version.rb +1 -1
- metadata +4 -4
data/HISTORY.md
CHANGED
data/lib/resque/tasks.rb
CHANGED
@@ -5,7 +5,7 @@ namespace :resque do
|
|
5
5
|
task :setup
|
6
6
|
|
7
7
|
desc "Start a Resque worker"
|
8
|
-
task :work => :setup do
|
8
|
+
task :work => [ :preload, :setup ] do
|
9
9
|
require 'resque'
|
10
10
|
|
11
11
|
queues = (ENV['QUEUES'] || ENV['QUEUE']).to_s.split(',')
|
@@ -39,11 +39,13 @@ namespace :resque do
|
|
39
39
|
|
40
40
|
threads.each { |thread| thread.join }
|
41
41
|
end
|
42
|
-
end
|
43
42
|
|
44
|
-
# Preload app files
|
45
|
-
task :
|
46
|
-
|
47
|
-
|
43
|
+
# Preload app files if this is Rails
|
44
|
+
task :preload do
|
45
|
+
if defined? RAILS_ROOT
|
46
|
+
Dir["#{RAILS_ROOT}/app/**/*.rb"].each do |file|
|
47
|
+
require file
|
48
|
+
end
|
49
|
+
end
|
48
50
|
end
|
49
51
|
end
|
data/lib/resque/version.rb
CHANGED
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: 93
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 18
|
9
|
-
-
|
10
|
-
version: 1.18.
|
9
|
+
- 1
|
10
|
+
version: 1.18.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Wanstrath
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-19 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|