summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2013-01-09 09:39:16 +0000
committerLee Jarvis <ljjarvis@gmail.com>2013-01-09 09:39:16 +0000
commit84d551aeb858783b9d18d84864d90c4a958bd339 (patch)
treeae161d47720655b241aa60bda3604067c5de7a3d /Rakefile
parent4e78cd7c26ef3a2b9f88fde8d0ee90fdae667bd1 (diff)
downloadslop-84d551aeb858783b9d18d84864d90c4a958bd339.tar.gz
only create rdoc task if we can load rdoc/task
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/Rakefile b/Rakefile
index 2f3655f..d727f26 100644
--- a/Rakefile
+++ b/Rakefile
@@ -10,19 +10,20 @@ Rake::TestTask.new do |t|
t.test_files = Dir['test/*_test.rb']
end
-# require 'rdoc/task'
-
-# requires sdoc and horo gems
-# RDoc::Task.new do |rdoc|
-# rdoc.title = 'Slop API Documentation'
-# rdoc.rdoc_dir = 'doc'
-
-# rdoc.options << '-f' << 'sdoc'
-# rdoc.options << '-T' << 'rails'
-# rdoc.options << '-e' << 'UTF-8'
-# rdoc.options << '-g'
+begin
+ require 'rdoc/task'
-# rdoc.rdoc_files.include('lib/**/*.rb')
-# end
+ # requires sdoc and horo gems
+ RDoc::Task.new do |rdoc|
+ rdoc.title = 'Slop API Documentation'
+ rdoc.rdoc_dir = 'doc'
+ rdoc.options << '-f' << 'sdoc'
+ rdoc.options << '-T' << 'rails'
+ rdoc.options << '-e' << 'UTF-8'
+ rdoc.options << '-g'
+ rdoc.rdoc_files.include('lib/**/*.rb')
+ end
+rescue LoadError
+end
task :default => :test