Nobuyoshi Nakada
ebcbca96fb
[ruby/rdoc] Fix full name of known class
...
Properly set the name of `File::Constants`, which is the only name
with a namespace in `RDoc::KNOWN_CLASSES`, and fixes longstanding bug
that `File::Constants` becomes `File::File::Constants`.
When it is generated by `rb_file_const` in dir.c, `name` is set to the
qualified name as same as `full_name`, and generated in the normal way
in file.c later, already set `full_name` is cleared and `name` will be
constructed from the enclosing namespace and the `name`. It will
results in duplicated namespace, `File::File::Constants`.
https://github.com/ruby/rdoc/commit/3a8d6df562
2022-03-16 15:05:41 +09:00
Nobuyoshi Nakada
976431d9ed
[ruby/rdoc] Fold class and module index
...
https://github.com/ruby/rdoc/commit/4c7c46fcc4
2022-03-14 14:48:12 +09:00
Peter Zhu
f62f913132
[ruby/rdoc] Support crossref of methods with multiple arguments
...
For example, consider the following markup:
C1#m(a, b)
Before this patch, it generated this HTML:
<p><a href=\"C1.html#method-i-m\"><code>C1#m</code></a>(a, b)</p>
Which places the method arguments outside of the link.
Now it generates this HTML:
<a href=\"C1.html#method-i-m\"><code>C1#m(a, b)</code></a>
https://github.com/ruby/rdoc/commit/05a2b2222b
2022-03-09 23:38:45 +09:00
Nobuyoshi Nakada
844a8355a1
[ruby/rdoc] Load YAML library for each test
...
https://github.com/ruby/rdoc/commit/a93e1bcd68
2022-02-12 17:13:06 +09:00
Nobuyoshi Nakada
3b3fb73d61
[ruby/rdoc] Dump plain objects as `RDoc::Options`
...
So that the generated `.rdoc_options` file is loadable.
https://github.com/ruby/rdoc/commit/6cf6e1647b
2022-02-12 16:15:08 +09:00
Nobuyoshi Nakada
11f3882173
[ruby/rdoc] Fix a test method name
...
https://github.com/ruby/rdoc/commit/8166b84cf3
2022-02-12 16:02:17 +09:00
Ulysse Buonomo
5348a34504
[ruby/rdoc] Relative loading for easier development ( https://github.com/ruby/rdoc/pull/821 )
...
This patch makes sure we only load relative code. Hence when coding or
testing rdoc, we'll be sure to always be using the correct code.
Discussion started at https://github.com/ruby/rdoc/pull/817 .
Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
https://github.com/ruby/rdoc/commit/aa41bd48eb
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-02-12 15:06:06 +09:00
Nobuyoshi Nakada
ec6d1cf28f
[ruby/rdoc] Get rid of ruby-mode.el confusions
...
https://github.com/ruby/rdoc/commit/63fac51198
2022-02-09 22:22:45 +09:00
Nobuyoshi Nakada
994b3f1dc6
[ruby/rdoc] Allow cross references to negation operator method
...
https://github.com/ruby/rdoc/commit/69cafb213a
2022-02-09 19:41:12 +09:00
Nobuyoshi Nakada
8db06fe2c9
[ruby/rdoc] Allow cross references to logical operator methods
...
https://github.com/ruby/rdoc/commit/17c0da304d
2022-02-09 19:41:11 +09:00
Soutaro Matsumoto
cbd54cba03
[ruby/rdoc] Skip parentheses on singleton class declaration
...
https://github.com/ruby/rdoc/commit/b6c6d4f978
2022-02-09 18:45:05 +09:00
Nobuyoshi Nakada
88b1d21dbb
[ruby/rdoc] Allow cross references to backtick method
...
https://github.com/ruby/rdoc/commit/52c33157f1
2022-02-09 18:44:41 +09:00
Nobuyoshi Nakada
202f690a5e
[ruby/rdoc] Allow cross references to operator methods
...
Make operator methods, e.g., `Regexp#=~`, `Integer#<=>`, cross
reference targets.
https://github.com/ruby/rdoc/commit/5d332a4128
2022-02-09 18:44:40 +09:00
Nobuyoshi Nakada
dec96dd897
[ruby/rdoc] Support all struct definition functions
...
Currently only `rb_struct_define_without_accessor` is supported by
https://github.com/ruby/rdoc/pull/73 . We should support other
three functions too.
https://github.com/ruby/rdoc/commit/d42288f06c
2022-02-09 18:43:07 +09:00
aycabta
6ff9fcdfa8
[ruby/rdoc] Support addition Object class when adding methods to top level
...
https://github.com/ruby/rdoc/commit/23747b4950
2021-12-09 18:16:06 +09:00
aycabta
2e50989ad3
[ruby/rdoc] Resolve class and method of the same name correctly
...
https://github.com/ruby/rdoc/commit/1e16284fe5
2021-12-09 18:16:05 +09:00
Nobuyoshi Nakada
f6330a45f2
[ruby/rdoc] Fix typos in test method names [ci skip]
...
https://github.com/ruby/rdoc/commit/8386333323
2021-11-04 08:56:38 +09:00
Mike Dalessio
4ffc3fb019
[ruby/rdoc] fix: alias to method with call-seq
...
This change fixes alias call-seq to return nil if the method's
call-seq does not specify the alias.
Previously, the alias's call-seq would be an empty string in this case
which broke darkfish rendering.
This change also backfills test coverage for 0ead786 which moved
call-seq deduplication into AnyMethod.
https://github.com/ruby/rdoc/commit/5ce2789b6f
2021-10-16 06:31:11 +09:00
Mike Dalessio
4c42540da2
[ruby/rdoc] Support linking #==
...
See related commits:
- ebc66662 for #===
- 4943d208 for #[], #[]=, #<<, and #>>
https://github.com/ruby/rdoc/commit/8e47f7840a
2021-10-16 01:40:47 +09:00
Mike Dalessio
7aec65add4
[ruby/rdoc] feat: add support for :category: on C functions
...
https://github.com/ruby/rdoc/commit/45c92005fe
2021-10-16 01:39:36 +09:00
Mike Dalessio
fbd0516afc
[ruby/rdoc] fix: comments in C files use the global markup option
...
Previously, Parser::C comments all defaulted to "rdoc" format, even
when the user had set a different default with the `--markup=<choice>`
option.
https://github.com/ruby/rdoc/commit/4643b08a26
2021-10-16 01:39:06 +09:00
Mike Dalessio
9225f3c1c6
[ruby/rdoc] test: add coverage for comment format in a C file
...
https://github.com/ruby/rdoc/commit/3b8334a796
2021-10-16 01:39:04 +09:00
Hiroshi SHIBATA
ec6b444fbf
Fixed leaked file descriptor
...
Leaked file descriptor: TestRDocGeneratorDarkfish#test_template_stylesheets: 11 : #<File:./tmp20210913-30865-7c4ey8/hoge20210913-30865-evm2uo.css>
2021-09-13 09:36:42 +09:00
Nobuyoshi Nakada
0fbde94b27
[ruby/rdoc] Convert upper case copyright and registered marks
...
https://github.com/ruby/rdoc/commit/3bca7dc093
2021-09-11 17:03:52 +09:00
Nobuyoshi Nakada
bc0ea95ca8
[ruby/rdoc] Convert tick double quote in character entity references
...
https://github.com/ruby/rdoc/commit/6ed889aac9
2021-09-11 17:03:38 +09:00
Nobuyoshi Nakada
6944163415
[ruby/rdoc] Convert a backtick to an open single quote
...
https://github.com/ruby/rdoc/commit/82eaefbae4
2021-09-11 17:03:33 +09:00
Nobuyoshi Nakada
c5c0f5c652
[ruby/rdoc] Convert single quotes in character entity references
...
As well as double quotes.
https://github.com/ruby/rdoc/pull/824#discussion_r683173389
https://github.com/ruby/rdoc/commit/09002bdab5
2021-09-11 17:03:26 +09:00
Hiroshi SHIBATA
afd7d1672f
Removed obsoleted comment
2021-09-06 19:36:04 +09:00
Hiroshi SHIBATA
13dd07e397
Removed redundant tests
2021-09-06 13:11:29 +09:00
Hiroshi SHIBATA
a68a1b0b7d
Removed MiniTest::Assertion from test/rdoc
2021-09-06 13:11:29 +09:00
Nobuyoshi Nakada
76c7388c1f
[ruby/rdoc] Add tests for `--template-stylesheets` option
...
Also flattens `@options.template_stylesheets` when parsing the
command lines.
Fixes #205
Fixes #828 too
https://github.com/ruby/rdoc/commit/857002a763
2021-09-03 19:13:15 +09:00
Vít Ondruch
33676a7aa6
[ruby/rdoc] Try to load WEBrick for testing
...
This is in similar vein Rake is optionally loaded in:
5437418baf/test/rdoc/test_rdoc_task.rb (L3-L6)
https://github.com/ruby/rdoc/commit/5f3901ae60
2021-09-03 19:12:24 +09:00
Hiroshi SHIBATA
b809e5a4a9
[ruby/rdoc] s/minitest/test-unit/g
...
https://github.com/ruby/rdoc/commit/73c030c7b0
2021-09-03 19:10:34 +09:00
Hiroshi SHIBATA
0a9a3799bb
[ruby/rdoc] Removed duplicated doc
...
https://github.com/ruby/rdoc/commit/0dd36a5c35
2021-09-03 19:10:28 +09:00
aycabta
cf2faf2e33
[ruby/rdoc] Move RDoc::RDoc#load_options to RDoc::RDoc.load_options
...
https://github.com/ruby/rdoc/commit/ac85e01756
2021-09-02 00:32:13 +09:00
Nobuyoshi Nakada
3dacc14fd3
[ruby/rdoc] Fix links without paths
...
https://github.com/ruby/rdoc/commit/424bd5db4d
2021-07-05 11:34:37 +09:00
Nobuyoshi Nakada
f88a9097a4
[ruby/rdoc] Fix for explicit http link
...
https://github.com/ruby/rdoc/commit/caf234665c
2021-07-05 11:34:35 +09:00
Nobuyoshi Nakada
7c8aa0a5d2
[ruby/rdoc] Allow a label in a link to another document text
...
https://github.com/ruby/rdoc/commit/85bb2d33bb
2021-07-05 11:34:33 +09:00
Nobuyoshi Nakada
46ab28d6c9
[ruby/rdoc] Fix assertions which look very likely unintended
...
https://github.com/ruby/rdoc/commit/dc7c890a3d
2021-07-05 11:34:31 +09:00
aycabta
caa123b50e
[ruby/rdoc] Support ActiveSupport::Concern.included
...
ref. 168ddaa08a/activerecord/lib/active_record/core.rb (L9-L20)
https://github.com/ruby/rdoc/commit/a2d651dade
Co-authored-by: Fumiaki MATSUSHIMA <mtsmfm@gmail.com>
2021-07-05 11:34:29 +09:00
Nobuyoshi Nakada
2f3edf28f3
[ruby/rdoc] Prefer omit to pend
...
These conditions are not temporary, rather platform dependent.
https://github.com/ruby/rdoc/pull/815#discussion_r654660411
https://github.com/ruby/rdoc/commit/92545fa250
2021-07-05 11:34:27 +09:00
Ulysse Buonomo
ec9a9af375
[ruby/rdoc] Fix chained inclusion ancestors_of
...
Fixes #814
Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
https://github.com/ruby/rdoc/commit/b45f747216
2021-07-05 11:34:25 +09:00
Nobuyoshi Nakada
298d65b1e4
Discard RDOCOPT environment variable to make tests stable
2021-06-23 18:57:39 +09:00
Nobuyoshi Nakada
09e7a0c4a4
Dispose the global rubygems configuration wholely
2021-06-23 18:56:10 +09:00
Nobuyoshi Nakada
ddb8739634
Clear rdoc options in the global rubygems configuration
2021-06-23 18:46:53 +09:00
Nobuyoshi Nakada
69ce9e4187
Clear default configurations
...
Remove environment variables which can affect the default
configurations.
2021-06-23 15:14:21 +09:00
Nobuyoshi Nakada
950c7a12ef
Make temporary directory under the regular location
2021-06-23 14:17:43 +09:00
Nobuyoshi Nakada
923b365224
Close UserInteraction for tests to fix leaked file descriptors
2021-06-23 12:52:32 +09:00
Hiroshi SHIBATA
6aaa1c4d09
[ruby/rdoc] Use pend instead of skip
...
https://github.com/ruby/rdoc/commit/8460a36d84
2021-06-23 11:05:18 +09:00
Hiroshi SHIBATA
f2e39e5fed
[ruby/rdoc] Update test/rdoc/test_rdoc_rubygems_hook.rb
...
https://github.com/ruby/rdoc/commit/fb264c4cc4
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-06-23 11:05:14 +09:00
Hiroshi SHIBATA
c483aa8394
[ruby/rdoc] Rwrite test-case for rubygems_hook without Gem::TestCase
...
https://github.com/ruby/rdoc/commit/f8d1087ce5
2021-06-23 11:05:11 +09:00
aycabta
77e1b47729
[ruby/rdoc] Add an alias for test-unit with older versions of RubyGems
...
https://github.com/ruby/rdoc/commit/b8d68fdd87
2021-06-02 11:35:45 +09:00
aycabta
c9ab8fe2b1
The test for command injection on Unix platforms should be omitted on Windows
2021-05-31 23:34:40 +09:00
aycabta
c264d30261
Use YAML.safe_load to use the permitted_classes option
2021-05-21 21:45:03 +09:00
Nobuyoshi Nakada
59b327aa58
[ruby/rdoc] Drop support for Ruby 2.4
...
https://github.com/ruby/rdoc/commit/f480b970cc
2021-05-21 15:53:34 +09:00
Nobuyoshi Nakada
f18a0b7654
[ruby/rdoc] Follow-up rubygems
...
Use test-unit assertions instead of minitest.
https://github.com/ruby/rdoc/commit/d6a6209d7f
2021-05-21 15:53:34 +09:00
Nobuyoshi Nakada
10e63f3f56
[ruby/rdoc] Vertical-bar is disallowed in path names on Windows
...
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 15:53:34 +09:00
Nobuyoshi Nakada
a298bdf860
[ruby/rdoc] Dir.children is 2.5+
...
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 15:53:34 +09:00
aycabta
b1c73f239f
[ruby/rdoc] Use File.open to fix the OS Command Injection vulnerability in CVE-2021-31799
...
https://github.com/ruby/rdoc/commit/a7f5d6ab88
2021-05-21 13:42:24 +09:00
Yusuke Endoh
ffdf0232ef
lib/rdoc/rdoc.rb: Allow only RDoc::Options in .rdoc_options
...
Follow-up of d8fd92f620
. Instead of using
unsafe_load blindly, RDoc::Options is only supposed to be allowed.
2021-05-17 12:53:42 +09:00
Hiroshi SHIBATA
d8fd92f620
Workaround with fbb4e3f96c
in rdoc
2021-05-17 12:04:40 +09:00
Hiroshi SHIBATA
81720b947a
Use assert_raise instead of assert_raises
2021-05-12 17:24:43 +09:00
Nobuyoshi Nakada
64b991b0cd
[ruby/rdoc] Links to document texts without "rdoc-ref:" prefix
...
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 01:22:09 +09:00
Nobuyoshi Nakada
a6948329f8
[ruby/rdoc] Clarify that dots in URL are replaced
...
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 01:22:00 +09:00
aycabta
61e1cf23ac
[ruby/rdoc] Treat emphasis tags as excluding other notations
...
And exclusive notations don't exclude other exclusive notations.
https://github.com/ruby/rdoc/commit/b8baa9a435
2021-04-03 01:21:50 +09:00
aycabta
e84d275fe6
[ruby/rdoc] Treat other tags as word boundaries
...
https://github.com/ruby/rdoc/commit/8222f85a17
2021-04-03 01:21:38 +09:00
aycabta
54aa11efa8
[ruby/rdoc] Disable other notations in <code> tags
...
https://github.com/ruby/rdoc/commit/0cd3b55210
2021-04-03 01:21:12 +09:00
aycabta
61a29a41e1
[ruby/rdoc] Allow empty .rdoc_options
...
https://github.com/ruby/rdoc/commit/0c8cb25b50
2021-03-16 15:47:27 +09:00
aycabta
971a0cd246
[ruby/rdoc] Allow partial default values to be overridden with .rdoc_options
...
https://github.com/ruby/rdoc/commit/e14800891f
2021-03-16 15:47:27 +09:00
Nobuyoshi Nakada
de8e6218a3
[ruby/rdoc] Fixed CodeFence without blank lines
...
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
2021-03-16 15:47:27 +09:00
Nobuyoshi Nakada
3651f678a7
[ruby/rdoc] Support GFM table
...
https://github.com/ruby/rdoc/commit/9dc933df16
2021-03-16 15:47:27 +09:00
Nobuyoshi Nakada
19e6d27126
[ruby/rdoc] Support iso-strict format in git-log
...
https://github.com/ruby/rdoc/commit/2a6c22da63
2021-01-25 18:33:33 +09:00
Nobuyoshi Nakada
7fe22152fc
[ruby/rdoc] Support other date formats in git-log
...
https://github.com/ruby/rdoc/commit/ad8cf37d72
2021-01-25 18:33:31 +09:00
Nobuyoshi Nakada
52ebaf718e
[ruby/rdoc] Skip non-date logs by git-log
...
`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 16:46:27 +09:00
Nobuyoshi Nakada
d5d1c41728
[ruby/rdoc] Sort by CommitDate if available
...
https://github.com/ruby/rdoc/commit/455715e930
2021-01-24 16:46:25 +09:00
Nobuyoshi Nakada
fa048a0f85
[ruby/rdoc] Add links to the commits
...
https://github.com/ruby/rdoc/commit/1821628076
2021-01-24 16:46:23 +09:00
Nobuyoshi Nakada
f3f1a666c7
[ruby/rdoc] Shorten commit hashes
...
https://github.com/ruby/rdoc/commit/5d3e153963
2021-01-24 16:46:21 +09:00
Nobuyoshi Nakada
127f735c1e
[ruby/rdoc] Tweak log entry markdown
...
* add 3 levels to headings
* prefix commit log to labels to make unique IDs
https://github.com/ruby/rdoc/commit/5074c13209
2021-01-24 16:46:19 +09:00
Nobuyoshi Nakada
b88d1e6b44
[ruby/rdoc] Make each commit entries h3
...
https://github.com/ruby/rdoc/commit/11eefb2ae9
2021-01-24 16:46:17 +09:00
Nobuyoshi Nakada
bb570ce6d8
[ruby/rdoc] Support ChangeLog generated by `git log`
...
https://github.com/ruby/rdoc/commit/5e0a123ca1
2021-01-24 16:46:15 +09:00
Hiroshi SHIBATA
391343e828
[ruby/rdoc] Guard for WEBrick
...
https://github.com/ruby/rdoc/commit/b1e7129e05
2020-12-21 16:21:46 +09:00
Nobuyoshi Nakada
e23f0f29da
[ruby/rdoc] update all files if any file is newer
...
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 14:57:58 +09:00
aycabta
b5db9b8a31
[ruby/rdoc] Support full filename to make a link for a text file
...
https://github.com/ruby/rdoc/commit/41db49c485
2020-09-18 14:57:57 +09:00
Benoit Daloze
d7492a0be8
Revert changes to rdoc & rubygems regarding Tempfile.open(&block)
...
* They likely want to support older Ruby/tempfile versions
* Reverts part of e8c3872555
2020-08-29 12:49:20 +02:00
Benoit Daloze
e8c3872555
Simplify Tempfile.open calls with a block as they now unlink the file automatically
2020-08-29 12:23:23 +02:00
Kazuhiro NISHIYAMA
946cd6c534
Use https instead of http
2020-07-28 19:51:54 +09:00
aycabta
c6c023317c
[ruby/rdoc] Check uninitialized instance variable in test
...
https://github.com/ruby/rdoc/commit/3dcd5ddbb6
2020-05-24 23:47:24 +09:00
aycabta
f52a4690f8
[ruby/rdoc] Process crossref before tidylink
...
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 23:47:24 +09:00
Nate Matykiewicz
c79f9ea606
[ruby/rdoc] Escape method names in HTML
...
The following is invalid HTML:
<a href="Array.html#method-i-3C-3C"><code><<</code></a></p>
Incorrect:
<code><<</code>
Correct:
<code><<</code>
Fixes #761
https://github.com/ruby/rdoc/commit/b120d087f6
2020-05-24 23:47:24 +09:00
Kazuhiro NISHIYAMA
36ed700711
Fix failures of test/rdoc/test_rdoc_ri_paths.rb
...
yield `home_dir` when HOMEDIR is not falsy only.
d0f41aa238/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-26 16:14:14 +09:00
Kazuhiro NISHIYAMA
63fe3739dd
Fix errors when `RDoc::RI::Paths::HOMEDIR` is nil
...
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-26 11:07:42 +09:00
Nobuyoshi Nakada
cc8f55e9e3
[ruby/rdoc] HOME is preserved by RDoc::TestCase
...
https://github.com/ruby/rdoc/commit/6c4801d1f6
2020-04-25 02:49:37 +09:00
Nobuyoshi Nakada
ae235db25d
[ruby/rdoc] Should teardown in reverse order of setup
...
https://github.com/ruby/rdoc/commit/00fb4dd2a3
2020-04-25 02:49:35 +09:00
Hiroshi SHIBATA
c5b17b0354
Remove and Restore the original HOME dir ( #3057 )
2020-04-24 21:22:05 +09:00
Hiroshi SHIBATA
5c6269c459
Support XDG_* ( #2174 )
...
* Support XDG_CONFIG_HOME for gemrc.
* Support XDG_DATA_HOME for .gem
* Added test for XDG_DATA_HOME
* Do not reuse environmental variable.
* Unify .rdoc path to RDoc.home.
* Support XDG_DATA_HOME for .rdoc
* Ignore exists?
* Extracted config_home path
* Use XDG_CONFIG_HOME for default credential path
* Fixed inconsistency location.
* Fixed the broken tests.
* Support XDG_CONFIG_HOME for irbrc
* Introduce Gem.cache_home as XDG_CACHE_HOME
* Use Gem.cache_home instead of Gem.config_home for the credential file of RubyGems.
* Initialized the old configurations
* Fixed test failure related the configuration initialization
* restore XDG_DATA_HOME
* Fixed the broken examples of bundler with XDG_*
* Do not modify environmental variable on test file
* Use XDG_DATA_HOME insted of XDG_CACHE_HOME for credential file
* stub out Gem.data_home
* Move dir accessor to defaults.rb file
* Use XDG_DATA_HOME for signed gem features
* Use XDG_DATA_HOME for spec cache
* Do not rely on Gem.user_home
* Gem.user_home is always exists. Don't need to use FileUitls.mkdir_p
* Bump support version to RubyGems 3.2.0+
* Removed the needless fallback configuration
* Fixed the inconsistency methods that are find_config_file and config_file
* Use Gem.configuration.credentials_path instead of hard-coded path
* gem_path is always provided
* Removed the duplicated code of find_home
* Also removed the duplicated code of user_home
* use Gem::UNTAINT instead of untaint for surpressing the warnings
* Use File.directory
* Restore XDG_DATA_HOME
* Use File.write
2020-04-23 19:16:06 +09:00
Nobuyoshi Nakada
f5abcf767e
[ruby/rdoc] Removed `RDoc::Context::Section#sequence`
...
It has been deprecated since 2011.
https://github.com/ruby/rdoc/commit/5c2aa0f77d
2020-02-20 18:06:19 +09:00
aycabta
adc9b3ca7f
[ruby/rdoc] Support newline in the middle of constant definition
...
https://github.com/ruby/rdoc/commit/74d3984324
2019-12-24 07:58:53 +09:00
aycabta
e50e552693
[ruby/rdoc] Treat Proc#call syntax sugar for constant correctly
...
https://github.com/ruby/rdoc/commit/957d041ae0
2019-12-24 07:58:53 +09:00
Nobuyoshi Nakada
e68999c82c
Fixed misspellings
...
Fixed misspellings reported at [Bug #16437 ], for default gems.
2019-12-20 12:19:45 +09:00
aycabta
2d0a1a1869
Fix ghost method line no
2019-11-28 08:19:05 +09:00