Browse files

Compatibility with new rake.

  • Loading branch information...
1 parent cf14da2 commit 1bd429a67f1da5c5f60d85caf099b3a64d25762e @sibprogrammer committed Feb 10, 2013
Showing with 16 additions and 2 deletions.
  1. +8 −1 Rakefile
  2. +8 −1 script/cron_runner
View
9 Rakefile
@@ -5,6 +5,13 @@ require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
-require 'rake/rdoctask'
+
+begin
+ gem 'rdoc'
+ require 'rdoc/task'
+rescue Gem::LoadError
+ require 'rake/rdoctask'
+end
require 'tasks/rails'
+
View
9 script/cron_runner
@@ -3,7 +3,14 @@
require File.dirname(__FILE__) + '/../config/boot'
require 'rake'
require 'rake/testtask'
-require 'rake/rdoctask'
+
+begin
+ gem 'rdoc'
+ require 'rdoc/task'
+rescue Gem::LoadError
+ require 'rake/rdoctask'
+end
+
require 'tasks/rails'
Rake::Task['cron:all'].invoke

0 comments on commit 1bd429a

Please sign in to comment.