templates/full/Rakefile.erb in methadone-0.3.0 vs templates/full/Rakefile.erb in methadone-0.3.1
- old
+ new
@@ -1,10 +1,11 @@
require 'bundler'
require 'rake/clean'
require 'rake/testtask'
require 'cucumber'
require 'cucumber/rake/task'
+gem 'rdoc' # we need the installed RDoc gem, not the system one
require 'rdoc/task'
include Rake::DSL
Bundler::GemHelper.install_tasks
@@ -19,10 +20,12 @@
t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format progress -x"
t.fork = false
end
Rake::RDocTask.new do |rd|
+ <% if using_readme %>
rd.main = "README.rdoc"
+ <% end %>
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
end
task :default => [:test,:features]