resque 1.18.2 → 1.18.3

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,7 @@
1
+ ## 1.18.3 (2011-08-23)
2
+
3
+ * Bugfix: Fix preloading on Rails 3.x.
4
+
1
5
  ## 1.18.2 (2011-08-19)
2
6
 
3
7
  * Fix RAILS_ROOT deprecation warning
@@ -43,8 +43,12 @@ namespace :resque do
43
43
  # Preload app files if this is Rails
44
44
  task :preload do
45
45
  if defined? Rails
46
- Dir["#{Rails.root}/app/**/*.rb"].each do |file|
47
- require file
46
+ if Rails.version >= '3'
47
+ require 'rails/all'
48
+ else
49
+ Dir["#{Rails.root}/app/**/*.rb"].each do |file|
50
+ require file
51
+ end
48
52
  end
49
53
  end
50
54
  end
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = VERSION = '1.18.2'
2
+ Version = VERSION = '1.18.3'
3
3
  end
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: 91
4
+ hash: 89
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 18
9
- - 2
10
- version: 1.18.2
9
+ - 3
10
+ version: 1.18.3
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-19 00:00:00 -07:00
18
+ date: 2011-08-23 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency