From 9cb8ac88bf2281407946058f729c984c0de593e2 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 4 Aug 2011 11:25:12 -0400 Subject: [PATCH] clean things up --- Gemfile | 1 - Rakefile | 20 +++----------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/Gemfile b/Gemfile index 2b9f2a4..62a6625 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,6 @@ source "http://rubygems.org" gemspec require 'rbconfig' -gem 'guard' gem 'guard-rspec' gem 'rake' diff --git a/Rakefile b/Rakefile index 941b516..8c33355 100644 --- a/Rakefile +++ b/Rakefile @@ -9,23 +9,9 @@ RSpec::Core::RakeTask.new(:spec) namespace :spec do desc "Run on three Rubies" task :platforms do - current = %x{rvm-prompt v} - - fail = false - %w{1.8.7 1.9.2 ree}.each do |version| - puts "Switching to #{version}" - Bundler.with_clean_env do - system %{bash -c 'source ~/.rvm/scripts/rvm && rvm #{version} && bundle exec rake spec'} - end - if $?.exitstatus != 0 - fail = true - break - end - end - - system %{rvm #{current}} - - exit (fail ? 1 : 0) + system %{rvm 1.8.7,1.9.2,ree ruby bundle} + system %{rvm 1.8.7,1.9.2,ree ruby bundle exec rake spec} + exit $?.exitstatus end end