Skip to content

Commit 4c9df11

Browse files
authored
Merge pull request #211 from rspec/update-rubygems-only-on-230
Pin Rubygems to 2.7.8 on older Rubies
2 parents 9fbc8a9 + fc3c80f commit 4c9df11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

travis/.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ cache:
55
directories:
66
- ../bundle
77
before_install:
8-
- gem update --system # https://github.com/travis-ci/travis-ci/issues/8978#issuecomment-354036443
8+
# We need to ensure the latest version of Rubygems, unless we're on an old Ruby.
9+
- gem update --system $(ruby -e "puts '2.7.8' if ENV['RUBY_VERSION'] >= '2.3.0'")
910
- gem install bundler
1011
- unset _JAVA_OPTIONS
1112
- "script/clone_all_rspec_repos"

0 commit comments

Comments
 (0)