Skip to content

Commit 22d1fe1

Browse files
author
mpd
committed
Merge branch 'defunkt' into distributed
2 parents 6caf6b6 + 5328e6c commit 22d1fe1

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rvm:
2+
- 1.8.7
3+
- 1.9.2
4+
- jruby
5+
- rbx-2.0

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ group :test do
88
gem "mocha", "~> 0.9.7"
99
gem "leftright", :platforms => :mri_18
1010
gem "yajl-ruby", "~>0.8.2", :platforms => :mri
11-
gem "json", "~>1.5.3", :platforms => :jruby
11+
gem "json", "~>1.5.3", :platforms => [:jruby, :rbx]
1212
end

HISTORY.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 1.18.5 (2011-08-24)
2+
3+
* Added support for Travis CI
4+
* Bugfix: preload only happens in production Rails environment
5+
6+
## 1.18.4 (2011-08-23)
7+
8+
* Bugfix: preload task depends on setup
9+
10+
## 1.18.3 (2011-08-23)
11+
12+
* Bugfix: Fix preloading on Rails 3.x.
13+
114
## 1.18.2 (2011-08-19)
215

316
* Fix RAILS_ROOT deprecation warning

lib/resque/tasks.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
end
4242

4343
# Preload app files if this is Rails
44-
task :preload do
45-
if defined? Rails
44+
task :preload => :setup do
45+
if defined?(Rails) && Rails.env == 'production'
4646
Dir["#{Rails.root}/app/**/*.rb"].each do |file|
4747
require file
4848
end

lib/resque/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Resque
2-
Version = VERSION = '1.18.2'
2+
Version = VERSION = '1.18.5'
33
end

0 commit comments

Comments
 (0)