<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/bundler/self_manager.rb, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/rubygems] Handle BUNDLER_VERSION being set to an empty string</title>
<updated>2025-11-19T01:27:25+00:00</updated>
<author>
<name>Cody Cutrer</name>
<email>cody@instructure.com</email>
</author>
<published>2023-08-30T22:52:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=83b0cfe1b5d5cab1328aeeac0c1c6eb2484b66de'/>
<id>83b0cfe1b5d5cab1328aeeac0c1c6eb2484b66de</id>
<content type='text'>
This is useful, in case you're using Docker, and an upstream
Dockerfile sets BUNDLER_VERSION to something you don't want.
It's impossible to unset it... only override to be the empty
string.

https://github.com/ruby/rubygems/commit/ffa3eb9ac6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is useful, in case you're using Docker, and an upstream
Dockerfile sets BUNDLER_VERSION to something you don't want.
It's impossible to unset it... only override to be the empty
string.

https://github.com/ruby/rubygems/commit/ffa3eb9ac6
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Simulate Bundler 4 in a better way</title>
<updated>2025-06-25T23:06:48+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-06-18T20:08:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=90085f62fb793f47e43b64acf6a32900ba8e6e4d'/>
<id>90085f62fb793f47e43b64acf6a32900ba8e6e4d</id>
<content type='text'>
Overriding the version constant feels too magic and creates a set of
problems. For example, Bundler will lock the simulated version, and that
can cause issues when the lockfile is used under an environment not
simulating Bundler 4 (it will try to auto-install and auto-switch to a
version that does not exist).

On top of that, it can only be configured with an ENV variable which is
not too flexible.

This commit takes a different approach of using a setting, which is
configurable through ENV or `bundle config`, and pass the simulated
version to `Bundler::FeatureFlag`. The real version is still the one set
by `VERSION`, but anything that `Bundler::FeatureFlag` controls will use
the logic of the "simulated version".

In particular, all feature flags and deprecation messages will respect
the simulated version, and this is exactly the set of functionality that
we want users to be able to easily try before releasing it.

https://github.com/rubygems/rubygems/commit/8129402193
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Overriding the version constant feels too magic and creates a set of
problems. For example, Bundler will lock the simulated version, and that
can cause issues when the lockfile is used under an environment not
simulating Bundler 4 (it will try to auto-install and auto-switch to a
version that does not exist).

On top of that, it can only be configured with an ENV variable which is
not too flexible.

This commit takes a different approach of using a setting, which is
configurable through ENV or `bundle config`, and pass the simulated
version to `Bundler::FeatureFlag`. The real version is still the one set
by `VERSION`, but anything that `Bundler::FeatureFlag` controls will use
the logic of the "simulated version".

In particular, all feature flags and deprecation messages will respect
the simulated version, and this is exactly the set of functionality that
we want users to be able to easily try before releasing it.

https://github.com/rubygems/rubygems/commit/8129402193
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Fix `Bundler.original_env['GEM_HOME']` when Bundler is trampolined</title>
<updated>2025-06-24T03:10:50+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-06-19T10:26:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7a297ad2f999a49ea0796592921f5358480cc9bb'/>
<id>7a297ad2f999a49ea0796592921f5358480cc9bb</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/4c450eb05e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/4c450eb05e
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Remove no longer necessary workarounds for restarts</title>
<updated>2025-06-24T03:10:50+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-06-19T15:01:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=32a9f29cc8695a4d8f51276e47e2aae898d1ce40'/>
<id>32a9f29cc8695a4d8f51276e47e2aae898d1ce40</id>
<content type='text'>
Since we no longer pass ruby CLI flags in our spec commands, we no
longer need the previous workaround and can get the realworld code
tested.

https://github.com/rubygems/rubygems/commit/fd92c855fb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since we no longer pass ruby CLI flags in our spec commands, we no
longer need the previous workaround and can get the realworld code
tested.

https://github.com/rubygems/rubygems/commit/fd92c855fb
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip to Bundler 4 directly</title>
<updated>2025-06-19T01:23:36+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-06-10T14:11:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=441f18df5279ba8f921015dcdd9ed1e7299660e9'/>
<id>441f18df5279ba8f921015dcdd9ed1e7299660e9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Allow enabling "Bundler 3 mode" more easily</title>
<updated>2025-06-19T01:23:36+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2023-03-13T13:28:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4245d522b2af5c17a08b3555ffed011a5aa508b2'/>
<id>4245d522b2af5c17a08b3555ffed011a5aa508b2</id>
<content type='text'>
Currently to test Bundler 3 mode we have to actually edit the version
file to simulate we're running a future version. This is inconvenient.

Instead, allow passing an environment variable, `BUNDLER_3_MODE`, to set
the "working mode" Bundler should use.

This can now be set easily by end users to enable them to try out the
changes in the future version and give us feedback.

It's unclear how version auto-switching should work when this
environment variable is set, so the auto-switching feature will be
disabled in that case.

https://github.com/rubygems/rubygems/commit/4e92e9b209
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently to test Bundler 3 mode we have to actually edit the version
file to simulate we're running a future version. This is inconvenient.

Instead, allow passing an environment variable, `BUNDLER_3_MODE`, to set
the "working mode" Bundler should use.

This can now be set easily by end users to enable them to try out the
changes in the future version and give us feedback.

It's unclear how version auto-switching should work when this
environment variable is set, so the auto-switching feature will be
disabled in that case.

https://github.com/rubygems/rubygems/commit/4e92e9b209
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Fix `bundle update --bundler` when restarts disabled</title>
<updated>2025-06-05T10:12:45+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-05-29T18:49:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e4933e1d93218ff740ea6ac552b309eca03ba5d1'/>
<id>e4933e1d93218ff740ea6ac552b309eca03ba5d1</id>
<content type='text'>
There's no reason why we should not update bundler as requested, even if
restarts are disabled.

https://github.com/rubygems/rubygems/commit/e59acd2a0d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There's no reason why we should not update bundler as requested, even if
restarts are disabled.

https://github.com/rubygems/rubygems/commit/e59acd2a0d
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Look in configured path when checking if self-update version is installed</title>
<updated>2025-06-05T10:12:44+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-06-03T10:56:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5cf07c1e8fa32ff4619c02b1762b5b7bb074ad71'/>
<id>5cf07c1e8fa32ff4619c02b1762b5b7bb074ad71</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/1ce0882e6f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/1ce0882e6f
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Refactor restarts to not need memoizing the restart version</title>
<updated>2025-06-05T10:12:43+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-05-29T18:27:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0e6805eb31b0c478f6ee5a2aa9e5b85f75318304'/>
<id>0e6805eb31b0c478f6ee5a2aa9e5b85f75318304</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/a9d80a7dcb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/a9d80a7dcb
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Reduce duplication a bit</title>
<updated>2025-06-05T10:12:40+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2023-03-13T13:26:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e74008bfc9b0d3017e924e6eef39a4aeef7de01c'/>
<id>e74008bfc9b0d3017e924e6eef39a4aeef7de01c</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/0574c62fc0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/0574c62fc0
</pre>
</div>
</content>
</entry>
</feed>
