From 16fe8bab539e3586810a79c1ff95cbc53f3b63c0 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 4 Aug 2011 11:31:42 -0400 Subject: [PATCH] clean up rake and gem files --- Gemfile | 4 ++-- Rakefile | 21 ++++----------------- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/Gemfile b/Gemfile index 6f81014..ff56dab 100644 --- a/Gemfile +++ b/Gemfile @@ -2,9 +2,9 @@ source "http://rubygems.org" # Specify your gem's dependencies in guard-rails.gemspec gemspec -gem 'rake', '0.8.7' +gem 'rake' gem 'fakefs', :require => nil -gem 'guard', :git => 'https://github.com/guard/guard.git' +gem 'guard' gem 'guard-rspec' require 'rbconfig' diff --git a/Rakefile b/Rakefile index a66bd53..7050f4f 100644 --- a/Rakefile +++ b/Rakefile @@ -15,23 +15,10 @@ 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) + prefix = "rvm 1.8.7,1.9.2,ree ruby" + system %{#{prefix} bundle} + system %{#{prefix} bundle exec rake spec} + exit $?.exitstatus end end