diff options
Diffstat (limited to 'rake_tasks/documentation.rake')
-rw-r--r-- | rake_tasks/documentation.rake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rake_tasks/documentation.rake b/rake_tasks/documentation.rake index 16142fd..796e281 100644 --- a/rake_tasks/documentation.rake +++ b/rake_tasks/documentation.rake @@ -1,5 +1,9 @@ -gem 'rdoc' if defined? gem
-require 'rdoc/task'
+if RUBY_VERSION >= '1.8.7'
+ gem 'rdoc' if defined? gem
+ require 'rdoc/task'
+else
+ require 'rake/rdoctask'
+end
desc 'Generate documentation for CodeRay'
Rake::RDocTask.new :doc do |rd|
|