Skip to content
Browse files

Support old version of rake/rdoctask in Rakefile as well

  • Loading branch information...
1 parent 9d24d42 commit eebace50997187f5489b8f48728e4f830129b8f1 @shuber committed Jan 25, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
View
6 Rakefile
@@ -1,5 +1,9 @@
require 'rake/testtask'
-require 'rdoc/task'
+begin
+ require 'rdoc/task'
+rescue LoadError
+ require 'rake/rdoctask'
+end
desc 'Default: run unit tests.'
task :default => :test

0 comments on commit eebace5

Please sign in to comment.
Something went wrong with that request. Please try again.