make it possible to run rake tasks (the other tasks like delayed job etc. are included by the gems' railties)

pull/1186/head
Martin Linkhorst 12 years ago committed by Martin Czuchra
parent 7d174fed9f
commit 544614e9b7
  1. 5
      Gemfile
  2. 22
      Rakefile

@ -9,15 +9,14 @@ gem "rdoc", ">= 2.4.2"
# Needed only on RUBY_VERSION = 1.8, ruby 1.9+ compatible interpreters should bring their csv
gem "fastercsv", "~> 1.5.0", :platforms => [:ruby_18, :jruby, :mingw_18]
gem 'globalize3', :require => 'globalize'
gem "delayed_job", "~> 3.0.3"
gem "delayed_job_active_record" # that's how delayed job's readme recommends it
group :test do
gem 'shoulda', '~> 2.10.3'
gem 'edavis10-object_daddy', :require => 'object_daddy'
gem 'mocha'
platforms :mri_18, :mingw_18 do gem 'ruby-debug' end
platforms :mri_19, :mingw_19 do gem 'ruby-debug19', :require => 'ruby-debug' end
platforms :mri_18, :mingw_18, :mri_19, :mingw_19 do gem 'debugger' end
end
group :openid do

@ -1,23 +1,7 @@
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require File.expand_path('../config/application', __FILE__)
require 'rake'
require 'rake/testtask'
begin
# loading task with rake >= 0.9
require 'rdoc/task'
rescue LoadError
# loading task with rake < 0.9
require 'rake/rdoctask'
end
require 'tasks/rails'
begin
require 'delayed/tasks'
rescue LoadError
STDERR.puts "Run `rake gems:install` to install delayed_job"
end
OpenProject::Application.load_tasks

Loading…
Cancel
Save