Rakefile in earth-0.4.5 vs Rakefile in earth-0.4.6
- old
+ new
@@ -11,10 +11,12 @@
require 'irb'
ARGV.clear
IRB.start
end
+require 'cucumber'
+require 'cucumber/rake/task'
desc 'Run all cucumber tests'
Cucumber::Rake::Task.new(:features) do |t|
if ENV['CUCUMBER_FORMAT']
t.cucumber_opts = "features --format #{ENV['CUCUMBER_FORMAT']}"
else
@@ -28,11 +30,10 @@
t.rcov = true
t.rcov_opts = ['--exclude', 'features']
end
require 'rspec/core/rake_task'
-
desc "Run all examples"
RSpec::Core::RakeTask.new(:examples) do |c|
c.rspec_opts = '-Ispec'
end
@@ -44,12 +45,13 @@
end
task :test => [:features, :examples]
task :default => :test
+require 'rake/rdoctask'
require 'earth/version'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "#{gemname} #{Earth::VERSION}"
+ rdoc.title = "earth #{Earth::VERSION}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end