<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/spec/bundler/install/global_cache_spec.rb, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[rubygems/rubygems] Build bundler gem just once for specs</title>
<updated>2025-07-25T02:10:37+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-23T18:09:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e67f595e8f3f76f20d7a6b9fd0498ff7b641391c'/>
<id>e67f595e8f3f76f20d7a6b9fd0498ff7b641391c</id>
<content type='text'>
When we need to reset system gems during specs, there's no need to
rebuild bundler, we can copy over the original gem home.

https://github.com/rubygems/rubygems/commit/7b4f80747b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When we need to reset system gems during specs, there's no need to
rebuild bundler, we can copy over the original gem home.

https://github.com/rubygems/rubygems/commit/7b4f80747b
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Stay away from FileUtils.rm_rf in Bundler specs</title>
<updated>2025-04-01T04:31:48+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-03-31T18:20:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cd1952484cc74e2171cd72eb46bb00b04c8daa60'/>
<id>cd1952484cc74e2171cd72eb46bb00b04c8daa60</id>
<content type='text'>
Instead, skip the spec when run by ruby-core. Maybe the root cause can
be fixed at some point.

https://github.com/rubygems/rubygems/commit/09594ae5b8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead, skip the spec when run by ruby-core. Maybe the root cause can
be fixed at some point.

https://github.com/rubygems/rubygems/commit/09594ae5b8
</pre>
</div>
</content>
</entry>
<entry>
<title>Restore to use rm_rf for failing example</title>
<updated>2025-03-12T09:02:09+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-03-12T08:00:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1a222816fbe65e49f5f395dfd4a307763c00f012'/>
<id>1a222816fbe65e49f5f395dfd4a307763c00f012</id>
<content type='text'>
https://github.com/ruby/ruby/actions/runs/13804651931/job/38616664529?pr=12911
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ruby/actions/runs/13804651931/job/38616664529?pr=12911
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Fix `ENAMETOOLONG` error when creating compact index cache</title>
<updated>2025-03-12T09:02:09+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2022-05-29T11:19:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=510edbccf92deff0ccc6b4a1e0686b180a432aff'/>
<id>510edbccf92deff0ccc6b4a1e0686b180a432aff</id>
<content type='text'>
If a custom rubygems source URI is long enough, Bundler may end up
raising an `ENAMETOOLONG` error and crash.

This commit fixes the problem by trimming the cache slug size to fit
usual OS requirements.

https://github.com/rubygems/rubygems/commit/df40ff1e14

Co-authored-by: mbclu &lt;mbclu@users.noreply.github.com&gt;
Co-authored-by: martinemde &lt;martinemde@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a custom rubygems source URI is long enough, Bundler may end up
raising an `ENAMETOOLONG` error and crash.

This commit fixes the problem by trimming the cache slug size to fit
usual OS requirements.

https://github.com/rubygems/rubygems/commit/df40ff1e14

Co-authored-by: mbclu &lt;mbclu@users.noreply.github.com&gt;
Co-authored-by: martinemde &lt;martinemde@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Prefer `FileUtils.rm_r` to `FileUtils.rm_rf` for specs</title>
<updated>2025-03-12T09:02:09+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-03-07T20:35:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=51958bae66df026823fff159dd7513daf74f5727'/>
<id>51958bae66df026823fff159dd7513daf74f5727</id>
<content type='text'>
Because it does not swallow errors if it fails to remove the given
folders, making issues easier to debug.

https://github.com/rubygems/rubygems/commit/0db12d7afc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because it does not swallow errors if it fails to remove the given
folders, making issues easier to debug.

https://github.com/rubygems/rubygems/commit/0db12d7afc
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Refactor specs to not try to remove folders that don't exist</title>
<updated>2025-03-12T09:02:09+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-03-07T19:47:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f656d34f103d9cc53259239d164ffa86d4117f9c'/>
<id>f656d34f103d9cc53259239d164ffa86d4117f9c</id>
<content type='text'>
This has the following benefits:

* Avoid duplicated work in some specs that first build a repo, and then
  overwrite it with a completely different set of gems.
* Reduce RSpec nesting and improve readability.
* The change also made surfaces several specs that were incorrect since
  they were unintentionally not testing the right thing.

https://github.com/rubygems/rubygems/commit/ed430883e0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This has the following benefits:

* Avoid duplicated work in some specs that first build a repo, and then
  overwrite it with a completely different set of gems.
* Reduce RSpec nesting and improve readability.
* The change also made surfaces several specs that were incorrect since
  they were unintentionally not testing the right thing.

https://github.com/rubygems/rubygems/commit/ed430883e0
</pre>
</div>
</content>
</entry>
<entry>
<title>Synchronize Bundler &amp; RubyGems (#11071)</title>
<updated>2024-06-28T14:12:29+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-06-28T14:12:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=98c923ff4bbeeb4a8f9f63ea2695a38471da42c2'/>
<id>98c923ff4bbeeb4a8f9f63ea2695a38471da42c2</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] Clear generated files recursively</title>
<updated>2024-03-05T07:13:39+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-03-05T06:02:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b582e5a6e99c3e88076fc8eea794d0b3a23e8740'/>
<id>b582e5a6e99c3e88076fc8eea794d0b3a23e8740</id>
<content type='text'>
On macOS, `dsymutil` utility splits debug info into .dSYM directory.
Glob list of `.bundle/cache/extensions/**/*binary_c*` includes that
directory but `FileUtils.rm` fails to unlink a directory.

https://github.com/ruby/ruby/actions/runs/8149918901/job/22275331688#step:11:3000
```
       Operation not permitted @ apply2files - /Users/runner/work/ruby/ruby/src/tmp/2/home/.bundle/cache/extensions/arm64-darwin-22/ruby/3.4.0+0/3b02a1011c53518f911ab3a9e8c6c608/very_simple_binary-1.0/very_simple_binary_c.bundle.dSYM
     # ./lib/fileutils.rb:2332:in 'File.unlink'
     # ./lib/fileutils.rb:2332:in 'block in FileUtils::Entry_#remove_file'
     # ./lib/fileutils.rb:2337:in 'FileUtils::Entry_#platform_support'
     # ./lib/fileutils.rb:2331:in 'FileUtils::Entry_#remove_file'
     # ./lib/fileutils.rb:1475:in 'FileUtils.remove_file'
     # ./lib/fileutils.rb:1223:in 'block in FileUtils.rm'
     # ./lib/fileutils.rb:1222:in 'FileUtils.rm'
     # ./spec/bundler/install/global_cache_spec.rb:235:in 'block (3 levels) in &lt;top (required)&gt;'
```

https://github.com/rubygems/rubygems/commit/375c127684
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On macOS, `dsymutil` utility splits debug info into .dSYM directory.
Glob list of `.bundle/cache/extensions/**/*binary_c*` includes that
directory but `FileUtils.rm` fails to unlink a directory.

https://github.com/ruby/ruby/actions/runs/8149918901/job/22275331688#step:11:3000
```
       Operation not permitted @ apply2files - /Users/runner/work/ruby/ruby/src/tmp/2/home/.bundle/cache/extensions/arm64-darwin-22/ruby/3.4.0+0/3b02a1011c53518f911ab3a9e8c6c608/very_simple_binary-1.0/very_simple_binary_c.bundle.dSYM
     # ./lib/fileutils.rb:2332:in 'File.unlink'
     # ./lib/fileutils.rb:2332:in 'block in FileUtils::Entry_#remove_file'
     # ./lib/fileutils.rb:2337:in 'FileUtils::Entry_#platform_support'
     # ./lib/fileutils.rb:2331:in 'FileUtils::Entry_#remove_file'
     # ./lib/fileutils.rb:1475:in 'FileUtils.remove_file'
     # ./lib/fileutils.rb:1223:in 'block in FileUtils.rm'
     # ./lib/fileutils.rb:1222:in 'FileUtils.rm'
     # ./spec/bundler/install/global_cache_spec.rb:235:in 'block (3 levels) in &lt;top (required)&gt;'
```

https://github.com/rubygems/rubygems/commit/375c127684
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Use modern hashes consistently</title>
<updated>2023-12-07T22:29:33+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2023-12-07T21:10:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2755cb1b2fbc4a5f08ca56345b5945bd452da74e'/>
<id>2755cb1b2fbc4a5f08ca56345b5945bd452da74e</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/bb66253f2c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/bb66253f2c
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in Bundler</title>
<updated>2023-11-13T02:06:10+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2023-10-26T20:12:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=50482cd1e5542f210565440bed7586821f774a29'/>
<id>50482cd1e5542f210565440bed7586821f774a29</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/93619c97ff
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/93619c97ff
</pre>
</div>
</content>
</entry>
</feed>
