summaryrefslogtreecommitdiff
path: root/test/rdoc
AgeCommit message (Collapse)Author
2021-06-23Clear rdoc options in the global rubygems configurationNobuyoshi Nakada
2021-06-23Clear default configurationsNobuyoshi Nakada
Remove environment variables which can affect the default configurations.
2021-06-23Make temporary directory under the regular locationNobuyoshi Nakada
2021-06-23Close UserInteraction for tests to fix leaked file descriptorsNobuyoshi Nakada
2021-06-23[ruby/rdoc] Use pend instead of skipHiroshi SHIBATA
https://github.com/ruby/rdoc/commit/8460a36d84
2021-06-23[ruby/rdoc] Update test/rdoc/test_rdoc_rubygems_hook.rbHiroshi SHIBATA
https://github.com/ruby/rdoc/commit/fb264c4cc4 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-06-23[ruby/rdoc] Rwrite test-case for rubygems_hook without Gem::TestCaseHiroshi SHIBATA
https://github.com/ruby/rdoc/commit/f8d1087ce5
2021-06-02[ruby/rdoc] Add an alias for test-unit with older versions of RubyGemsaycabta
https://github.com/ruby/rdoc/commit/b8d68fdd87
2021-05-31The test for command injection on Unix platforms should be omitted on Windowsaycabta
2021-05-21Use YAML.safe_load to use the permitted_classes optionaycabta
2021-05-21[ruby/rdoc] Drop support for Ruby 2.4Nobuyoshi Nakada
https://github.com/ruby/rdoc/commit/f480b970cc
2021-05-21[ruby/rdoc] Follow-up rubygemsNobuyoshi Nakada
Use test-unit assertions instead of minitest. https://github.com/ruby/rdoc/commit/d6a6209d7f
2021-05-21[ruby/rdoc] Vertical-bar is disallowed in path names on WindowsNobuyoshi Nakada
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
2021-05-21[ruby/rdoc] Dir.children is 2.5+Nobuyoshi Nakada
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
2021-05-21[ruby/rdoc] Use File.open to fix the OS Command Injection vulnerability in ↵aycabta
CVE-2021-31799 https://github.com/ruby/rdoc/commit/a7f5d6ab88
2021-05-17lib/rdoc/rdoc.rb: Allow only RDoc::Options in .rdoc_optionsYusuke Endoh
Follow-up of d8fd92f62024d85271a3f1125bc6928409f912e1. Instead of using unsafe_load blindly, RDoc::Options is only supposed to be allowed.
2021-05-17Workaround with fbb4e3f96c10de2240f2d87eac19cf6f62f65fea in rdocHiroshi SHIBATA
2021-05-12Use assert_raise instead of assert_raisesHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4491
2021-04-03[ruby/rdoc] Links to document texts without "rdoc-ref:" prefixNobuyoshi Nakada
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
2021-04-03[ruby/rdoc] Clarify that dots in URL are replacedNobuyoshi Nakada
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
2021-04-03[ruby/rdoc] Treat emphasis tags as excluding other notationsaycabta
And exclusive notations don't exclude other exclusive notations. https://github.com/ruby/rdoc/commit/b8baa9a435
2021-04-03[ruby/rdoc] Treat other tags as word boundariesaycabta
https://github.com/ruby/rdoc/commit/8222f85a17
2021-04-03[ruby/rdoc] Disable other notations in <code> tagsaycabta
https://github.com/ruby/rdoc/commit/0cd3b55210
2021-03-16[ruby/rdoc] Allow empty .rdoc_optionsaycabta
https://github.com/ruby/rdoc/commit/0c8cb25b50 Notes: Merged: https://github.com/ruby/ruby/pull/4274
2021-03-16[ruby/rdoc] Allow partial default values to be overridden with .rdoc_optionsaycabta
https://github.com/ruby/rdoc/commit/e14800891f Notes: Merged: https://github.com/ruby/ruby/pull/4274
2021-03-16[ruby/rdoc] Fixed CodeFence without blank linesNobuyoshi Nakada
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 Notes: Merged: https://github.com/ruby/ruby/pull/4274
2021-03-16[ruby/rdoc] Support GFM tableNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/9dc933df16 Notes: Merged: https://github.com/ruby/ruby/pull/4274
2021-01-25[ruby/rdoc] Support iso-strict format in git-logNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/2a6c22da63
2021-01-25[ruby/rdoc] Support other date formats in git-logNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/ad8cf37d72
2021-01-24[ruby/rdoc] Skip non-date logs by git-logNobuyoshi Nakada
`RDoc::Parser::ChangeLog` mis-parses ChangeLog generated by git-log, because of too heuristic `Time.parse`. For instance, "commit 8187228de0142d3ac7950b7d977c2849e934c637" results in "8187-08-16", that is, day 228 in the year 8187. https://github.com/ruby/rdoc/commit/9711e6f6d9
2021-01-24[ruby/rdoc] Sort by CommitDate if availableNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/455715e930
2021-01-24[ruby/rdoc] Add links to the commitsNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/1821628076
2021-01-24[ruby/rdoc] Shorten commit hashesNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/5d3e153963
2021-01-24[ruby/rdoc] Tweak log entry markdownNobuyoshi Nakada
* add 3 levels to headings * prefix commit log to labels to make unique IDs https://github.com/ruby/rdoc/commit/5074c13209
2021-01-24[ruby/rdoc] Make each commit entries h3Nobuyoshi Nakada
https://github.com/ruby/rdoc/commit/11eefb2ae9
2021-01-24[ruby/rdoc] Support ChangeLog generated by `git log`Nobuyoshi Nakada
https://github.com/ruby/rdoc/commit/5e0a123ca1
2020-12-21[ruby/rdoc] Guard for WEBrickHiroshi SHIBATA
https://github.com/ruby/rdoc/commit/b1e7129e05
2020-09-18[ruby/rdoc] update all files if any file is newerNobuyoshi Nakada
Cross references need parse all files which define the subject names. This commit makes `--force-update` option enforce to parse all files if any file is newer than the previous parse, not only updated files. https://github.com/ruby/rdoc/commit/13e9a44896
2020-09-18[ruby/rdoc] Support full filename to make a link for a text fileaycabta
https://github.com/ruby/rdoc/commit/41db49c485
2020-08-29Revert changes to rdoc & rubygems regarding Tempfile.open(&block)Benoit Daloze
* They likely want to support older Ruby/tempfile versions * Reverts part of e8c3872555fc85640505974e6b1c39d315572689
2020-08-29Simplify Tempfile.open calls with a block as they now unlink the file ↵Benoit Daloze
automatically
2020-07-28Use https instead of httpKazuhiro NISHIYAMA
2020-05-24[ruby/rdoc] Check uninitialized instance variable in testaycabta
https://github.com/ruby/rdoc/commit/3dcd5ddbb6
2020-05-24[ruby/rdoc] Process crossref before tidylinkaycabta
The crossref must be linked before tidylink because Klass.method[:sym] will be processed as a tidylink first and will be broken. https://github.com/ruby/rdoc/commit/0f47baf6d2
2020-05-24[ruby/rdoc] Escape method names in HTMLNate Matykiewicz
The following is invalid HTML: <a href="Array.html#method-i-3C-3C"><code><<</code></a></p> Incorrect: <code><<</code> Correct: <code>&lt;&lt;</code> Fixes #761 https://github.com/ruby/rdoc/commit/b120d087f6
2020-04-26Fix failures of test/rdoc/test_rdoc_ri_paths.rbKazuhiro NISHIYAMA
yield `home_dir` when HOMEDIR is not falsy only. https://github.com/ruby/ruby/blob/d0f41aa2382612022162d033ddb3d9c9cc62099e/lib/rdoc/ri/paths.rb#L43 ``` yield home_dir, :home if home and HOMEDIR ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/archlinux/ruby-master/log/20200426T033503Z.fail.html.gz ``` 1) Failure: TestRDocRIPaths#test_class_each [/home/chkbuild/build/20200426T033503Z/ruby/test/rdoc/test_rdoc_ri_paths.rb:54]: <nil> expected but was <"/home/naruse/chkbuild/tmp/build/20200426T033503Z/tmp/test_rdoc_ri_paths_1033468/doc/nodoc-1.0/ri">. 2) Failure: TestRDocRIPaths#test_class_raw_path [/home/chkbuild/build/20200426T033503Z/ruby/test/rdoc/test_rdoc_ri_paths.rb:131]: <nil> expected but was <"/home/naruse/chkbuild/tmp/build/20200426T033503Z/tmp/test_rdoc_ri_paths_1033468/doc/rake-10.0.1/ri">. 3) Failure: TestRDocRIPaths#test_class_raw_path_extra_dirs [/home/chkbuild/build/20200426T033503Z/ruby/test/rdoc/test_rdoc_ri_paths.rb:141]: <nil> expected but was <"/home/naruse/chkbuild/tmp/build/20200426T033503Z/tmp/test_rdoc_ri_paths_1033468/doc/rake-10.0.1/ri">. ```
2020-04-26Fix errors when `RDoc::RI::Paths::HOMEDIR` is nilKazuhiro NISHIYAMA
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-ad7f67/ruby-master/log/20200425T175405Z.fail.html.gz ``` 4) Error: TestRDocServlet#test_asset: NoMethodError: undefined method `replace' for nil:NilClass /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:48:in `setup' 5) Error: TestRDocServlet#test_asset: NoMethodError: undefined method `replace' for nil:NilClass /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:63:in `teardown' ``` ... ``` 74) Error: TestRDocServlet#test_store_for_site: NoMethodError: undefined method `replace' for nil:NilClass /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:48:in `setup' 75) Error: TestRDocServlet#test_store_for_site: NoMethodError: undefined method `replace' for nil:NilClass /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:63:in `teardown' ```
2020-04-25[ruby/rdoc] HOME is preserved by RDoc::TestCaseNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/6c4801d1f6
2020-04-25[ruby/rdoc] Should teardown in reverse order of setupNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/00fb4dd2a3
2020-04-24Remove and Restore the original HOME dir (#3057)Hiroshi SHIBATA
Notes: Merged-By: hsbt <hsbt@ruby-lang.org>