Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added RDoc task.

  • Loading branch information...
commit 4527bbf650df2a52bc7a16afc54a0a1561b93ab6 1 parent c054507
@chrislloyd chrislloyd authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 Rakefile
View
10 Rakefile
@@ -1,5 +1,6 @@
require 'rubygems'
require 'rake/gempackagetask'
+require 'rake/rdoctask'
require 'rubygems/specification'
require 'spec/rake/spectask'
require 'date'
@@ -31,10 +32,19 @@ spec = Gem::Specification.new do |s|
s.files = %w(LICENSE README.textile Rakefile) + Dir.glob("{lib,spec}/**/*")
end
+desc "Run Specs"
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
+desc "Generate Documentation"
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'doc'
+ rdoc.title = 'Gravtastic'
+ rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'Gravtastic'
+ rdoc.rdoc_files.include(FileList[ 'lib/**/*.rb', 'README.textile', 'LICENSE'])
+end
+
task :default => :spec
task :specs => :spec
Please sign in to comment.
Something went wrong with that request. Please try again.