being more forgiving about rdoc task

compatibility for rake 0.9 and lower
pull/41/head
Gregor Schmidt 14 years ago committed by Romano Licker
parent ee543489f1
commit 322766dc4c
  1. 9
      Rakefile

@ -5,6 +5,13 @@ require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
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'

Loading…
Cancel
Save