Fallback to `rubygems` 2.7.8 when failed to install 3.x by y-yagi · Pull Request #34783 · rails/rails
rubygems-update only supports Ruby >= 2.3.0. So it cannot install in Ruby 2.2, fall back to the old version failed to install. Ref: https://travis-ci.org/rails/rails/jobs/471729316#L749-L754