clean things up

This commit is contained in:
John Bintz 2011-08-04 11:25:12 -04:00
parent 2226a3025e
commit 9cb8ac88bf
2 changed files with 3 additions and 18 deletions

View File

@ -4,7 +4,6 @@ source "http://rubygems.org"
gemspec gemspec
require 'rbconfig' require 'rbconfig'
gem 'guard'
gem 'guard-rspec' gem 'guard-rspec'
gem 'rake' gem 'rake'

View File

@ -9,23 +9,9 @@ RSpec::Core::RakeTask.new(:spec)
namespace :spec do namespace :spec do
desc "Run on three Rubies" desc "Run on three Rubies"
task :platforms do task :platforms do
current = %x{rvm-prompt v} 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}
fail = false exit $?.exitstatus
%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)
end end
end end