aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/rdoc] Undo accidentally deleted linesNobuyoshi Nakada2024-01-111-1/+2
| | | | https://github.com/ruby/rdoc/commit/4e14158255
* [ruby/rdoc] Respect modeline to detect parserNobuyoshi Nakada2024-01-111-1/+14
| | | | https://github.com/ruby/rdoc/commit/485468f06f
* [ruby/rdoc] Visibility should begin from `public` for each scopeNobuyoshi Nakada2024-01-072-0/+14
| | | | | | | | Even for singleton class definition such as `class << 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
* [ruby/rdoc] Singleton method visibility should be isolatedNobuyoshi Nakada2024-01-072-0/+4
| | | | | | | | Each singleton method definition of the form `def recv.method` has visibility separate from the outer scope and is set to `public` by default. https://github.com/ruby/rdoc/commit/810913a7ea
* [ruby/rdoc] Rename and move the tests for `--locale` option [ci skip]Nobuyoshi Nakada2024-01-061-22/+22
| | | | https://github.com/ruby/rdoc/commit/b2a35ee39d
* [ruby/rdoc] Ignore `locale` at `write_options`Nobuyoshi Nakada2024-01-061-1/+22
| | | | | | | | `@locale` is set from `@locale_name` and loaded from `@locale_dir` after `write_options`, and `RDoc::I18n::Locale` does not seem to expected to be loaded. https://github.com/ruby/rdoc/commit/fd610f7023
* [ruby/rdoc] Allow empty name rdoc-ref as a local linkNobuyoshi Nakada2023-12-311-0/+12
| | | | https://github.com/ruby/rdoc/commit/914a6af137
* [ruby/rdoc] Fix support for `rb_file_const` and `rb_curses_define_const`Nobuyoshi Nakada2023-12-251-4/+1
| | | | | | | | | | | Constant definitions using these functions have been supported, but since RDoc::Parser::C#gen_const_table did not consider other than `rb_define_const` the documents for them have not been found, without `Document-const` direvtive. Fixes https://github.com/ruby/rdoc/issues/1067 https://github.com/ruby/rdoc/commit/cdad51a60b
* [ruby/rdoc] Only word-ending colon separates new definitionNobuyoshi Nakada2023-12-061-0/+6
| | | | | | | When followed by non-space characters, rather it looks like a URL or a path name on Windows. https://github.com/ruby/rdoc/commit/72c6560773
* [ruby/rdoc] Use single quotes to keep backslash literallyNobuyoshi Nakada2023-12-061-1/+1
| | | | https://github.com/ruby/rdoc/commit/4ac9be7f48
* [ruby/rdoc] Allow any single-word token upto 2 before C method implementationNobuyoshi Nakada2023-12-051-0/+30
| | | | | | | | | Previously only unknown word `intern` is allowed between a single-word token before a C method. Now any single-word token, such as `inline` which is used for `ArithmeticSequence` in enumerator.c, is allowed instead. https://github.com/ruby/rdoc/commit/3a214c1dd1
* [ruby/rdoc] fix: fix `NoMethodError` when `token_stream` is niltoshimaru2023-12-051-0/+7
| | | | | | | | | 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 <jonathan@hefner.pro>
* [ruby/rdoc] Markup punctuations need to be separated with a spaceNobuyoshi Nakada2023-12-021-1/+13
| | | | https://github.com/ruby/rdoc/commit/83f0149fc1
* [ruby/rdoc] Get rid of `Kernel#open`Nobuyoshi Nakada2023-11-301-12/+2
| | | | https://github.com/ruby/rdoc/commit/dc56f6d0bd
* [ruby/rdoc] Place a space between certain character class letters onlyNobuyoshi Nakada2023-11-271-4/+24
| | | | https://github.com/ruby/rdoc/commit/1f568e049d
* [ruby/rdoc] fix: Fix NoMethodError for `tokens_to_s` methodtoshimaru2023-11-161-0/+9
| | | | | | | | | | | | 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
* [ruby/rdoc] Fix TIDYLINK after bracesNobuyoshi Nakada2023-11-141-0/+6
| | | | | | | | (https://github.com/ruby/rdoc/pull/1015) TIDYLINK multi-word label should not include braces. https://github.com/ruby/rdoc/commit/41ad3191e9
* [ruby/rdoc] test/rdoc/test_rdoc_generator_json_index.rb: pend in ↵Jun Aruga2023-11-031-0/+12
| | | | | | | | | | | | | | | | test_generate in ppc64le. We observed that this test randomly fails in the ruby/ruby Travis ppc64le case. This commit is to pend the test_generate if the assertion for the generated file's modified time fails in a ppc64le environment. Note that I didn't use the word "Travis CI" or Travis CI specific environment variables such as `TRAVIS` and `TRAVIS_CPU_ARCH`[1] in the code. Because I wanted to prioritize the rdoc's independence from the ruby/ruby. [1] https://docs.travis-ci.com/user/environment-variables/#default-environment-variables https://github.com/ruby/rdoc/commit/42cdad1cf2
* [ruby/rdoc] test/rdoc/test_rdoc_generator_json_index.rb: Use assert_equal ↵Jun Aruga2023-10-301-1/+1
| | | | | | | | instead of assert. It's better because assert_equal prints the values when it fails. https://github.com/ruby/rdoc/commit/91d40ce8f8
* [ruby/rdoc] Omit descriptions and parameter lists for methods defined in C ↵Jeremy Evans2023-09-051-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | not mentioned in call-seq This allows RDoc to better generate documentation for methods following the Ruby core documentation guide (which omits aliases in call-seq in most cases). This makes documentation for methods defined in C more similar to methods defined in Ruby. For methods defined in Ruby, the method description of the aliased method is already not used (you have to explicitly document the alias to use it). Internally, this adds AnyMethod#has_call_seq? and #skip_description?, and updates Darkfish to: * only show the method name if there is a call-seq for the method, but the call-seq omits the method * to omit the method description if the method is an alias or has aliases and has a call-seq that does not include the method See discussion in https://github.com/ruby/ruby/pull/7316 for details. https://github.com/ruby/rdoc/commit/e3688de49b
* [ruby/rdoc] handle symbols declared with `%s`theo-squadracer2023-09-051-0/+8
| | | | https://github.com/ruby/rdoc/commit/ed91c4b784
* [ruby/rdoc] Use flat_map for better performancePetrik2023-06-142-6/+6
| | | | https://github.com/ruby/rdoc/commit/76192a280d
* [ruby/rdoc] Auto-correct trailing new linesVinicius Stock2023-06-0335-35/+0
| | | | https://github.com/ruby/rdoc/commit/4b68c0728a
* [ruby/rdoc] Fix references to nested label in table_of_contentsNobuyoshi Nakada2023-05-021-1/+11
| | | | | | Fixes https://github.com/ruby/rdoc/pull/1000 https://github.com/ruby/rdoc/commit/291e2b7e8b
* [ruby/rdoc] Fix polynominal backtrackingNobuyoshi Nakada2023-04-291-0/+9
| | | | | | Fix https://github.com/ruby/rdoc/pull/995 https://github.com/ruby/rdoc/commit/1311ca8c50
* [ruby/rdoc] Fix polynominal backtrackingNobuyoshi Nakada2023-04-291-0/+7
| | | | | | Fix https://github.com/ruby/rdoc/pull/995 https://github.com/ruby/rdoc/commit/adfa7db5b9
* [ruby/rdoc] Read generated files in binary modeNobuyoshi Nakada2023-03-311-13/+12
| | | | | | | So that fixes crash with "invalid byte sequence in US-ASCII" on ci.rvm.jp and some RubyCIs. https://github.com/ruby/rdoc/commit/4b416644f0
* [ruby/rdoc] Add test coverage for -C flagzzak2023-02-061-0/+20
| | | | https://github.com/ruby/rdoc/commit/564be08f4b
* [ruby/rdoc] Add rdoc:coverage default taskzzak2023-02-031-0/+9
| | | | https://github.com/ruby/rdoc/commit/157fbaf575
* [ruby/rdoc] Fix fragile testsNobuyoshi Nakada2022-12-231-2/+2
| | | | | | | When the temporary path is long enough, the formatter may fold the path and may hit a hyphen at the end of line, and miscounted. https://github.com/ruby/rdoc/commit/5f46479543
* Debug for zlinux CI [ci skip]Nobuyoshi Nakada2022-12-231-2/+2
|
* [ruby/rdoc] Clean up home directories for each testNobuyoshi Nakada2022-12-233-12/+8
| | | | https://github.com/ruby/rdoc/commit/f067c174da
* [ruby/rdoc] Non-RD part feature has not been imported to RDocNobuyoshi Nakada2022-12-011-0/+21
| | | | https://github.com/ruby/rdoc/commit/fe0159de2f
* [ruby/rdoc] Add `--no-skipping-tests` optionSven Riedel2022-11-282-0/+53
| | | | https://github.com/ruby/rdoc/commit/33925f885f
* Skip a broken RDoc testTakashi Kokubun2022-11-271-0/+1
| | | | | | | | | | | | | | | | | | http://ci.rvm.jp/results/trunk-yjit@phosphorus-docker/4309535 http://ci.rvm.jp/results/trunk-random0@phosphorus-docker/4309536 http://ci.rvm.jp/results/trunk-random1@phosphorus-docker/4309538 http://ci.rvm.jp/results/trunk-random2@phosphorus-docker/4309541 http://ci.rvm.jp/results/trunk-random3@phosphorus-docker/4309544 http://ci.rvm.jp/results/trunk-no-mjit@phosphorus-docker/4309550 http://ci.rvm.jp/results/trunk-yjit@phosphorus-docker/4309556 http://ci.rvm.jp/results/trunk-random0@phosphorus-docker/4309562 http://ci.rvm.jp/results/trunk-random1@phosphorus-docker/4309564 http://ci.rvm.jp/results/trunk-random2@phosphorus-docker/4309567 http://ci.rvm.jp/results/trunk-random3@phosphorus-docker/4309570 http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20221127T200003Z.fail.html.gz http://ci.rvm.jp/results/trunk-random-repeat@phosphorus-docker/4309581 http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20221127T203002Z.fail.html.gz http://ci.rvm.jp/results/trunk-yjit@phosphorus-docker/4309588
* [ruby/rdoc] Revert "Refactor `RDoc::Markup::Parser#tokenize`"Nobuyoshi Nakada2022-11-271-10/+11
| | | | | | This reverts commit https://github.com/ruby/rdoc/commit/41ceae93b3bc. https://github.com/ruby/rdoc/commit/5d2c47e8b8
* [ruby/rdoc] Refactor `RDoc::Markup::Parser#tokenize`Nobuyoshi Nakada2022-11-271-11/+10
| | | | | | Make verbatims text or newline only, and simplify `build_verbatim`. https://github.com/ruby/rdoc/commit/41ceae93b3
* [ruby/rdoc] Darkfish: Nest sidebar ToC as a tree of headingsnick evans2022-11-271-0/+25
| | | | | | | This uses `<details><summary>heading</summary><ul>nested</ul></detail>`, similar to how the classes and pages lists are now nested. https://github.com/ruby/rdoc/commit/e57beff287
* [ruby/rdoc] Special characters are prohibited as filename on WindowsNobuyoshi Nakada2022-10-071-1/+10
| | | | https://github.com/ruby/rdoc/commit/13b9da5932
* [ruby/rdoc] Escape file namesNobuyoshi Nakada2022-10-071-0/+14
| | | | | | https://hackerone.com/reports/1321358 https://github.com/ruby/rdoc/commit/8c07cc4657
* [ruby/rdoc] Escape main titleNobuyoshi Nakada2022-10-071-0/+21
| | | | | | https://hackerone.com/reports/1187156 https://github.com/ruby/rdoc/commit/5dedb5741d
* [ruby/rdoc] Escape HYPERLINKsNobuyoshi Nakada2022-10-071-0/+5
| | | | https://github.com/ruby/rdoc/commit/ac35485be6
* [ruby/rdoc] Escape RDOCLINKsNobuyoshi Nakada2022-10-071-0/+25
| | | | | | https://hackerone.com/reports/1187156 https://github.com/ruby/rdoc/commit/7cecf1efae
* [ruby/rdoc] Escape TIDYLINKsNobuyoshi Nakada2022-10-071-0/+23
| | | | | | https://hackerone.com/reports/1187156 https://github.com/ruby/rdoc/commit/1ad2dd3ca2
* [ruby/rdoc] Add center alignNobuyoshi Nakada2022-10-061-2/+2
| | | | https://github.com/ruby/rdoc/commit/512cc55a0e
* [ruby/rdoc] Allow spaces around pipesNobuyoshi Nakada2022-10-061-1/+1
| | | | https://github.com/ruby/rdoc/commit/3b3a583580
* [ruby/rdoc] Allow escaped pipes in cellsNobuyoshi Nakada2022-10-061-1/+3
| | | | https://github.com/ruby/rdoc/commit/333952a62d
* [ruby/rdoc] Allow leading pipes to be ommittedNobuyoshi Nakada2022-10-061-3/+3
| | | | https://github.com/ruby/rdoc/commit/d263a2c9c4
* [ruby/rdoc] Allow trailing pipes to be ommittedNobuyoshi Nakada2022-10-061-0/+19
| | | | https://github.com/ruby/rdoc/commit/1318048877
* [ruby/rdoc] Allow RDoc markups in table cellsNobuyoshi Nakada2022-10-061-0/+4
| | | | https://github.com/ruby/rdoc/commit/b16d3f1727