Rakefile in anemone-0.7.0 vs Rakefile in anemone-0.7.1
- old
+ new
@@ -1,8 +1,7 @@
-require 'rubygems'
-require 'rake'
require 'rspec/core/rake_task'
+require 'rake/rdoctask'
desc "Run all specs"
RSpec::Core::RakeTask.new(:rspec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
end
@@ -12,11 +11,10 @@
spec.rcov = true
end
task :default => :rspec
-require 'rdoc/task'
-RDoc::Task.new do |rdoc|
+Rake::RDocTask.new(:rdoc) do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "anemone #{version}"
rdoc.rdoc_files.include('README*')