diff options
author | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-08 13:27:45 +0000 |
---|---|---|
committer | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-08 13:27:45 +0000 |
commit | 27cb560694ec4a4d81bb3cda7ee8d00395af04ff (patch) | |
tree | d00bab16e8be2d4c18c602fef5b4d087ed4e0c5d /Rakefile | |
parent | 5b0f8a01e0c25d5b914796686700f18af5dd2b72 (diff) | |
download | slop-27cb560694ec4a4d81bb3cda7ee8d00395af04ff.tar.gz |
added rdoc task
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -10,4 +10,19 @@ 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' + + rdoc.rdoc_files.include('lib/**/*.rb') +end + task :default => :test |