Permalink
Browse files

Added RDoc task

  • Loading branch information...
1 parent 063b3cf commit ec3922c060acd3162a0c34d96e275064c46a52de @reagent committed Jan 14, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 Rakefile
View
@@ -1,6 +1,7 @@
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
+require 'hanna/rdoctask'
require File.expand_path('../lib/fleakr/version', __FILE__)
@@ -24,6 +25,18 @@ Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
+Rake::RDocTask.new(:doc) do |doc|
+ doc.rdoc_files.include('README.rdoc').
+ include('lib/**/*.rb').
+ exclude('lib/fleakr/version.rb')
+
+ doc.main = "README.rdoc" # page to start on
+ doc.title = "Fleakr #{Fleakr::Version} Documentation"
+
+ doc.rdoc_dir = "doc/#{Fleakr::Version}"
+ doc.options << '--quiet'
+end
+
desc 'Install this Gem'
task :install => :gem do
sh "gem install pkg/#{spec.full_name}.gem"

0 comments on commit ec3922c

Please sign in to comment.