<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/rubygems/helper.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Merge RubyGems-3.6.5 and Bundler-2.6.5</title>
<updated>2025-02-21T00:50:20+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-02-21T00:28:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=06451f0dec107625f3a7794230e90d539a55a08a'/>
<id>06451f0dec107625f3a7794230e90d539a55a08a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed redundant require for TestGemRequire</title>
<updated>2024-08-29T08:37:44+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-08-29T01:37:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a68208235e389158427f24c7573fd2cffc58d3a6'/>
<id>a68208235e389158427f24c7573fd2cffc58d3a6</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] Never remove executables that may belong to a default gem</title>
<updated>2024-06-14T08:02:38+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-06-13T15:56:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=62fc473224eb8da96206badbc2496dd5ec38935d'/>
<id>62fc473224eb8da96206badbc2496dd5ec38935d</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/ed585f2fca
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/ed585f2fca
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Reuse `write_file` helper</title>
<updated>2024-06-14T08:02:38+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-06-13T18:07:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7767b60ff2f02a600f0b1fe5f438639fea6ac7b7'/>
<id>7767b60ff2f02a600f0b1fe5f438639fea6ac7b7</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/339f099870
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/339f099870
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Do not override `@orig_env`</title>
<updated>2024-05-15T09:11:55+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-05-15T07:53:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e73f6618d5d7a36e0599df14d2423544007bdf7c'/>
<id>e73f6618d5d7a36e0599df14d2423544007bdf7c</id>
<content type='text'>
It is saved in `setup` and restored in `teardown`.

https://github.com/rubygems/rubygems/commit/880c5de667
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is saved in `setup` and restored in `teardown`.

https://github.com/rubygems/rubygems/commit/880c5de667
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Make `Gem.clear_paths` test less implementation dependent</title>
<updated>2024-05-14T16:08:01+00:00</updated>
<author>
<name>David Rodriguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-05-06T10:15:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=64542380728b2f0cb0a76a09d08735538350cd9f'/>
<id>64542380728b2f0cb0a76a09d08735538350cd9f</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/b545daa95d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/b545daa95d
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Simplify test teardown</title>
<updated>2024-05-14T16:08:00+00:00</updated>
<author>
<name>David Rodriguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-05-06T15:13:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8d28e635662a44b8f4a0e6dd6d655e0734f99271'/>
<id>8d28e635662a44b8f4a0e6dd6d655e0734f99271</id>
<content type='text'>
If we move test directory removal to the very end, I think we should not
leak anything.

https://github.com/rubygems/rubygems/commit/fb3d8944b5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we move test directory removal to the very end, I think we should not
leak anything.

https://github.com/rubygems/rubygems/commit/fb3d8944b5
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Remove more unnecessary compatibility code</title>
<updated>2024-05-06T17:06:50+00:00</updated>
<author>
<name>David Rodriguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-05-06T15:23:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=00b1553dc6d7424682bd97bb92542dbefd9ddeb2'/>
<id>00b1553dc6d7424682bd97bb92542dbefd9ddeb2</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/00d91f141b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/00d91f141b
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Honor a specified path as the temporary diretory if given</title>
<updated>2024-04-16T10:24:49+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-01-24T09:17:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=54d472d91fe9fc724969a6ed71a3919710e28bfa'/>
<id>54d472d91fe9fc724969a6ed71a3919710e28bfa</id>
<content type='text'>
## The problem

Currently the tests are executed in the fixed name directory "tmp"
under the top source directory.  However it makes the tests fail when
the source path contains symlinks.  Or unable to even start if the top
source directory is read-only, e.g., remote-mounting in read-only mode
from virtual machines.

Also, with the fixed directory, there is no way to avoid `pend` in
`TestGemPackage#test_extract_symlink_parent_doesnt_delete_user_dir`.

## The fix

Instead of creating the fixed name directory, this PR allows to use a
different path given with the environment variable "GEM_TEST_TMPDIR".
The default path is, as well as the current behavior, "tmp" from the
top source directory.

### Caveat

It is the caller's responsibility to make the directory safe (owned,
world unwritable, or sticky) when setting the environment variable.

https://github.com/rubygems/rubygems/commit/bf00850656
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
## The problem

Currently the tests are executed in the fixed name directory "tmp"
under the top source directory.  However it makes the tests fail when
the source path contains symlinks.  Or unable to even start if the top
source directory is read-only, e.g., remote-mounting in read-only mode
from virtual machines.

Also, with the fixed directory, there is no way to avoid `pend` in
`TestGemPackage#test_extract_symlink_parent_doesnt_delete_user_dir`.

## The fix

Instead of creating the fixed name directory, this PR allows to use a
different path given with the environment variable "GEM_TEST_TMPDIR".
The default path is, as well as the current behavior, "tmp" from the
top source directory.

### Caveat

It is the caller's responsibility to make the directory safe (owned,
world unwritable, or sticky) when setting the environment variable.

https://github.com/rubygems/rubygems/commit/bf00850656
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Fix: vendor_gem takes a block</title>
<updated>2024-03-25T19:45:52+00:00</updated>
<author>
<name>Martin Emde</name>
<email>me@martinemde.com</email>
</author>
<published>2024-03-01T01:05:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=aa90013829d9394fa92a423a818fb0d6e2ab89cb'/>
<id>aa90013829d9394fa92a423a818fb0d6e2ab89cb</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/50cda56fc3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/50cda56fc3
</pre>
</div>
</content>
</entry>
</feed>
