Rakefile in sanitize_email-1.1.6 vs Rakefile in sanitize_email-1.1.7
- old
+ new
@@ -25,11 +25,39 @@
namespace :test do
desc "Test against all supported Rails versions"
task :all do
%w(3.0.x 3.1.x 3.2.x 4.0.x).each do |version|
- sh %[BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle --quiet]
- sh %[BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle exec rspec spec]
+ system(<<-EOS
+ bash -i -c "rvm use 1.9.3"
+ BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle --quiet
+ BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle exec rspec spec
+ EOS
+ )
+ end
+ %w(3.2.x 4.0.x 4.1.x).each do |version|
+ system(<<-EOS
+ bash -i -c "rvm use 2.0.0"
+ BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle --quiet
+ BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle exec rspec spec
+ EOS
+ )
+ end
+ %w(3.2.x 4.0.x 4.1.x).each do |version|
+ system(<<-EOS
+ bash -i -c "rvm use 2.1.7"
+ BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle --quiet
+ BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle exec rspec spec
+ EOS
+ )
+ end
+ %w(3.2.x 4.0.x 4.1.x 4.2.x).each do |version|
+ system(<<-EOS
+ bash -i -c "rvm use 2.2.3"
+ BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle --quiet
+ BUNDLE_GEMFILE="gemfiles/Gemfile.rails-#{version}" bundle exec rspec spec
+ EOS
+ )
end
end
end
require File.expand_path("../lib/sanitize_email/version", __FILE__)