<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/rdoc/parser, 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>Sync RDoc 6.14.0</title>
<updated>2025-05-22T22:04:47+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2025-05-22T21:49:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=03eb777c69d64aa4941891a784c1fd67b44ea42c'/>
<id>03eb777c69d64aa4941891a784c1fd67b44ea42c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Fix to parse `rb_define_global_const`</title>
<updated>2024-12-16T14:55:39+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-12-16T14:49:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a46fe5c807361f07604eaba447f0487076977e7e'/>
<id>a46fe5c807361f07604eaba447f0487076977e7e</id>
<content type='text'>
https://github.com/ruby/ruby/pull/12357

https://github.com/ruby/rdoc/commit/458ecbb7f7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ruby/pull/12357

https://github.com/ruby/rdoc/commit/458ecbb7f7
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Deprecate `main` and `title` directives</title>
<updated>2024-12-05T11:36:34+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2024-12-05T11:36:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2ecd2fe0ed251f9946d5322d96cbfaf61ccbdd65'/>
<id>2ecd2fe0ed251f9946d5322d96cbfaf61ccbdd65</id>
<content type='text'>
(https://github.com/ruby/rdoc/pull/1218)

* Deprecate :main: directive

* Deprecate :title: direcive

* Update documentation

* Remove :main: directive's usage

* Update test cases

* Add '.rdoc_options' to suggested alternatives

https://github.com/ruby/rdoc/commit/e2d4ac9dad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/rdoc/pull/1218)

* Deprecate :main: directive

* Deprecate :title: direcive

* Update documentation

* Remove :main: directive's usage

* Update test cases

* Add '.rdoc_options' to suggested alternatives

https://github.com/ruby/rdoc/commit/e2d4ac9dad
</pre>
</div>
</content>
</entry>
<entry>
<title>Sync rdoc</title>
<updated>2024-08-05T00:27:45+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2024-08-03T10:29:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cbc40bb130fb52f1990ce1fd41e834a5f3fdbcdd'/>
<id>cbc40bb130fb52f1990ce1fd41e834a5f3fdbcdd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Add new ruby parser that uses Prism</title>
<updated>2024-07-31T20:50:00+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-07-31T20:49:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=16b0242808b5a2dc7c1c80dc9ace547f64280a1b'/>
<id>16b0242808b5a2dc7c1c80dc9ace547f64280a1b</id>
<content type='text'>
(https://github.com/ruby/rdoc/pull/1144)

* Add a new ruby parser RDoc::Parser::PrismRuby

* Add a new ruby parser testcase independent from parser's internal implementation

* unknown meta method

* Use MethodSignatureVisitor only to scan params, block_params and calls_super

* Add calls_super test

* Drop ruby 2.6. Prism requires ruby &gt;= 2.7

* Remove duplicated documentation comment from prism_ruby.rb

* Add test for wrong argument passed to metaprogramming method

* Rename visit_call_[DSL_METHOD_NAME] to make it distinguishable from visit_[NODE_TYPE]_node

* Method receiver switch of true/false/nil to a case statement

* Extract common part of add_method(by def keyword) and add meta_comment method

* Reuse consecutive comments array when collecting comments

* Simplify DSL call_node handling

* Refactor extracting method visibility arguments

https://github.com/ruby/rdoc/commit/fde99f1be6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/rdoc/pull/1144)

* Add a new ruby parser RDoc::Parser::PrismRuby

* Add a new ruby parser testcase independent from parser's internal implementation

* unknown meta method

* Use MethodSignatureVisitor only to scan params, block_params and calls_super

* Add calls_super test

* Drop ruby 2.6. Prism requires ruby &gt;= 2.7

* Remove duplicated documentation comment from prism_ruby.rb

* Add test for wrong argument passed to metaprogramming method

* Rename visit_call_[DSL_METHOD_NAME] to make it distinguishable from visit_[NODE_TYPE]_node

* Method receiver switch of true/false/nil to a case statement

* Extract common part of add_method(by def keyword) and add meta_comment method

* Reuse consecutive comments array when collecting comments

* Simplify DSL call_node handling

* Refactor extracting method visibility arguments

https://github.com/ruby/rdoc/commit/fde99f1be6
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Improve rubocop setup</title>
<updated>2024-07-17T20:43:08+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2024-07-17T20:42:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=239d54dfbce0f38cf4d31fa252b4d9bd65477bac'/>
<id>239d54dfbce0f38cf4d31fa252b4d9bd65477bac</id>
<content type='text'>
(https://github.com/ruby/rdoc/pull/1139)

* Rename rake rubocop to rake format_generated_files

* Add rubocop rules to ensure spaces are applied consistently

* Improve rubocop related CI workflows

https://github.com/ruby/rdoc/commit/27932d001c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/rdoc/pull/1139)

* Rename rake rubocop to rake format_generated_files

* Add rubocop rules to ensure spaces are applied consistently

* Improve rubocop related CI workflows

https://github.com/ruby/rdoc/commit/27932d001c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Drop reimplementation of Ripper lex state</title>
<updated>2024-07-15T22:22:11+00:00</updated>
<author>
<name>nicholas a. evans</name>
<email>nick@rubinick.dev</email>
</author>
<published>2024-07-06T21:41:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e165d92d37ab1b32d505977d685993cba3131298'/>
<id>e165d92d37ab1b32d505977d685993cba3131298</id>
<content type='text'>
(https://github.com/ruby/rdoc/pull/1118)

* Drop reimplementation of Ripper lex state

This code was for ruby 2.4 compatibility, but rdoc dropped support for
ruby 2.4 about three years ago, in f480b970c.  This code was almost half
of the lines of code in rdoc/parser/ripper_state_lex.

* Remove unused Ripper constants and const_defined?

This was mostly copied from the diff in @st0012's PR comment.  The
remaining constants have been updated to get their value directly from
Ripper.

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Use Ripper::EXPR_LABEL directly

Since this is only used from outside RipperStateLex, there's no longer
any benefit to using the indirect reference rather than just going
straight to Ripper.

---------

https://github.com/ruby/rdoc/commit/dd8c216263

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/rdoc/pull/1118)

* Drop reimplementation of Ripper lex state

This code was for ruby 2.4 compatibility, but rdoc dropped support for
ruby 2.4 about three years ago, in f480b970c.  This code was almost half
of the lines of code in rdoc/parser/ripper_state_lex.

* Remove unused Ripper constants and const_defined?

This was mostly copied from the diff in @st0012's PR comment.  The
remaining constants have been updated to get their value directly from
Ripper.

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Use Ripper::EXPR_LABEL directly

Since this is only used from outside RipperStateLex, there's no longer
any benefit to using the indirect reference rather than just going
straight to Ripper.

---------

https://github.com/ruby/rdoc/commit/dd8c216263

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Fix some typos (https://github.com/ruby/rdoc/pull/1129)</title>
<updated>2024-07-01T02:08:37+00:00</updated>
<author>
<name>Yudai Takada</name>
<email>t.yudai92@gmail.com</email>
</author>
<published>2024-06-30T15:16:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=15ceb95d781f3966e987fe217c22edcaf6941501'/>
<id>15ceb95d781f3966e987fe217c22edcaf6941501</id>
<content type='text'>
* constist ==&gt; consist

* Tidyness ==&gt; Tidiness

* Currentry ==&gt; Currently

* valus ==&gt; values

https://github.com/ruby/rdoc/commit/8412705721
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* constist ==&gt; consist

* Tidyness ==&gt; Tidiness

* Currentry ==&gt; Currently

* valus ==&gt; values

https://github.com/ruby/rdoc/commit/8412705721
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Don't document aliases with trailing `:nodoc` directive</title>
<updated>2024-02-09T01:07:17+00:00</updated>
<author>
<name>Petrik</name>
<email>petrik@deheus.net</email>
</author>
<published>2024-02-08T20:58:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2a57e6e6edbd848b5646a762e9351912c857706f'/>
<id>2a57e6e6edbd848b5646a762e9351912c857706f</id>
<content type='text'>
Attribute readers and writers can be marked as `:nodoc` to keep them
undocumented:

```ruby
attr_reader :name # :nodoc:
```

For aliases this behaviour should be the same:

```ruby
alias_method :old :new # :nodoc:
```

https://github.com/ruby/rdoc/commit/30f14e8271
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Attribute readers and writers can be marked as `:nodoc` to keep them
undocumented:

```ruby
attr_reader :name # :nodoc:
```

For aliases this behaviour should be the same:

```ruby
alias_method :old :new # :nodoc:
```

https://github.com/ruby/rdoc/commit/30f14e8271
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Visibility should begin from `public` for each scope</title>
<updated>2024-01-07T11:39:46+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-01-07T11:14:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7fcc6f04ac75336bcf9a8250da2948dcd8da2825'/>
<id>7fcc6f04ac75336bcf9a8250da2948dcd8da2825</id>
<content type='text'>
Even for singleton class definition such as `class &lt;&lt; self` that
shares the same container with the outer scope, its visibility is
separated and set to `public` by default.

https://github.com/ruby/rdoc/commit/baf26363b9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Even for singleton class definition such as `class &lt;&lt; self` that
shares the same container with the outer scope, its visibility is
separated and set to `public` by default.

https://github.com/ruby/rdoc/commit/baf26363b9
</pre>
</div>
</content>
</entry>
</feed>
