Permalink
Browse files

Clean up Rakefile.

  • Loading branch information...
1 parent 043d35f commit 4f016db60e8c89a97a6cd9f07d11d9e273c80704 @gabebw gabebw committed Apr 11, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 Rakefile
View
11 Rakefile
@@ -2,22 +2,23 @@
require 'rubygems'
require 'bundler/setup'
+require 'bundler/gem_tasks'
+
require 'rake'
-require 'rubygems/package_task'
-require 'cucumber/rake/task'
require 'diesel/tasks'
+require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'appraisal'
-task :default do |t|
+task :default do
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
exec 'rake spec cucumber'
else
Rake::Task['appraise'].execute
end
end
-task :appraise => ['appraisal:install'] do |t|
+task :appraise => ['appraisal:install'] do
exec 'rake appraisal spec cucumber'
end
@@ -27,5 +28,3 @@ Cucumber::Rake::Task.new(:cucumber) do |t|
t.fork = true
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end
-
-Bundler::GemHelper.install_tasks

0 comments on commit 4f016db

Please sign in to comment.