Fix rubygems update for rubies < 2.3.

https://github.com/rubygems/rubygems/issues/2534
This commit is contained in:
Andy Brody 2019-08-21 16:30:59 -04:00
parent 66b586e83a
commit ea0c6f6754
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ branches:
- "readme-edits"
before_install:
- gem update --system
# Install rubygems < 3.0 so that we can support ruby < 2.3
# https://github.com/rubygems/rubygems/issues/2534
- gem install rubygems-update -v '<3' && update_rubygems
# bundler installation needed for jruby-head
# https://github.com/travis-ci/travis-ci/issues/5861
- gem install bundler