clean up rake and gem files
This commit is contained in:
parent
45b8b6c4a2
commit
16fe8bab53
4
Gemfile
4
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'
|
||||
|
21
Rakefile
21
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user