From 543ce97e1022598fdea3ba062ef17d7af765eae7 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 2 May 2013 09:56:05 -0400 Subject: [PATCH] add rdoc task --- Rakefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index fc12f29..709177f 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,13 @@ -#!/usr/bin/env rake require "bundler/gem_tasks" require 'rspec/core/rake_task' +require "rdoc/task" RSpec::Core::RakeTask.new('spec') task :default => :spec + +Rake::RDocTask.new(:rdoc) do |rdoc| + rdoc.rdoc_dir = 'rdoc' + rdoc.title = 'Yet Another Way to Parse Arguments' + rdoc.rdoc_files.include('lib/**/*.rb') +end