Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rdoc should not be required

  • Loading branch information...
commit 58e06e17c1caefa5ed5cd02bb817cb3fb0336108 1 parent 7c3ec52
@bvandenbos bvandenbos authored
Showing with 12 additions and 5 deletions.
  1. +12 −5 Rakefile
View
17 Rakefile
@@ -1,11 +1,12 @@
require 'bundler'
-require 'rdoc/task'
+
Bundler::GemHelper.install_tasks
$LOAD_PATH.unshift 'lib'
task :default => :test
+# Tests
desc "Run tests"
task :test do
Dir['test/*_test.rb'].each do |f|
@@ -13,9 +14,15 @@ task :test do
end
end
-Rake::RDocTask.new do |rd|
- rd.main = "README.markdown"
- rd.rdoc_files.include("README.markdown", "lib/**/*.rb")
- rd.rdoc_dir = 'doc'
+# Documentation Tasks
+begin
+ require 'rdoc/task'
+
+ Rake::RDocTask.new do |rd|
+ rd.main = "README.markdown"
+ rd.rdoc_files.include("README.markdown", "lib/**/*.rb")
+ rd.rdoc_dir = 'doc'
+ end
+rescue LoadError
end
Please sign in to comment.
Something went wrong with that request. Please try again.