<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/optparse, 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>[ruby/optparse] Fix parsing array arguments with `:into` option</title>
<updated>2024-08-05T02:28:12+00:00</updated>
<author>
<name>fatkodima</name>
<email>fatkodima123@gmail.com</email>
</author>
<published>2024-08-05T02:28:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a35d32486242641ccd2ac98d43211343a3712c52'/>
<id>a35d32486242641ccd2ac98d43211343a3712c52</id>
<content type='text'>
https://github.com/ruby/optparse/commit/19700e96d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/optparse/commit/19700e96d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] Invoke pager for `--help`</title>
<updated>2024-03-01T07:10:08+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-02-29T16:24:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5d76fe6b2a413c71374c9f799c7a1023e2002457'/>
<id>5d76fe6b2a413c71374c9f799c7a1023e2002457</id>
<content type='text'>
https://github.com/ruby/optparse/commit/77dccce37c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/optparse/commit/77dccce37c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] Add `exact:` keyword argument</title>
<updated>2024-02-23T12:16:59+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-02-21T04:42:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=41c0fb699139f82c92414638a7b31565d9841f1c'/>
<id>41c0fb699139f82c92414638a7b31565d9841f1c</id>
<content type='text'>
https://github.com/ruby/optparse/commit/07e83673a8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/optparse/commit/07e83673a8
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] Adjust arguments for lambda-callbacks</title>
<updated>2024-02-09T10:58:31+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-02-09T10:03:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=db73226bf6aa8c67ad6976ff6b3c628cf6b8a952'/>
<id>db73226bf6aa8c67ad6976ff6b3c628cf6b8a952</id>
<content type='text'>
Rake uses [lambda] as callbacks.
Calling it without omitted argument raises an `ArgumentError`.

lambda: https://github.com/ruby/rake/blob/master/lib/rake/application.rb#L543

https://github.com/ruby/optparse/commit/213cb03b59
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rake uses [lambda] as callbacks.
Calling it without omitted argument raises an `ArgumentError`.

lambda: https://github.com/ruby/rake/blob/master/lib/rake/application.rb#L543

https://github.com/ruby/optparse/commit/213cb03b59
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] Respect default values in block parameters</title>
<updated>2024-02-09T10:58:19+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-02-09T03:59:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2c6767b71ef5154f49e4aef7a236849a934e68fb'/>
<id>2c6767b71ef5154f49e4aef7a236849a934e68fb</id>
<content type='text'>
Fix https://github.com/ruby/optparse/pull/55

https://github.com/ruby/optparse/commit/9d53e74aa4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix https://github.com/ruby/optparse/pull/55

https://github.com/ruby/optparse/commit/9d53e74aa4
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] Fix `require_exact` to work with options defined as `--[no]-something`</title>
<updated>2024-02-09T03:31:13+00:00</updated>
<author>
<name>fatkodima</name>
<email>fatkodima123@gmail.com</email>
</author>
<published>2023-10-14T18:52:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f7a407cabda6eb787fb95fc6e3c1b2215b1aec19'/>
<id>f7a407cabda6eb787fb95fc6e3c1b2215b1aec19</id>
<content type='text'>
https://github.com/ruby/optparse/commit/4e346ad337
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/optparse/commit/4e346ad337
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] Add symbolize_names to getopts</title>
<updated>2022-12-26T06:09:21+00:00</updated>
<author>
<name>Junichi Ito</name>
<email>jit@sonicgarden.jp</email>
</author>
<published>2022-11-28T23:07:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cea6951ecf31b1d4e93d102cc8f08822470d4d1a'/>
<id>cea6951ecf31b1d4e93d102cc8f08822470d4d1a</id>
<content type='text'>
https://github.com/ruby/optparse/commit/3e63d878f8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/optparse/commit/3e63d878f8
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] The encoding argument of `Regexp.new` has been ignored since 1.9</title>
<updated>2022-12-21T05:09:12+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-12-21T05:07:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=502ca37dde288d20fed6e6ea34f4ab3299de7777'/>
<id>502ca37dde288d20fed6e6ea34f4ab3299de7777</id>
<content type='text'>
https://github.com/ruby/optparse/commit/766f567405
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/optparse/commit/766f567405
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] Fix the test failure i ruby/ruby</title>
<updated>2022-11-28T16:20:40+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-11-28T16:14:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f3ad68dd161da60bb4f4908974839bb2b5736a85'/>
<id>f3ad68dd161da60bb4f4908974839bb2b5736a85</id>
<content type='text'>
```
$ make test-all TESTS=test/optparse/
...

[148/178] TestOptionParserDidYouMean#test_raise_unknown = 0.00 s
  1) Failure:
TestOptionParserDidYouMean#test_raise_unknown [/home/mame/work/ruby/test/optparse/test_optparse.rb:106]:
&lt;["--bar"]&gt; expected but was
&lt;[]&gt;.
```

In the old test/unit (bundled in ruby/ruby), when a test class inherits from
another test class, the child class runs all the tests defined in the parent
class.
However, it looks like the new test/unit does not do so. This is because the
test failure does not occur in ruby/optparse.

As a tentative solution, this changes the option names in TestOptionParser to
avoid the name conflict with TestOptionParserDidYouMean.

https://github.com/ruby/optparse/commit/fee86ef7a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
```
$ make test-all TESTS=test/optparse/
...

[148/178] TestOptionParserDidYouMean#test_raise_unknown = 0.00 s
  1) Failure:
TestOptionParserDidYouMean#test_raise_unknown [/home/mame/work/ruby/test/optparse/test_optparse.rb:106]:
&lt;["--bar"]&gt; expected but was
&lt;[]&gt;.
```

In the old test/unit (bundled in ruby/ruby), when a test class inherits from
another test class, the child class runs all the tests defined in the parent
class.
However, it looks like the new test/unit does not do so. This is because the
test failure does not occur in ruby/optparse.

As a tentative solution, this changes the option names in TestOptionParser to
avoid the name conflict with TestOptionParserDidYouMean.

https://github.com/ruby/optparse/commit/fee86ef7a4
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] Add `raise_unknown` flag</title>
<updated>2022-11-28T14:24:06+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-29T15:36:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0bfb185654b13237b874dc00d5719e695416b711'/>
<id>0bfb185654b13237b874dc00d5719e695416b711</id>
<content type='text'>
(https://github.com/ruby/optparse/pull/38)

https://github.com/ruby/optparse/commit/12529653cd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/optparse/pull/38)

https://github.com/ruby/optparse/commit/12529653cd
</pre>
</div>
</content>
</entry>
</feed>
