Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.499 kb
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
namespace(:spec) do
desc 'Run tests on all versions of ruby (requires rbenv)'
task :all do
`rbenv versions --bare`.split("\n").each do |vers|
run_for vers, ['bundle install', 'bundle exec rake']
end
end
end
def run_for(vers, commands)
system "RBENV_VERSION='#{vers}' sh -c '#{commands.map {|i| "rbenv exec #{i}"}.join(' && ')}'"
end
Jump to Line
Something went wrong with that request. Please try again.