Skip to content

Commit

Permalink
delayed_job updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
djcp committed Apr 28, 2010
1 parent 8496a60 commit 72f4613
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
5 changes: 5 additions & 0 deletions Rakefile
Expand Up @@ -8,3 +8,8 @@ require 'rake/testtask'
require 'rake/rdoctask'

require 'tasks/rails'
begin
require 'delayed/tasks'
rescue LoadError
STDERR.puts "Run `rake gems:install` to install delayed_job"
end
10 changes: 5 additions & 5 deletions config/environments/test.rb
Expand Up @@ -21,10 +21,10 @@
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test

config.gem "thoughtbot-shoulda", :lib => "shoulda", :source => "http://gems.github.com"
config.gem "shoulda", :version => '2.10.3'

config.gem "rspec", :lib => false
config.gem "rspec-rails", :lib => false
config.gem "remarkable_rails", :lib => false
config.gem "rspec", :version => '1.3.0'
config.gem "rspec-rails", :version => '1.3.2'
config.gem "remarkable_rails", :version => '3.1.13'

config.gem "thoughtbot-factory_girl", :lib => 'factory_girl', :source => 'http://gems.github.com'
config.gem "factory_girl", :version => '1.2.4'
6 changes: 2 additions & 4 deletions script/delayed_job
@@ -1,7 +1,5 @@
#!/usr/bin/env ruby

# Daemons sets pwd to /, so we have to explicitly set RAILS_ROOT
RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))

require File.join(File.dirname(__FILE__), *%w(.. vendor plugins delayed_job lib delayed command))
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
require 'delayed/command'
Delayed::Command.new(ARGV).daemonize

0 comments on commit 72f4613

Please sign in to comment.