<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ruby.git/test/ruby/test_env.rb, branch ruby_3_2</title>
<subtitle>github.com: ruby/ruby.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/'/>
<entry>
<title>[Bug #17767] Now `ENV.clone` raises `TypeError` as well as `ENV.dup`</title>
<updated>2022-08-02T07:40:12+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-07-20T10:19:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=ec3f59309e3f08339c4c76a6881901580801d6cd'/>
<id>ec3f59309e3f08339c4c76a6881901580801d6cd</id>
<content type='text'>
One year ago, the former method has been deprecated while the latter
has become an error.  Then the 3.1 released, it is enough time to make
also the former an error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
One year ago, the former method has been deprecated while the latter
has become an error.  Then the 3.1 released, it is enough time to make
also the former an error.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENV.merge! support multile arguments [Feature #18279]</title>
<updated>2022-06-16T16:22:24+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-12-03T14:13:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=278fefb96294adf9d27a78f919c714a31b65ef58'/>
<id>278fefb96294adf9d27a78f919c714a31b65ef58</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>`ENV` ivars should not be accessible from ractors</title>
<updated>2021-12-17T06:46:50+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2021-12-17T05:22:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=37bd795cf8bc9681fccaf9b2d42292b14610a310'/>
<id>37bd795cf8bc9681fccaf9b2d42292b14610a310</id>
<content type='text'>
The `ENV` object can have instance variables like other objects,
but they should be accessed only on the main ractor.

fix https://github.com/ruby/ruby/pull/5263#issuecomment-995585766
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `ENV` object can have instance variables like other objects,
but they should be accessed only on the main ractor.

fix https://github.com/ruby/ruby/pull/5263#issuecomment-995585766
</pre>
</div>
</content>
</entry>
<entry>
<title>ucrt can raise `Errno::EINVAL`</title>
<updated>2021-12-15T06:04:34+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2021-12-14T16:24:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=13c37835d5dbda3493f54baf13f75ed5b59fc507'/>
<id>13c37835d5dbda3493f54baf13f75ed5b59fc507</id>
<content type='text'>
`ENV[key] = long_str` can raise `Errno::EINVAL` also on ucrt env.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`ENV[key] = long_str` can raise `Errno::EINVAL` also on ucrt env.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix test</title>
<updated>2021-12-15T06:04:34+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2021-12-14T15:13:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=04aab3c2592a2234921fb715c1ff9f36a58828ca'/>
<id>04aab3c2592a2234921fb715c1ff9f36a58828ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed traling spaces [ci skip]</title>
<updated>2021-12-15T06:04:34+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-07-21T03:19:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=9bb83a82aba3cf844fd96782f747eefb1876439b'/>
<id>9bb83a82aba3cf844fd96782f747eefb1876439b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Ractor tests for ENV</title>
<updated>2021-12-15T06:04:34+00:00</updated>
<author>
<name>Rohit Menon</name>
<email>rohitmenon@verizon.net</email>
</author>
<published>2021-07-07T15:17:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=e071ac8b3db80901566882ae82a9ba75106995da'/>
<id>e071ac8b3db80901566882ae82a9ba75106995da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Simplify platform check for Windows-UCRT</title>
<updated>2021-11-29T14:07:16+00:00</updated>
<author>
<name>Lars Kanis</name>
<email>kanis@comcard.de</email>
</author>
<published>2021-11-24T19:58:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=95a6212a431929d91435056fa8df13ae697f8071'/>
<id>95a6212a431929d91435056fa8df13ae697f8071</id>
<content type='text'>
RUBY_PLATFORM can be used since commit 576b2e64cdc5ea42ad345dd3c1c215e006c06fca .</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RUBY_PLATFORM can be used since commit 576b2e64cdc5ea42ad345dd3c1c215e006c06fca .</pre>
</div>
</content>
</entry>
<entry>
<title>Adjust test to set+get big values on all platforms and add MINGW-UCRT</title>
<updated>2021-09-19T15:15:30+00:00</updated>
<author>
<name>Lars Kanis</name>
<email>kanis@comcard.de</email>
</author>
<published>2021-06-22T06:52:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=70cefcfa0f769f7269cf0c950a4516036dd1a1ea'/>
<id>70cefcfa0f769f7269cf0c950a4516036dd1a1ea</id>
<content type='text'>
Previously the test verified on MSWIN that huge values can not be stored in environment variables but that they can on others.
IMHO the intention of the test should not change between platforms.
Therefore this adjusts the test to have the same intention - that is to store a big value.

This also fixes compatibility with MINGW-UCRT, which previously failed with:
  &lt;Errno::EINVAL: Invalid argument - ruby_setenv(foo)&gt;
    test/ruby/test_env.rb:512:in `[]='
    test/ruby/test_env.rb:512:in `block in test_huge_value'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the test verified on MSWIN that huge values can not be stored in environment variables but that they can on others.
IMHO the intention of the test should not change between platforms.
Therefore this adjusts the test to have the same intention - that is to store a big value.

This also fixes compatibility with MINGW-UCRT, which previously failed with:
  &lt;Errno::EINVAL: Invalid argument - ruby_setenv(foo)&gt;
    test/ruby/test_env.rb:512:in `[]='
    test/ruby/test_env.rb:512:in `block in test_huge_value'
</pre>
</div>
</content>
</entry>
<entry>
<title>Make ENV.clone warn and ENV.dup raise</title>
<updated>2021-06-08T17:19:08+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2021-06-08T17:19:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby.git/commit/?id=117310bdc00236c0a7676616ce25b5106775dabc'/>
<id>117310bdc00236c0a7676616ce25b5106775dabc</id>
<content type='text'>
ENV.dup returned a plain Object, since all of ENV's behavior is
defined in ENV's singleton class.  So using dup makes no sense.

ENV.clone works and is used in some gems, but it doesn't do what
the user expects, since modifying ENV.clone also modifies ENV.
Add a deprecation warning pointing the user to use ENV.to_h
instead.

This also undefines some private initialize* methods in ENV,
since they are not needed.

Fixes [Bug #17767]</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ENV.dup returned a plain Object, since all of ENV's behavior is
defined in ENV's singleton class.  So using dup makes no sense.

ENV.clone works and is used in some gems, but it doesn't do what
the user expects, since modifying ENV.clone also modifies ENV.
Add a deprecation warning pointing the user to use ENV.to_h
instead.

This also undefines some private initialize* methods in ENV,
since they are not needed.

Fixes [Bug #17767]</pre>
</div>
</content>
</entry>
</feed>
