Permalink
Browse files

make Rakefile more robust for rdoc versions

  • Loading branch information...
1 parent 9956951 commit cc1ca5628f764f17b1c56d423cd7a3a64a5407d4 @rick committed Apr 26, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 Rakefile
View
@@ -1,7 +1,12 @@
require 'rubygems'
require 'rake'
require 'rake/testtask'
-require 'rake/rdoctask'
+
+begin
+ require 'rdoc/task'
+rescue LoadError
+ require 'rake/rdoctask'
+end
require 'rspec/core/rake_task'
desc 'Default: run specs.'
@@ -27,7 +32,7 @@ begin
gemspec.add_dependency('httparty', '>= 0.4.4')
gemspec.add_dependency('crack', '>= 0.3.1')
end
- Jeweler::GemcutterTasks.new
+ Jeweler::GemcutterTasks.new
rescue LoadError
end

0 comments on commit cc1ca56

Please sign in to comment.