What's New in RubyGems/Bundler 4.1, Part 1: override and prune

ruby dev.to

I'm Hiroshi Shibata (hsbt), a Ruby committer and the lead maintainer of RubyGems and Bundler. TL;DR RubyGems and Bundler 4.1.0.beta2 shipped on October 8, 2026. This is Part 1 of a three-part series on what's new in 4.1, and it covers two features. override in the Gemfile rewrites version constraints declared by your dependencies, transitive ones included, and can even drop or replace a dependency. The prune setting makes Bundler delete download caches and .git directories after inst

Read Full Tutorial open_in_new
arrow_back Back to Tutorials