diff --git a/.travis.yml b/.travis.yml index 4a43a987..04fca451 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ --- -before_install: gem install bundler:1.17.3 +before_install: gem install bundler:2.1.4 rvm: - 2.3 diff --git a/lib/appraisal/command.rb b/lib/appraisal/command.rb index 5ba7f794..26619e50 100644 --- a/lib/appraisal/command.rb +++ b/lib/appraisal/command.rb @@ -41,9 +41,9 @@ def with_clean_env end def ensure_bundler_is_available - unless system %(gem list -q "^bundler$" | grep -q bundler) + version = Utils.bundler_version + unless system %(gem list -i bundler -v #{version}) puts ">> Reinstall Bundler into #{ENV["GEM_HOME"]}" - version = Utils.bundler_version unless system "gem install bundler --version #{version}" puts