From 81d3ecf766802f2aab7bb5b6627cd9d597a4eab8 Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Thu, 3 Jan 2019 14:20:23 -0800 Subject: [PATCH 1/2] Lower required RubyGems to 2.5 or greater It turns out that every existing version of RubyGems will ignore the required RubyGems version and try to install the newest version of Bundler... until the middle of the install, when it will raise an exception and fail. There are some bugfixes in RubyGems 3 that improve the quality of life for Bundler 2 users, but they are less bad than RubyGems simply exploding anytime you try to run `gem install bundler`. --- bundler.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundler.gemspec b/bundler.gemspec index af65811f23d..fff5d0dfd57 100644 --- a/bundler.gemspec +++ b/bundler.gemspec @@ -34,7 +34,7 @@ Gem::Specification.new do |s| if s.version >= Gem::Version.new("2.a".dup) s.required_ruby_version = ">= 2.3.0" - s.required_rubygems_version = ">= 3.0.0" + s.required_rubygems_version = ">= 2.5.0" else s.required_ruby_version = ">= 1.8.7" s.required_rubygems_version = ">= 1.3.6" From 31678a323f42b48c29cc7c1208205afd3c137087 Mon Sep 17 00:00:00 2001 From: Colby Swandale Date: Fri, 4 Jan 2019 09:58:11 +1100 Subject: [PATCH 2/2] update tested rubygems in travis --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index 57dec9ae49b..f34ea4ca811 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,6 +47,21 @@ matrix: # 3.x mode - rvm: 2.5.3 env: RGV=v3.0.1 BUNDLER_SPEC_SUB_VERSION=3.0.0 + # Ruby 2.5, Rubygems 2.7 and up + - rvm: 2.5.3 + env: RGV=v2.7.7 + # Ruby 2.4, Rubygems 2.6 and up + - rvm: 2.4.5 + env: RGV=v2.6.14 + - rvm: 2.4.5 + env: RGV=v2.7.7 + # Ruby 2.3, Rubygems 2.5 and up + - rvm: 2.3.7 + env: RGV=v2.5.2 + - rvm: 2.3.7 + env: RGV=v2.6.14 + - rvm: 2.3.7 + env: RGV=v2.7.7 # Ruby-head (we want to know how we're doing, but not fail the build) - rvm: ruby-head env: RGV=master