summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2013-01-08 13:27:45 +0000
committerLee Jarvis <ljjarvis@gmail.com>2013-01-08 13:27:45 +0000
commit27cb560694ec4a4d81bb3cda7ee8d00395af04ff (patch)
treed00bab16e8be2d4c18c602fef5b4d087ed4e0c5d /Rakefile
parent5b0f8a01e0c25d5b914796686700f18af5dd2b72 (diff)
downloadslop-27cb560694ec4a4d81bb3cda7ee8d00395af04ff.tar.gz
added rdoc task
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 8b76d7a..ee501ed 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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