Rakefile in chocbomb-0.0.2 vs Rakefile in chocbomb-0.0.3
- old
+ new
@@ -16,10 +16,11 @@
gem.add_dependency "builder",">=2.1.2"
gem.add_dependency "RedCloth", ">=4.2.3"
gem.add_development_dependency "jeweler", "~> 1.5.2"
gem.add_development_dependency "rcov", ">= 0"
+ gem.add_development_dependency "rdoc", ">= 0"
end
Jeweler::RubygemsDotOrgTasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
@@ -35,11 +36,11 @@
test.verbose = true
end
task :default => :test
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
+require 'rdoc/task'
+RDoc::Task.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "chocbomb #{version}"
rdoc.rdoc_files.include('README*')