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
857002a763
2021-09-03 19:13:15 +09:00
aycabta
cf2faf2e33
[ruby/rdoc] Move RDoc::RDoc#load_options to RDoc::RDoc.load_options
...
ac85e01756
2021-09-02 00:32:13 +09:00
aycabta
c264d30261
Use YAML.safe_load to use the permitted_classes option
2021-05-21 21:45:03 +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
Yusuke Endoh
79a7fd9120
Revert "Revert "[ruby/rdoc] Use omit of test-unit instead of skip of minitest""
...
This reverts commit ca5812fe45
.
Now tool/lib/minitest provides "omit", so it should work.
2019-10-29 13:16:31 +09:00
Yusuke Endoh
ca5812fe45
Revert "[ruby/rdoc] Use omit of test-unit instead of skip of minitest"
...
This reverts commit b4da6fc1c2
.
`make test-all` uses minitest, which led to "undefined method `omit'"
2019-10-29 12:57:31 +09:00
aycabta
c8ce37d427
[ruby/rdoc] Support different drive latters in include paths
...
946d2592e2
2019-10-29 12:34:44 +09:00
aycabta
b4da6fc1c2
[ruby/rdoc] Use omit of test-unit instead of skip of minitest
...
1c5bf2ae1d
2019-10-29 12:34:44 +09:00
Nobuyoshi Nakada
d70855c725
Added test for rdoc --force-update
option
2019-10-16 15:16:55 +09:00
aycabta
a458317b91
Use assert_raise and skip for test/unit
2019-08-16 06:45:36 +09:00
Hiroshi SHIBATA
daf5ce3ba1
Use omit instead of skip for test-unit.
2019-08-16 06:07:11 +09:00
Nobuyoshi Nakada
5555e3ef57
Renamed minitest_helper.rb as helper.rb
2019-08-16 06:07:11 +09:00
Hiroshi SHIBATA
2990c2cc3e
Use capture_output instead of capture_io.
...
It's preparation for migrating test-unit on upstream.
2019-08-11 06:14:01 +09:00
nobu
edb65a6254
rdoc: ignore gemspec files
...
[ruby-core:91067] [Bug #15531 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-13 13:49:25 +00:00
nobu
71d2695d17
rdoc: fixup the test for r66806
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-13 13:41:36 +00:00
mame
925a722ae2
test/rdoc: skip some tests when euid is root
...
root user can access a file whose permission is 0000.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-26 06:01:18 +00:00
hsbt
98c7058bf7
Merge RDoc 6.0.3 from upstream.
...
It fixed the several bugs that was found after RDoc 6 releasing.
From: SHIBATA Hiroshi <hsbt@ruby-lang.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-26 05:56:26 +00:00
mame
b496220a1f
skip some tests so that no failure occurs in root privilege
...
Some tests had failed on `sudo make test-all`, mainly because root can
access any files regardless of permission. This change adds `skip`
guards into such tests.
Note that almost all tests in which `skip` guards is added, already have
"windows" guard. This is because there is no support to avoid read
access by owner on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-10 10:39:09 +00:00
hsbt
5551871086
Merge rdoc-6.0.0.beta4 from upstream.
...
It version applied `frozen_string_literal: true`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-27 10:45:24 +00:00
hsbt
ba6ae341ba
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta2
...
Fixed ri parse defect with left-hand matched classes.
https://github.com/rdoc/rdoc/pull/420
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-07 22:23:38 +00:00
naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
hsbt
d42d6e690e
* lib/rdoc.rb, lib/rdoc, test/rdoc: Update to RDoc 4.2.0.alpha(313287)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-05 01:41:25 +00:00
drbrain
df7dac9174
* lib/rdoc: Update to RDoc 4.1.0.preview.1
...
RDoc 4.1.0 contains a number of enhancements including a new default
style and accessibility support. You can see the changelog here:
https://github.com/rdoc/rdoc/blob/v4.1.0.preview.1/History.rdoc
* test/rdoc: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-18 23:33:36 +00:00
nobu
835c555f7f
options.rb: include root for out-place build
...
* lib/rdoc/options.rb (RDoc#finish): include root path in include
paths, to work in another directory than the source directory.
[ruby-core:56282] [Bug #8712 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-31 19:06:21 +00:00
drbrain
f3b24b5b7f
* lib/rdoc/cross_reference.rb: Fixed matching of C#=== or #===. RDoc
...
bug #164
* test/rdoc/test_rdoc_cross_reference.rb: Test for above.
* lib/rdoc/parser/changelog.rb: Fixed parsing of dates. RDoc bug #165
* test/rdoc/test_rdoc_parser_changelog.rb: Test for above.
* lib/rdoc/parser.rb: Fixed parsing multibyte files with incomplete
characters at byte 1024. [ruby-trunk - Bug #6393 ]
Fixed handling of -E. [ruby-trunk - Bug #6392 ]
* test/rdoc/test_rdoc_options.rb: Test for above.
* test/rdoc/test_rdoc_parser.rb: ditto.
* test/rdoc/test_rdoc_parser_c.rb: ditto.
* test/rdoc/test_rdoc_parser_changelog.rb: ditto.
* test/rdoc/test_rdoc_parser_markdown.rb: ditto.
* test/rdoc/test_rdoc_parser_rd.rb: ditto.
* test/rdoc/test_rdoc_rdoc.rb: ditto.
* lib/rdoc/tom_doc.rb: Fixed parsing of [] in TomDoc arguments list.
RDoc bug #167
* test/rdoc/test_rdoc_tom_doc.rb: Test for above.
* lib/rdoc.rb: Update version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-04 06:16:13 +00:00
drbrain
b65b75bf2c
* lib/rdoc/options.rb: Added --page-dir option for moving pages in
...
doc/ to the top-level.
* lib/rdoc/rdoc.rb: ditto.
* test/rdoc/test_rdoc_options.rb: Test for the above.
* test/rdoc/test_rdoc_rdoc.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 07:44:56 +00:00
drbrain
d3c6187a4d
* test/rdoc/test_rdoc_options.rb: Windows drive letters are
...
case-insensitive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-01 00:49:20 +00:00
nobu
cf1d6730c1
remove trainling spaces
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 08:10:23 +00:00
naruse
07b10cd59f
* lib/rdoc/test_case.rb (RDoc::TestCase#verbose_capture_io):
...
defined for asserts of warnings.
* test/rdoc: use verbose_capture_io on asserts of warnings.
they failed when tests was run with RUBYOPT=-W0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 07:01:46 +00:00
drbrain
6d1266a879
* lib/rdoc/*: Added --root option for building documentation outside
...
the source directory.
* test/rdoc/*: ditto
* common.mk (rdoc): Added --root to rdoc rule
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 08:54:03 +00:00
drbrain
ef8e0908af
* test/rdoc/test_rdoc_generator_darkfish.rb: Updated tests for windows
...
* test/rdoc/test_rdoc_options.rb: ditto
* test/rdoc/test_rdoc_parser.rb: ditto
* test/rdoc/test_rdoc_rdoc.rb: ditto
* test/rdoc/test_rdoc_ri_driver.rb: ditto
* test/rdoc/test_rdoc_servlet.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 07:09:21 +00:00
drbrain
1c279a7d27
* lib/rdoc*: Updated to RDoc 4.0 (pre-release)
...
* bin/rdoc: ditto
* test/rdoc: ditto
* NEWS: Updated with RDoc 4.0 information
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 04:28:14 +00:00
nobu
9bee6cf51f
rdoc: --extension option fix
...
* lib/rdoc/parser.rb (RDoc.alias_extension): a real file is irrelevant
to aliasing. [ruby-core:44796][Bug #6392 ]
* lib/rdoc/parser.rb (RDoc.zip?): non-existent file will not be a zip
file.
* lib/rdoc/parser.rb (RDoc.can_parse_by_name): accept aliased
extension file names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-03 16:33:22 +00:00
drbrain
60f2c9cf5b
Upgrade to RDoc 3.5.3. Fixes [Bug #4376 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-07 07:07:12 +00:00
usa
55ea57af65
* test/rdoc/test_rdoc_options.rb (TestRDocOptions#test_check_files):
...
there is no easy way to create owner unreadable file on Windows.
So, skip the test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-07 01:23:28 +00:00
drbrain
8aa895294b
Import RDoc 3.5.2
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 06:20:57 +00:00
drbrain
cc2a16d94d
Import RDoc 3.5.1
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-02 00:32:30 +00:00
usa
ae931140b9
* test/rdoc/test_rdoc_options.rb (TestRDocOptions#test_check_files):
...
skip on Windows because chmod 0 doesn't mean unreadable by owner.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-05 05:06:44 +00:00
drbrain
e2efe8e81d
Import RDoc 3.1
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-28 22:08:56 +00:00
drbrain
2ef9c50c6e
Import RDoc 3
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-20 03:22:49 +00:00
drbrain
336a8301f7
Import RDoc 2.5.7. Fixes #1318 and ruby-core:29780
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-27 03:45:22 +00:00
drbrain
400afca88a
Update to RDoc 2.5.6
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-23 02:32:20 +00:00
drbrain
a7df5ace7e
Update to RDoc 2.5.5
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-21 03:10:03 +00:00
drbrain
46580b5147
Import RDoc 2.5
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 07:45:16 +00:00