Skip to content

Upgrading bundler 1 to 2

Breaking1.17.3 → 2.7.2Breaking1Security2Deprecated6New13Changed32Fixed80Other40

Fetching 139 releases from GitHub…16 / 139
BreakingUpgrade verdict

1 breaking change and 2 security fixes.

  • Uses -rrubygems instead of -rubygems.rb because ubygems.rb is unavailable on Ruby 2.5.
  • If a gem download fails, the password in the gem source URL is no longer printed in the error message.
  • The gem server now escapes user-supplied content on its web pages so it cannot be used to inject scripts.
  • Warns when requiring deprecated files.
Top 5 of 9 that need code or config changes

Ruby requirement changed in 2.7.0: >= 1.8.7 → >= 3.2.0.

Breaking1
Uses -rrubygems instead of -rubygems.rb because ubygems.rb is unavailable on Ruby 2.5.
-rrubygems-rubygems.rbubygems.rb
Security2
Redacts uri password from error output when gem fetch fails.
Escapes user-supplied content served by gem server to avoid potential XSS vulnerabilities.
gem server
Deprecated6
Warns when requiring deprecated files.
Deprecates Gem::InstallerTestCase#util_gem_bindir and Gem::InstallerTestCase#util_gem_dir.
Gem::InstallerTestCase#util_gem_bindirGem::InstallerTestCase#util_gem_dir
Deprecates passing options to Gem::GemRunner.
Gem::GemRunner
Adds a deprecation for Gem#datadir.
Gem#datadir
Adds a deprecation warning for Gem::DependencyInstaller#gems_to_install.
Gem::DependencyInstaller#gems_to_install
Restores but deprecates support for Array values on Gem.paths=.
Gem.paths=