<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/rdoc/token_stream.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>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] Early return when `token_stream` is `nil`</title>
<updated>2023-12-05T06:21:52+00:00</updated>
<author>
<name>Toshimaru</name>
<email>me@toshimaru.net</email>
</author>
<published>2023-11-28T00:44:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=56ccad060d1c215280f12444f726d54d2ca6636d'/>
<id>56ccad060d1c215280f12444f726d54d2ca6636d</id>
<content type='text'>
https://github.com/ruby/rdoc/commit/04f75d8516

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rdoc/commit/04f75d8516

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] fix: fix `NoMethodError` when `token_stream` is nil</title>
<updated>2023-12-05T06:21:51+00:00</updated>
<author>
<name>toshimaru</name>
<email>me@toshimaru.net</email>
</author>
<published>2023-11-19T23:47:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cda431f5388e8359532998c7fbf5fa615ce6d45e'/>
<id>cda431f5388e8359532998c7fbf5fa615ce6d45e</id>
<content type='text'>
The change in #1055 might be a breaking change.
So, just simply wrap `token_stream` with `Array`

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

Co-authored-by: Jonathan Hefner &lt;jonathan@hefner.pro&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The change in #1055 might be a breaking change.
So, just simply wrap `token_stream` with `Array`

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

Co-authored-by: Jonathan Hefner &lt;jonathan@hefner.pro&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Revert "chore: Remove unnecessary argument for `join` method"</title>
<updated>2023-11-16T02:22:08+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-11-16T02:18:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e374512682b9fcc8b47c633a946b99f722d77411'/>
<id>e374512682b9fcc8b47c633a946b99f722d77411</id>
<content type='text'>
This reverts commit https://github.com/ruby/rdoc/commit/4a1c74bc0a09.

Since RDoc still supports ruby 2.6 which has not deprecated `$,`, the
argument of `Array#join` is not unnecessary yet.

https://github.com/ruby/rdoc/commit/72897d32ed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit https://github.com/ruby/rdoc/commit/4a1c74bc0a09.

Since RDoc still supports ruby 2.6 which has not deprecated `$,`, the
argument of `Array#join` is not unnecessary yet.

https://github.com/ruby/rdoc/commit/72897d32ed
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] chore: Remove unnecessary argument for `join` method</title>
<updated>2023-11-16T01:43:12+00:00</updated>
<author>
<name>toshimaru</name>
<email>me@toshimaru.net</email>
</author>
<published>2023-11-16T00:18:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8d160b9350b35ece2bac1669d8aa513622ca2a5b'/>
<id>8d160b9350b35ece2bac1669d8aa513622ca2a5b</id>
<content type='text'>
https://github.com/ruby/rdoc/commit/4a1c74bc0a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rdoc/commit/4a1c74bc0a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] fix: Fix NoMethodError for `tokens_to_s` method</title>
<updated>2023-11-16T01:43:12+00:00</updated>
<author>
<name>toshimaru</name>
<email>me@toshimaru.net</email>
</author>
<published>2023-11-16T00:18:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=72242e69aa7ad1e8ec9c5d7533c3bfd22a16d239'/>
<id>72242e69aa7ad1e8ec9c5d7533c3bfd22a16d239</id>
<content type='text'>
Calling `tokens_to_s` gets an error if `token_stream` is nil:

```
undefined method `compact' for nil:NilClass (NoMethodError)
```

So, fall back to an empty array if `@token_stream` is nil.

https://github.com/ruby/rdoc/commit/452e4a2600
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calling `tokens_to_s` gets an error if `token_stream` is nil:

```
undefined method `compact' for nil:NilClass (NoMethodError)
```

So, fall back to an empty array if `@token_stream` is nil.

https://github.com/ruby/rdoc/commit/452e4a2600
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Auto-correct trailing new lines</title>
<updated>2023-06-03T01:42:29+00:00</updated>
<author>
<name>Vinicius Stock</name>
<email>stock@hey.com</email>
</author>
<published>2023-06-02T22:56:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a4d92475f69f0ca3dba0f497253e600c7f90a0ad'/>
<id>a4d92475f69f0ca3dba0f497253e600c7f90a0ad</id>
<content type='text'>
https://github.com/ruby/rdoc/commit/4b68c0728a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rdoc/commit/4b68c0728a
</pre>
</div>
</content>
</entry>
<entry>
<title>Separate RDoc::TokenStream#add_tokens and #add_token</title>
<updated>2019-08-15T21:02:45+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2019-08-06T17:32:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=723a37d0386bc20efedf516656c2ccafa889c89d'/>
<id>723a37d0386bc20efedf516656c2ccafa889c89d</id>
<content type='text'>
The old version of `add_tokens` accepts an array of tokens, and
multiple arguments of tokens by using `Array#flatten`.
And `add_token` was an alias to `add_tokens`.

I think it is unnecessarily flexible; in fact, all callsites of
`add_tokens` (except test) passes only an array of tokens.
And the code created a lot of temporal arrays.

This change makes `add_tokens` accept only one array of tokens,
and does `add_token` accept one token.  It is a bit faster (about
1 second in Ruby's `make rdoc`), and it ls also cleaner in my point of
view.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The old version of `add_tokens` accepts an array of tokens, and
multiple arguments of tokens by using `Array#flatten`.
And `add_token` was an alias to `add_tokens`.

I think it is unnecessarily flexible; in fact, all callsites of
`add_tokens` (except test) passes only an array of tokens.
And the code created a lot of temporal arrays.

This change makes `add_tokens` accept only one array of tokens,
and does `add_token` accept one token.  It is a bit faster (about
1 second in Ruby's `make rdoc`), and it ls also cleaner in my point of
view.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge RDoc 6.0.3 from upstream.</title>
<updated>2018-03-26T05:56:26+00:00</updated>
<author>
<name>hsbt</name>
<email>hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2018-03-26T05:56:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=98c7058bf7b3eab91c62a77cb10b09f6c8ed368e'/>
<id>98c7058bf7b3eab91c62a77cb10b09f6c8ed368e</id>
<content type='text'>
  It fixed the several bugs that was found after RDoc 6 releasing.

From: SHIBATA Hiroshi &lt;hsbt@ruby-lang.org&gt;

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  It fixed the several bugs that was found after RDoc 6 releasing.

From: SHIBATA Hiroshi &lt;hsbt@ruby-lang.org&gt;

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge rdoc-6.0.0.beta4 from upstream.</title>
<updated>2017-11-27T10:45:24+00:00</updated>
<author>
<name>hsbt</name>
<email>hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-11-27T10:45:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=55518710865bd7258422807524403c91347519a2'/>
<id>55518710865bd7258422807524403c91347519a2</id>
<content type='text'>
  It version applied `frozen_string_literal: true`

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  It version applied `frozen_string_literal: true`

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
</feed>
