summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
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