Rakefile in gravtastic-1.7.1 vs Rakefile in gravtastic-2.0.0
- old
+ new
@@ -1,13 +1,14 @@
require 'rubygems'
require 'rake/gempackagetask'
+require 'rake/rdoctask'
require 'rubygems/specification'
require 'spec/rake/spectask'
require 'date'
GEM = "gravtastic"
-GEM_VERSION = "1.7.1"
+GEM_VERSION = "2.0.0"
AUTHOR = "Chris Lloyd"
EMAIL = "christopher.lloyd@gmail.com"
HOMEPAGE = "http://github.com/chrislloyd/gravtastic"
SUMMARY = "Easily add Gravatars to your Ruby objects."
@@ -29,11 +30,20 @@
s.require_path = 'lib'
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