clean up rake and gem files

This commit is contained in:
John Bintz 2011-08-04 11:31:42 -04:00
parent 45b8b6c4a2
commit 16fe8bab53
2 changed files with 6 additions and 19 deletions

View File

@ -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'

View File

@ -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