diff options
author | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-09 09:39:16 +0000 |
---|---|---|
committer | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-09 09:39:16 +0000 |
commit | 84d551aeb858783b9d18d84864d90c4a958bd339 (patch) | |
tree | ae161d47720655b241aa60bda3604067c5de7a3d /Rakefile | |
parent | 4e78cd7c26ef3a2b9f88fde8d0ee90fdae667bd1 (diff) | |
download | slop-84d551aeb858783b9d18d84864d90c4a958bd339.tar.gz |
only create rdoc task if we can load rdoc/task
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -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 |