summaryrefslogtreecommitdiff
path: root/test/rdoc
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/rdoc] Convert upper case copyright and registered marksNobuyoshi Nakada2021-09-111-0/+2
| | | | https://github.com/ruby/rdoc/commit/3bca7dc093
* [ruby/rdoc] Convert tick double quote in character entity referencesNobuyoshi Nakada2021-09-111-0/+1
| | | | https://github.com/ruby/rdoc/commit/6ed889aac9
* [ruby/rdoc] Convert a backtick to an open single quoteNobuyoshi Nakada2021-09-111-1/+1
| | | | https://github.com/ruby/rdoc/commit/82eaefbae4
* [ruby/rdoc] Convert single quotes in character entity referencesNobuyoshi Nakada2021-09-111-0/+7
| | | | | | | | As well as double quotes. https://github.com/ruby/rdoc/pull/824#discussion_r683173389 https://github.com/ruby/rdoc/commit/09002bdab5
* Removed obsoleted commentHiroshi SHIBATA2021-09-061-1/+1
|
* Removed redundant testsHiroshi SHIBATA2021-09-061-4/+0
|
* Removed MiniTest::Assertion from test/rdocHiroshi SHIBATA2021-09-061-6/+1
|
* [ruby/rdoc] Add tests for `--template-stylesheets` optionNobuyoshi Nakada2021-09-032-0/+29
| | | | | | | | | | Also flattens `@options.template_stylesheets` when parsing the command lines. Fixes #205 Fixes #828 too https://github.com/ruby/rdoc/commit/857002a763
* [ruby/rdoc] Try to load WEBrick for testingVít Ondruch2021-09-031-0/+4
| | | | | | | | This is in similar vein Rake is optionally loaded in: https://github.com/ruby/rdoc/blob/5437418baf8eeb984fe7e74b181d3da1b174d0f7/test/rdoc/test_rdoc_task.rb#L3-L6 https://github.com/ruby/rdoc/commit/5f3901ae60
* [ruby/rdoc] s/minitest/test-unit/gHiroshi SHIBATA2021-09-031-2/+2
| | | | https://github.com/ruby/rdoc/commit/73c030c7b0
* [ruby/rdoc] Removed duplicated docHiroshi SHIBATA2021-09-031-13/+0
| | | | https://github.com/ruby/rdoc/commit/0dd36a5c35
* [ruby/rdoc] Move RDoc::RDoc#load_options to RDoc::RDoc.load_optionsaycabta2021-09-022-58/+58
| | | | https://github.com/ruby/rdoc/commit/ac85e01756
* [ruby/rdoc] Fix links without pathsNobuyoshi Nakada2021-07-051-0/+6
| | | | https://github.com/ruby/rdoc/commit/424bd5db4d
* [ruby/rdoc] Fix for explicit http linkNobuyoshi Nakada2021-07-051-6/+6
| | | | https://github.com/ruby/rdoc/commit/caf234665c
* [ruby/rdoc] Allow a label in a link to another document textNobuyoshi Nakada2021-07-051-0/+12
| | | | https://github.com/ruby/rdoc/commit/85bb2d33bb
* [ruby/rdoc] Fix assertions which look very likely unintendedNobuyoshi Nakada2021-07-051-2/+2
| | | | https://github.com/ruby/rdoc/commit/dc7c890a3d
* [ruby/rdoc] Support ActiveSupport::Concern.includedaycabta2021-07-051-0/+48
| | | | | | | | ref. https://github.com/rails/rails/blob/168ddaa08a63cd956bb7c3ba10be1a7ae36d4ee2/activerecord/lib/active_record/core.rb#L9-L20 https://github.com/ruby/rdoc/commit/a2d651dade Co-authored-by: Fumiaki MATSUSHIMA <mtsmfm@gmail.com>
* [ruby/rdoc] Prefer omit to pendNobuyoshi Nakada2021-07-051-5/+5
| | | | | | | | These conditions are not temporary, rather platform dependent. https://github.com/ruby/rdoc/pull/815#discussion_r654660411 https://github.com/ruby/rdoc/commit/92545fa250
* [ruby/rdoc] Fix chained inclusion ancestors_ofUlysse Buonomo2021-07-051-0/+24
| | | | | | | | Fixes #814 Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com> https://github.com/ruby/rdoc/commit/b45f747216
* Discard RDOCOPT environment variable to make tests stableNobuyoshi Nakada2021-06-231-0/+1
|
* Dispose the global rubygems configuration wholelyNobuyoshi Nakada2021-06-231-1/+1
|
* Clear rdoc options in the global rubygems configurationNobuyoshi Nakada2021-06-231-0/+2
|
* Clear default configurationsNobuyoshi Nakada2021-06-231-0/+13
| | | | | Remove environment variables which can affect the default configurations.
* Make temporary directory under the regular locationNobuyoshi Nakada2021-06-231-4/+2
|
* Close UserInteraction for tests to fix leaked file descriptorsNobuyoshi Nakada2021-06-231-0/+2
|
* [ruby/rdoc] Use pend instead of skipHiroshi SHIBATA2021-06-231-5/+5
| | | | https://github.com/ruby/rdoc/commit/8460a36d84
* [ruby/rdoc] Update test/rdoc/test_rdoc_rubygems_hook.rbHiroshi SHIBATA2021-06-231-0/+4
| | | | | https://github.com/ruby/rdoc/commit/fb264c4cc4 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [ruby/rdoc] Rwrite test-case for rubygems_hook without Gem::TestCaseHiroshi SHIBATA2021-06-231-18/+20
| | | | https://github.com/ruby/rdoc/commit/f8d1087ce5
* [ruby/rdoc] Add an alias for test-unit with older versions of RubyGemsaycabta2021-06-021-0/+3
| | | | https://github.com/ruby/rdoc/commit/b8d68fdd87
* The test for command injection on Unix platforms should be omitted on Windowsaycabta2021-05-311-0/+1
|
* Use YAML.safe_load to use the permitted_classes optionaycabta2021-05-211-3/+3
|
* [ruby/rdoc] Drop support for Ruby 2.4Nobuyoshi Nakada2021-05-211-1/+1
| | | | https://github.com/ruby/rdoc/commit/f480b970cc
* [ruby/rdoc] Follow-up rubygemsNobuyoshi Nakada2021-05-211-6/+12
| | | | | | Use test-unit assertions instead of minitest. https://github.com/ruby/rdoc/commit/d6a6209d7f
* [ruby/rdoc] Vertical-bar is disallowed in path names on WindowsNobuyoshi Nakada2021-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | No risk of remote code execution, when the file cannot be created. https://github.com/ruby/rdoc/runs/2565343916?check_suite_focus=true#step:5:58 ``` Error: test_remove_unparseable_CVE_2021_31799(TestRDocRDoc): Errno::EINVAL: Invalid argument @ utime_failed - | touch evil.txt && echo tags D:/rubyinstaller-head-x64/lib/ruby/3.1.0/fileutils.rb:1142:in `utime' D:/rubyinstaller-head-x64/lib/ruby/3.1.0/fileutils.rb:1142:in `block in touch' D:/rubyinstaller-head-x64/lib/ruby/3.1.0/fileutils.rb:1139:in `each' D:/rubyinstaller-head-x64/lib/ruby/3.1.0/fileutils.rb:1139:in `touch' D:/a/rdoc/rdoc/test/rdoc/test_rdoc_rdoc.rb:463:in `block (2 levels) in test_remove_unparseable_CVE_2021_31799' 460: temp_dir do 461: file_list = ['| touch evil.txt && echo tags'] 462: file_list.each do |f| => 463: FileUtils.touch f 464: end 465: 466: assert_equal file_list, @rdoc.remove_unparseable(file_list) ``` https://github.com/ruby/rdoc/commit/a7df7dc8fa
* [ruby/rdoc] Dir.children is 2.5+Nobuyoshi Nakada2021-05-211-1/+1
| | | | | | | | | | | | | | | | | | | RDoc seems still supporting outdated 2.4. https://github.com/ruby/rdoc/runs/2565344070?check_suite_focus=true#step:5:64 ``` Error: test_remove_unparseable_CVE_2021_31799(TestRDocRDoc): NoMethodError: undefined method `children' for Dir:Class /home/runner/work/rdoc/rdoc/test/rdoc/test_rdoc_rdoc.rb:467:in `block in test_remove_unparseable_CVE_2021_31799' 464: end 465: 466: assert_equal file_list, @rdoc.remove_unparseable(file_list) => 467: assert_equal file_list, Dir.children('.') 468: end 469: end 470: ``` https://github.com/ruby/rdoc/commit/5a4a64dc0f
* [ruby/rdoc] Use File.open to fix the OS Command Injection vulnerability in ↵aycabta2021-05-211-0/+12
| | | | | | CVE-2021-31799 https://github.com/ruby/rdoc/commit/a7f5d6ab88
* lib/rdoc/rdoc.rb: Allow only RDoc::Options in .rdoc_optionsYusuke Endoh2021-05-171-3/+3
| | | | | Follow-up of d8fd92f62024d85271a3f1125bc6928409f912e1. Instead of using unsafe_load blindly, RDoc::Options is only supposed to be allowed.
* Workaround with fbb4e3f96c10de2240f2d87eac19cf6f62f65fea in rdocHiroshi SHIBATA2021-05-171-3/+3
|
* Use assert_raise instead of assert_raisesHiroshi SHIBATA2021-05-121-2/+2
|
* [ruby/rdoc] Links to document texts without "rdoc-ref:" prefixNobuyoshi Nakada2021-04-031-0/+21
| | | | | | | | | | | | | | While links to generated HTML from RDoc file needs to be prefixed by "rdoc-ref:" currently, in case of explicit references this seems just redundant. Also GitHub RDoc support does not work with this prefix. This patch lets links to such document texts (".rb", ".rdoc" and ".md" now) refer URLs generated by `RDoc::TopLevel#http_url` without the prefix. https://github.com/ruby/rdoc/commit/f18b27b69d
* [ruby/rdoc] Clarify that dots in URL are replacedNobuyoshi Nakada2021-04-031-0/+3
| | | | | | | The dots in all path components from the document root are replaced with underscores, not only in the basename. https://github.com/ruby/rdoc/commit/7a3417ea4c
* [ruby/rdoc] Treat emphasis tags as excluding other notationsaycabta2021-04-031-0/+1
| | | | | | And exclusive notations don't exclude other exclusive notations. https://github.com/ruby/rdoc/commit/b8baa9a435
* [ruby/rdoc] Treat other tags as word boundariesaycabta2021-04-031-0/+5
| | | | https://github.com/ruby/rdoc/commit/8222f85a17
* [ruby/rdoc] Disable other notations in <code> tagsaycabta2021-04-032-3/+27
| | | | https://github.com/ruby/rdoc/commit/0cd3b55210
* [ruby/rdoc] Allow empty .rdoc_optionsaycabta2021-03-161-0/+11
| | | | https://github.com/ruby/rdoc/commit/0c8cb25b50
* [ruby/rdoc] Allow partial default values to be overridden with .rdoc_optionsaycabta2021-03-161-0/+12
| | | | https://github.com/ruby/rdoc/commit/e14800891f
* [ruby/rdoc] Fixed CodeFence without blank linesNobuyoshi Nakada2021-03-161-4/+32
| | | | | | | | | | | | | | | Currently a fenced code block needs a preceding blank line, it should not be required, as: https://github.github.com/gfm/#fenced-code-blocks > A fenced code block may interrupt a paragraph, and does not > require a blank line either before or after. Just recommended: https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks > We recommend placing a blank line before and after code blocks > to make the raw formatting easier to read. https://github.com/ruby/rdoc/commit/0e1776caf3
* [ruby/rdoc] Support GFM tableNobuyoshi Nakada2021-03-161-0/+23
| | | | https://github.com/ruby/rdoc/commit/9dc933df16
* [ruby/rdoc] Support iso-strict format in git-logNobuyoshi Nakada2021-01-251-0/+11
| | | | https://github.com/ruby/rdoc/commit/2a6c22da63
* [ruby/rdoc] Support other date formats in git-logNobuyoshi Nakada2021-01-251-0/+22
| | | | https://github.com/ruby/rdoc/commit/ad8cf37d72