Skip to content

Commit

Permalink
Auto-install the right bundler version (thoughtbot#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored Mar 26, 2020
1 parent ac8341f commit 5868643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
before_install: gem install bundler:1.17.3
before_install: gem install bundler:2.1.4

rvm:
- 2.3
Expand Down
4 changes: 2 additions & 2 deletions lib/appraisal/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5868643

Please sign in to comment.