<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/spec/bundler/install/gems, branch v4.0.3</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] Improve error messages and handling in tests</title>
<updated>2025-11-20T22:02:28+00:00</updated>
<author>
<name>eileencodes</name>
<email>eileencodes@gmail.com</email>
</author>
<published>2025-11-19T17:08:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cb9c7a6a0a451fc158055145d0bce4891b62e32f'/>
<id>cb9c7a6a0a451fc158055145d0bce4891b62e32f</id>
<content type='text'>
This is a first pass to improve the way errors are handled and raised in
bundler's tests. The goal is to clean up tests and modernize them -
these were some obvious areas that could be cleaned up.

- Instead of raising "ZOMG" in the load error tests, it now tests for
the actual error and gem raising.
- Improve error messages where applicable.
- All errors raise a specific error class, rather than falling back to a
default and just setting a message.
- Removed arguments and `bundle_dir` option from `TheBundle` class as it wasn't
actually used so therefore we don't need to raise an error for extra
arguments.
- Removed error from `BundlerBuilder`, as it won't work if it's not
`bundler`, also it never uses `name`. The only reaon `name` is passed
in is because of metaprogramming on loading the right builder. I
think that should eventually be refactored.
- Replaced and removed `update_repo3` and `update_repo4` in favor of
just `build_repo3` and `build_repo4`. Rather than tell someone writing
tests to use a different method, automatically use the right method.

https://github.com/ruby/rubygems/commit/68c39c8451
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a first pass to improve the way errors are handled and raised in
bundler's tests. The goal is to clean up tests and modernize them -
these were some obvious areas that could be cleaned up.

- Instead of raising "ZOMG" in the load error tests, it now tests for
the actual error and gem raising.
- Improve error messages where applicable.
- All errors raise a specific error class, rather than falling back to a
default and just setting a message.
- Removed arguments and `bundle_dir` option from `TheBundle` class as it wasn't
actually used so therefore we don't need to raise an error for extra
arguments.
- Removed error from `BundlerBuilder`, as it won't work if it's not
`bundler`, also it never uses `name`. The only reaon `name` is passed
in is because of metaprogramming on loading the right builder. I
think that should eventually be refactored.
- Replaced and removed `update_repo3` and `update_repo4` in favor of
just `build_repo3` and `build_repo4`. Rather than tell someone writing
tests to use a different method, automatically use the right method.

https://github.com/ruby/rubygems/commit/68c39c8451
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] Fix triple spacing when generating lockfile</title>
<updated>2025-11-14T00:19:56+00:00</updated>
<author>
<name>Jimmy Lin</name>
<email>jmlntw@gmail.com</email>
</author>
<published>2021-09-05T11:38:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5924765b897dd419bcaf81f34cdfcb49c838af7e'/>
<id>5924765b897dd419bcaf81f34cdfcb49c838af7e</id>
<content type='text'>
https://github.com/ruby/rubygems/commit/d3baf4110e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rubygems/commit/d3baf4110e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] Replace Pathname#rmtree to FileUtils.rm_rf directly</title>
<updated>2025-11-07T20:12:47+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-11-06T22:23:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2518aa9117907d7ed08f469df596c0be961fc8fe'/>
<id>2518aa9117907d7ed08f469df596c0be961fc8fe</id>
<content type='text'>
https://github.com/ruby/rubygems/commit/33c7a9a565
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rubygems/commit/33c7a9a565
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Completely remove multisources support</title>
<updated>2025-09-16T08:17:32+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>2887858+deivid-rodriguez@users.noreply.github.com</email>
</author>
<published>2025-09-09T17:18:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6adcc5596884619e386d5412e94ef4443868b94f'/>
<id>6adcc5596884619e386d5412e94ef4443868b94f</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/8f9d6c54a1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/8f9d6c54a1
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Complete remembered options removal</title>
<updated>2025-09-11T02:54:49+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>2887858+deivid-rodriguez@users.noreply.github.com</email>
</author>
<published>2025-09-09T12:37:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ecd1284bf246ae739890d154706f4f533bc8d77e'/>
<id>ecd1284bf246ae739890d154706f4f533bc8d77e</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/573ffad3ea
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/573ffad3ea
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Remove unnecessary branching</title>
<updated>2025-07-28T00:39:03+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-24T19:49:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0dc86fd8435c742dbd32dafd7483904a06658764'/>
<id>0dc86fd8435c742dbd32dafd7483904a06658764</id>
<content type='text'>
We now run specs against a single version, so I prefer to keep a single
branch. Once we bump the major version, this will need very little
updates, and that seems fine.

https://github.com/rubygems/rubygems/commit/3866d25a00
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We now run specs against a single version, so I prefer to keep a single
branch. Once we bump the major version, this will need very little
updates, and that seems fine.

https://github.com/rubygems/rubygems/commit/3866d25a00
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Don't create an empty bundled_app when setting up deps</title>
<updated>2025-07-25T02:10:36+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-23T15:41:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=63c422377543a8d8ec8efc4aacb6c0f1a8533ff7'/>
<id>63c422377543a8d8ec8efc4aacb6c0f1a8533ff7</id>
<content type='text'>
Running everything in `bundled_app` by default causes the `bundled_app`
helper to be used everytime, and that will create a scoped bundled_app
folder if it does not exist. That causes `bin/rake spec:deps` to create
an empty `tmp/2.1/bundled_app` folder which is a bit weird.

This commit changes specs to not switch to a (possibly empty)
bundled_app directory when not necessary (for example, when running
`gem` commands in order to setup test dependencies).

https://github.com/rubygems/rubygems/commit/4bf89c0705
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Running everything in `bundled_app` by default causes the `bundled_app`
helper to be used everytime, and that will create a scoped bundled_app
folder if it does not exist. That causes `bin/rake spec:deps` to create
an empty `tmp/2.1/bundled_app` folder which is a bit weird.

This commit changes specs to not switch to a (possibly empty)
bundled_app directory when not necessary (for example, when running
`gem` commands in order to setup test dependencies).

https://github.com/rubygems/rubygems/commit/4bf89c0705
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Remove unnecessary nesting from standalone specs</title>
<updated>2025-07-07T02:53:05+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-03T06:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e95adbfa68f583c4a67fdc4b0ba4eca85fa44b5e'/>
<id>e95adbfa68f583c4a67fdc4b0ba4eca85fa44b5e</id>
<content type='text'>
Originally, all the specs in this file were put inside a shared examples
block, and since then all specs were run only changing the cwd (either
from root, or a subdirectory).

This was in https://github.com/rubygems/rubygems/commit/d7291700d016, to cover a fix in
the `bundler_path` method.

However, reverting that fix does not make any of the specs in either of
the main blocks fail! Only an unrelated spec of `bundle install
--standalone --local` fails.

The reason is that all specs set `path` to an absolute path, making the
fix essentially uncovered.

In order to simplify the file structure and improve runtime, I
completely removed the shared examples block, and only run main specs
for the root directory. Then I added a couple of extra specs to cover
the original bug fix.

This cuts runtime of this spec file in half, from 1m30s to 45s on my
laptop.

https://github.com/rubygems/rubygems/commit/cc506f17e0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Originally, all the specs in this file were put inside a shared examples
block, and since then all specs were run only changing the cwd (either
from root, or a subdirectory).

This was in https://github.com/rubygems/rubygems/commit/d7291700d016, to cover a fix in
the `bundler_path` method.

However, reverting that fix does not make any of the specs in either of
the main blocks fail! Only an unrelated spec of `bundle install
--standalone --local` fails.

The reason is that all specs set `path` to an absolute path, making the
fix essentially uncovered.

In order to simplify the file structure and improve runtime, I
completely removed the shared examples block, and only run main specs
for the root directory. Then I added a couple of extra specs to cover
the original bug fix.

This cuts runtime of this spec file in half, from 1m30s to 45s on my
laptop.

https://github.com/rubygems/rubygems/commit/cc506f17e0
</pre>
</div>
</content>
</entry>
<entry>
<title>Sync RubyGems</title>
<updated>2025-07-03T04:43:00+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-02T19:25:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=81da38b3080a0d971d7b1720015117fef2d19c98'/>
<id>81da38b3080a0d971d7b1720015117fef2d19c98</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] Migrate all remaining specs to run offline</title>
<updated>2025-07-02T01:34:18+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-06-24T16:56:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b5ef0114cd8f7fb5564024e56b56036e6e1a8c43'/>
<id>b5ef0114cd8f7fb5564024e56b56036e6e1a8c43</id>
<content type='text'>
Also removed the helper to install real gems during specs to avoid the
temptation of introducing network stuff again.

https://github.com/rubygems/rubygems/commit/a1ab5e319a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also removed the helper to install real gems during specs to avoid the
temptation of introducing network stuff again.

https://github.com/rubygems/rubygems/commit/a1ab5e319a
</pre>
</div>
</content>
</entry>
</feed>
