rdoc 3.9.5 → 3.10.pre.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rdoc might be problematic. Click here for more details.
- data.tar.gz.sig +0 -0
- data/.autotest +6 -3
- data/History.txt +63 -13
- data/LICENSE.rdoc +57 -0
- data/Manifest.txt +60 -6
- data/Rakefile +24 -12
- data/TODO.rdoc +30 -0
- data/bin/rdoc +0 -2
- data/lib/rdoc.rb +55 -2
- data/lib/rdoc/alias.rb +0 -2
- data/lib/rdoc/anon_class.rb +0 -2
- data/lib/rdoc/any_method.rb +0 -3
- data/lib/rdoc/attr.rb +0 -2
- data/lib/rdoc/class_module.rb +40 -7
- data/lib/rdoc/code_object.rb +1 -3
- data/lib/rdoc/code_objects.rb +3 -21
- data/lib/rdoc/comment.rb +225 -0
- data/lib/rdoc/constant.rb +0 -2
- data/lib/rdoc/context.rb +37 -120
- data/lib/rdoc/context/section.rb +114 -0
- data/lib/rdoc/cross_reference.rb +16 -7
- data/lib/rdoc/encoding.rb +0 -2
- data/lib/rdoc/gauntlet.rb +1 -1
- data/lib/rdoc/generator.rb +7 -2
- data/lib/rdoc/generator/darkfish.rb +126 -20
- data/lib/rdoc/generator/json_index.rb +240 -0
- data/lib/rdoc/generator/markup.rb +17 -54
- data/lib/rdoc/generator/ri.rb +0 -3
- data/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
- data/lib/rdoc/generator/template/darkfish/_head.rhtml +16 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +18 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +8 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +16 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +7 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +10 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +10 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +10 -0
- data/lib/rdoc/generator/template/darkfish/class.rhtml +161 -0
- data/lib/rdoc/generator/template/darkfish/fileinfo.rhtml +32 -0
- data/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- data/lib/rdoc/generator/template/darkfish/index.rhtml +16 -61
- data/lib/rdoc/generator/template/darkfish/js/darkfish.js +99 -64
- data/lib/rdoc/generator/template/darkfish/js/jquery.js +15 -29
- data/lib/rdoc/generator/template/darkfish/js/search.js +94 -0
- data/lib/rdoc/generator/template/darkfish/page.rhtml +16 -0
- data/lib/rdoc/generator/template/darkfish/rdoc.css +126 -286
- data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +50 -0
- data/lib/rdoc/generator/template/json_index/js/navigation.js +142 -0
- data/lib/rdoc/generator/template/json_index/js/searcher.js +228 -0
- data/lib/rdoc/ghost_method.rb +0 -2
- data/lib/rdoc/include.rb +0 -2
- data/lib/rdoc/markup.rb +204 -43
- data/lib/rdoc/markup/attr_changer.rb +25 -0
- data/lib/rdoc/markup/attr_span.rb +29 -0
- data/lib/rdoc/markup/attribute.rb +51 -0
- data/lib/rdoc/markup/document.rb +22 -1
- data/lib/rdoc/markup/formatter.rb +4 -11
- data/lib/rdoc/markup/formatter_test_case.rb +1 -2
- data/lib/rdoc/markup/heading.rb +44 -0
- data/lib/rdoc/markup/include.rb +42 -0
- data/lib/rdoc/markup/inline.rb +1 -144
- data/lib/rdoc/markup/list.rb +2 -1
- data/lib/rdoc/markup/parser.rb +6 -16
- data/lib/rdoc/markup/pre_process.rb +64 -10
- data/lib/rdoc/markup/raw.rb +1 -1
- data/lib/rdoc/markup/special.rb +40 -0
- data/lib/rdoc/markup/text_formatter_test_case.rb +0 -2
- data/lib/rdoc/markup/to_ansi.rb +0 -2
- data/lib/rdoc/markup/to_bs.rb +0 -2
- data/lib/rdoc/markup/to_html.rb +102 -34
- data/lib/rdoc/markup/to_html_crossref.rb +36 -5
- data/lib/rdoc/markup/to_html_snippet.rb +270 -0
- data/lib/rdoc/markup/to_label.rb +55 -0
- data/lib/rdoc/markup/to_rdoc.rb +0 -3
- data/lib/rdoc/markup/to_table_of_contents.rb +62 -0
- data/lib/rdoc/markup/to_test.rb +0 -3
- data/lib/rdoc/markup/to_tt_only.rb +0 -3
- data/lib/rdoc/markup/verbatim.rb +18 -0
- data/lib/rdoc/meta_method.rb +0 -2
- data/lib/rdoc/method_attr.rb +17 -1
- data/lib/rdoc/normal_class.rb +0 -2
- data/lib/rdoc/normal_module.rb +0 -2
- data/lib/rdoc/options.rb +18 -3
- data/lib/rdoc/parser.rb +74 -42
- data/lib/rdoc/parser/c.rb +79 -118
- data/lib/rdoc/parser/rd.rb +22 -0
- data/lib/rdoc/parser/ruby.rb +86 -54
- data/lib/rdoc/parser/simple.rb +21 -9
- data/lib/rdoc/parser/text.rb +11 -0
- data/lib/rdoc/rd.rb +95 -0
- data/lib/rdoc/rd/block_parser.ry +638 -0
- data/lib/rdoc/rd/inline.rb +71 -0
- data/lib/rdoc/rd/inline_parser.ry +575 -0
- data/lib/rdoc/rdoc.rb +8 -23
- data/lib/rdoc/require.rb +0 -2
- data/lib/rdoc/ri.rb +4 -2
- data/lib/rdoc/ri/driver.rb +2 -6
- data/lib/rdoc/ri/store.rb +0 -1
- data/lib/rdoc/ruby_lex.rb +43 -20
- data/lib/rdoc/ruby_token.rb +44 -2
- data/lib/rdoc/single_class.rb +0 -2
- data/lib/rdoc/stats.rb +0 -5
- data/lib/rdoc/task.rb +2 -6
- data/lib/rdoc/test_case.rb +59 -0
- data/lib/rdoc/text.rb +42 -30
- data/lib/rdoc/token_stream.rb +45 -0
- data/lib/rdoc/tom_doc.rb +232 -0
- data/lib/rdoc/top_level.rb +36 -4
- data/test/test_attribute_manager.rb +26 -29
- data/test/test_rdoc_any_method.rb +2 -26
- data/test/test_rdoc_attr.rb +4 -4
- data/test/test_rdoc_class_module.rb +95 -12
- data/test/test_rdoc_code_object.rb +10 -3
- data/test/test_rdoc_comment.rb +504 -0
- data/test/test_rdoc_context.rb +60 -11
- data/test/test_rdoc_context_section.rb +16 -17
- data/test/test_rdoc_cross_reference.rb +17 -2
- data/test/test_rdoc_encoding.rb +4 -7
- data/test/test_rdoc_generator_darkfish.rb +12 -11
- data/test/test_rdoc_generator_json_index.rb +255 -0
- data/test/test_rdoc_generator_markup.rb +56 -0
- data/test/test_rdoc_generator_ri.rb +8 -11
- data/test/test_rdoc_markup.rb +9 -5
- data/test/test_rdoc_markup_attribute_manager.rb +5 -8
- data/test/test_rdoc_markup_document.rb +34 -6
- data/test/test_rdoc_markup_formatter.rb +11 -13
- data/test/test_rdoc_markup_heading.rb +20 -0
- data/test/test_rdoc_markup_include.rb +19 -0
- data/test/test_rdoc_markup_indented_paragraph.rb +4 -5
- data/test/test_rdoc_markup_paragraph.rb +2 -5
- data/test/test_rdoc_markup_parser.rb +87 -7
- data/test/test_rdoc_markup_pre_process.rb +60 -9
- data/test/test_rdoc_markup_raw.rb +4 -6
- data/test/test_rdoc_markup_to_ansi.rb +1 -4
- data/test/test_rdoc_markup_to_bs.rb +1 -4
- data/test/test_rdoc_markup_to_html.rb +170 -31
- data/test/test_rdoc_markup_to_html_crossref.rb +89 -11
- data/test/test_rdoc_markup_to_html_snippet.rb +668 -0
- data/test/test_rdoc_markup_to_label.rb +50 -0
- data/test/test_rdoc_markup_to_rdoc.rb +1 -4
- data/test/test_rdoc_markup_to_table_of_contents.rb +90 -0
- data/test/test_rdoc_markup_to_tt_only.rb +1 -4
- data/test/test_rdoc_markup_verbatim.rb +16 -0
- data/test/test_rdoc_method_attr.rb +16 -1
- data/test/test_rdoc_options.rb +17 -7
- data/test/test_rdoc_parser.rb +75 -6
- data/test/test_rdoc_parser_c.rb +56 -104
- data/test/test_rdoc_parser_rd.rb +52 -0
- data/test/test_rdoc_parser_ruby.rb +264 -323
- data/test/test_rdoc_parser_simple.rb +33 -17
- data/test/test_rdoc_rd.rb +30 -0
- data/test/test_rdoc_rd_block_parser.rb +527 -0
- data/test/test_rdoc_rd_inline.rb +63 -0
- data/test/test_rdoc_rd_inline_parser.rb +173 -0
- data/test/test_rdoc_rdoc.rb +7 -9
- data/test/test_rdoc_ri_driver.rb +10 -15
- data/test/test_rdoc_ri_paths.rb +6 -6
- data/test/test_rdoc_ri_store.rb +6 -13
- data/test/test_rdoc_ruby_lex.rb +53 -5
- data/test/test_rdoc_rubygems_hook.rb +2 -1
- data/test/test_rdoc_stats.rb +83 -103
- data/test/test_rdoc_task.rb +5 -4
- data/test/test_rdoc_text.rb +156 -11
- data/test/test_rdoc_token_stream.rb +42 -0
- data/test/test_rdoc_tom_doc.rb +458 -0
- data/test/test_rdoc_top_level.rb +49 -2
- data/test/xref_test_case.rb +4 -8
- metadata +217 -111
- metadata.gz.sig +0 -0
- checksums.yaml +0 -7
- checksums.yaml.gz.sig +0 -0
- data/CVE-2013-0256.rdoc +0 -49
- data/LICENSE.txt +0 -57
- data/lib/rdoc/generator/template/darkfish/classpage.rhtml +0 -321
- data/lib/rdoc/generator/template/darkfish/filepage.rhtml +0 -124
- data/lib/rdoc/generator/template/darkfish/js/quicksearch.js +0 -114
- data/lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js +0 -10
data.tar.gz.sig
CHANGED
Binary file
|
data/.autotest
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
# vim: filetype=ruby
|
2
|
-
|
3
1
|
require 'autotest/restart'
|
4
|
-
|
2
|
+
|
3
|
+
Autotest.add_hook :run_command do |at|
|
4
|
+
at.unit_diff = 'cat'
|
5
|
+
|
6
|
+
system "#{Gem.ruby} -rubygems #{Gem.bin_path 'rake', 'rake'} generate"
|
7
|
+
end
|
5
8
|
|
6
9
|
Autotest.add_hook :initialize do |at|
|
7
10
|
at.testlib = 'minitest/unit' if at.respond_to? :testlib=
|
data/History.txt
CHANGED
@@ -1,30 +1,80 @@
|
|
1
|
-
=== 3.
|
1
|
+
=== 3.10 / ??
|
2
2
|
|
3
|
-
*
|
4
|
-
*
|
5
|
-
|
6
|
-
|
3
|
+
* Major enhancements
|
4
|
+
* RDoc HTML output has been reorganized.
|
5
|
+
* The search from Володя Колесников's sdoc has been integrated.
|
6
|
+
|
7
|
+
The search index generation is a reusable component through
|
8
|
+
RDoc::Generator::JsonIndex
|
9
|
+
* The table of contents is now a separate page and now shows links to
|
10
|
+
headings inside a page or class.
|
11
|
+
* Class pages no longer show the namespace and no longer have file info
|
12
|
+
pages.
|
13
|
+
* HTML output is now using HTML 5.
|
14
|
+
* RDoc supports additional documentation types:
|
15
|
+
* TomDoc 1.0.0-rc1
|
16
|
+
* RD format
|
17
|
+
|
18
|
+
The default markup can be set via the <tt>--markup</tt> option.
|
19
|
+
|
20
|
+
The format of documentation in a particular file can be specified by the
|
21
|
+
+:markup:+ directive. If the :markup: directive is in the first comment
|
22
|
+
it is used as the default for the entire file. For other comments it
|
23
|
+
overrides the default markup format.
|
7
24
|
|
8
|
-
|
25
|
+
* Minor enhancements
|
26
|
+
* HTML headings now have ids matching their titles.
|
9
27
|
|
10
|
-
|
11
|
-
* Applied typo and grammar fixes from Luke Gruber. Ruby bug #5203
|
28
|
+
= Hello!
|
12
29
|
|
13
|
-
|
30
|
+
Is rendered as
|
14
31
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
32
|
+
<h1 id="label-Hello%21">Hello!</h1>
|
33
|
+
|
34
|
+
* Labels for classes or methods can be linked-to by adding an <tt>@</tt>
|
35
|
+
following the class or method reference. For example,
|
36
|
+
<tt>RDoc::Markup@Links</tt>
|
37
|
+
|
38
|
+
See RDoc::Markup@Links for further details.
|
39
|
+
* RDoc now looks for a <tt>format: parser_name</tt> magic comment to choose
|
40
|
+
alternate documentation formats. The format comment must be in the first
|
41
|
+
three lines of the file (to allow for a shebang or modeline).
|
42
|
+
* RDoc makes an effort to syntax-highlight ruby code in verbatim sections.
|
43
|
+
See RDoc::Markup@Paragraphs+and+Verbatim
|
44
|
+
* Added RDoc::TopLevel#text? and RDoc::Parser::Text to indicate a
|
45
|
+
parsed file contains no ruby constructs.
|
46
|
+
* Added <tt>rdoc-label</tt> link scheme which allows bidirectional links.
|
47
|
+
See RDoc::Markup for details.
|
48
|
+
* Image paths at HTTPS URLs will now be turned into +<img>+ tags. Pull
|
19
49
|
Request #60 by James Mead
|
50
|
+
* Added RDoc::Comment which encapsulates comment-handling functionality.
|
51
|
+
* Added RDoc::Markup::PreProcess::post_process to allow arbitrary comment
|
52
|
+
munging.
|
53
|
+
* RDoc::RDoc::current is set for the entire RDoc run.
|
54
|
+
* Split rdoc/markup/inline into individual files for its component classes.
|
55
|
+
* Moved token stream HTML markup out of RDoc::AnyMethod#markup_code into
|
56
|
+
RDoc::TokenStream::to_html
|
57
|
+
* "Top" link in section headers is no longer inside the heading element.
|
58
|
+
|
59
|
+
* Bug fixes
|
20
60
|
* Markup defined by RDoc::Markup#add_special inside a <tt><tt></tt> is no
|
21
61
|
longer converted.
|
62
|
+
* Performance of RDoc::RubyLex has been improved. Ruby Bug #5202 by Ryan
|
63
|
+
Melton.
|
64
|
+
* Add US-ASCII magic comments to work with <tt>ruby -Ku</tt>. Issue #63 by
|
65
|
+
Travis D. Warlick, Jr.
|
66
|
+
* Clicking a link in the method description now works. Issue #61 by Alan
|
67
|
+
Hogan.
|
68
|
+
* Fixed RDoc::Markup::Parser for CRLF line endings. Issue #67 by Marvin
|
69
|
+
Gülker.
|
70
|
+
* Fixed lexing of percent strings like %r{#}. Issue #68 by eclectic923.
|
22
71
|
|
23
72
|
=== 3.9.2 / 2011-08-11
|
24
73
|
|
25
74
|
* Bug fix
|
26
75
|
* Loosened TIDYLINK regexp to allow any content in the link section like:
|
27
76
|
<tt>{foo}[rdoc-ref:SomeClass]</tt>
|
77
|
+
* In HTML output headings are capped at <tt><h6></tt> again
|
28
78
|
|
29
79
|
=== 3.9.1 / 2011-07-31
|
30
80
|
|
data/LICENSE.rdoc
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
RDoc is copyrighted free software.
|
2
|
+
|
3
|
+
You can redistribute it and/or modify it under either the terms of the GPL
|
4
|
+
version 2 (see the file GPL), or the conditions below:
|
5
|
+
|
6
|
+
1. You may make and give away verbatim copies of the source form of the
|
7
|
+
software without restriction, provided that you duplicate all of the
|
8
|
+
original copyright notices and associated disclaimers.
|
9
|
+
|
10
|
+
2. You may modify your copy of the software in any way, provided that
|
11
|
+
you do at least ONE of the following:
|
12
|
+
|
13
|
+
a. place your modifications in the Public Domain or otherwise
|
14
|
+
make them Freely Available, such as by posting said
|
15
|
+
modifications to Usenet or an equivalent medium, or by allowing
|
16
|
+
the author to include your modifications in the software.
|
17
|
+
|
18
|
+
b. use the modified software only within your corporation or
|
19
|
+
organization.
|
20
|
+
|
21
|
+
c. give non-standard binaries non-standard names, with
|
22
|
+
instructions on where to get the original software distribution.
|
23
|
+
|
24
|
+
d. make other distribution arrangements with the author.
|
25
|
+
|
26
|
+
3. You may distribute the software in object code or binary form,
|
27
|
+
provided that you do at least ONE of the following:
|
28
|
+
|
29
|
+
a. distribute the binaries and library files of the software,
|
30
|
+
together with instructions (in the manual page or equivalent)
|
31
|
+
on where to get the original distribution.
|
32
|
+
|
33
|
+
b. accompany the distribution with the machine-readable source of
|
34
|
+
the software.
|
35
|
+
|
36
|
+
c. give non-standard binaries non-standard names, with
|
37
|
+
instructions on where to get the original software distribution.
|
38
|
+
|
39
|
+
d. make other distribution arrangements with the author.
|
40
|
+
|
41
|
+
4. You may modify and include the part of the software into any other
|
42
|
+
software (possibly commercial). But some files in the distribution
|
43
|
+
are not written by the author, so that they are not under these terms.
|
44
|
+
|
45
|
+
For the list of those files and their copying conditions, see the
|
46
|
+
file LEGAL.
|
47
|
+
|
48
|
+
5. The scripts and library files supplied as input to or produced as
|
49
|
+
output from the software do not automatically fall under the
|
50
|
+
copyright of the software, but belong to whomever generated them,
|
51
|
+
and may be sold commercially, and may be aggregated with this
|
52
|
+
software.
|
53
|
+
|
54
|
+
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
55
|
+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
56
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
57
|
+
PURPOSE.
|
data/Manifest.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
.autotest
|
2
2
|
.document
|
3
|
-
CVE-2013-0256.rdoc
|
4
3
|
History.txt
|
5
|
-
LICENSE.
|
4
|
+
LICENSE.rdoc
|
6
5
|
Manifest.txt
|
7
6
|
README.txt
|
8
7
|
RI.txt
|
9
8
|
Rakefile
|
9
|
+
TODO.rdoc
|
10
10
|
bin/rdoc
|
11
11
|
bin/ri
|
12
12
|
lib/rdoc.rb
|
@@ -17,19 +17,35 @@ lib/rdoc/attr.rb
|
|
17
17
|
lib/rdoc/class_module.rb
|
18
18
|
lib/rdoc/code_object.rb
|
19
19
|
lib/rdoc/code_objects.rb
|
20
|
+
lib/rdoc/comment.rb
|
20
21
|
lib/rdoc/constant.rb
|
21
22
|
lib/rdoc/context.rb
|
23
|
+
lib/rdoc/context/section.rb
|
22
24
|
lib/rdoc/cross_reference.rb
|
23
25
|
lib/rdoc/encoding.rb
|
24
26
|
lib/rdoc/erbio.rb
|
25
27
|
lib/rdoc/gauntlet.rb
|
26
28
|
lib/rdoc/generator.rb
|
27
29
|
lib/rdoc/generator/darkfish.rb
|
30
|
+
lib/rdoc/generator/json_index.rb
|
28
31
|
lib/rdoc/generator/markup.rb
|
29
32
|
lib/rdoc/generator/ri.rb
|
30
33
|
lib/rdoc/generator/template/darkfish/.document
|
31
|
-
lib/rdoc/generator/template/darkfish/
|
32
|
-
lib/rdoc/generator/template/darkfish/
|
34
|
+
lib/rdoc/generator/template/darkfish/_footer.rhtml
|
35
|
+
lib/rdoc/generator/template/darkfish/_head.rhtml
|
36
|
+
lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml
|
37
|
+
lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
|
38
|
+
lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml
|
39
|
+
lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml
|
40
|
+
lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml
|
41
|
+
lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml
|
42
|
+
lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml
|
43
|
+
lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml
|
44
|
+
lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml
|
45
|
+
lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml
|
46
|
+
lib/rdoc/generator/template/darkfish/class.rhtml
|
47
|
+
lib/rdoc/generator/template/darkfish/fileinfo.rhtml
|
48
|
+
lib/rdoc/generator/template/darkfish/images/add.png
|
33
49
|
lib/rdoc/generator/template/darkfish/images/brick.png
|
34
50
|
lib/rdoc/generator/template/darkfish/images/brick_link.png
|
35
51
|
lib/rdoc/generator/template/darkfish/images/bug.png
|
@@ -37,6 +53,7 @@ lib/rdoc/generator/template/darkfish/images/bullet_black.png
|
|
37
53
|
lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png
|
38
54
|
lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png
|
39
55
|
lib/rdoc/generator/template/darkfish/images/date.png
|
56
|
+
lib/rdoc/generator/template/darkfish/images/delete.png
|
40
57
|
lib/rdoc/generator/template/darkfish/images/find.png
|
41
58
|
lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif
|
42
59
|
lib/rdoc/generator/template/darkfish/images/macFFBgHack.png
|
@@ -46,26 +63,35 @@ lib/rdoc/generator/template/darkfish/images/page_white_text.png
|
|
46
63
|
lib/rdoc/generator/template/darkfish/images/page_white_width.png
|
47
64
|
lib/rdoc/generator/template/darkfish/images/plugin.png
|
48
65
|
lib/rdoc/generator/template/darkfish/images/ruby.png
|
66
|
+
lib/rdoc/generator/template/darkfish/images/tag_blue.png
|
49
67
|
lib/rdoc/generator/template/darkfish/images/tag_green.png
|
68
|
+
lib/rdoc/generator/template/darkfish/images/transparent.png
|
50
69
|
lib/rdoc/generator/template/darkfish/images/wrench.png
|
51
70
|
lib/rdoc/generator/template/darkfish/images/wrench_orange.png
|
52
71
|
lib/rdoc/generator/template/darkfish/images/zoom.png
|
53
72
|
lib/rdoc/generator/template/darkfish/index.rhtml
|
54
73
|
lib/rdoc/generator/template/darkfish/js/darkfish.js
|
55
74
|
lib/rdoc/generator/template/darkfish/js/jquery.js
|
56
|
-
lib/rdoc/generator/template/darkfish/js/
|
57
|
-
lib/rdoc/generator/template/darkfish/
|
75
|
+
lib/rdoc/generator/template/darkfish/js/search.js
|
76
|
+
lib/rdoc/generator/template/darkfish/page.rhtml
|
58
77
|
lib/rdoc/generator/template/darkfish/rdoc.css
|
78
|
+
lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
|
79
|
+
lib/rdoc/generator/template/json_index/js/navigation.js
|
80
|
+
lib/rdoc/generator/template/json_index/js/searcher.js
|
59
81
|
lib/rdoc/ghost_method.rb
|
60
82
|
lib/rdoc/include.rb
|
61
83
|
lib/rdoc/known_classes.rb
|
62
84
|
lib/rdoc/markup.rb
|
85
|
+
lib/rdoc/markup/attr_changer.rb
|
86
|
+
lib/rdoc/markup/attr_span.rb
|
87
|
+
lib/rdoc/markup/attribute.rb
|
63
88
|
lib/rdoc/markup/attribute_manager.rb
|
64
89
|
lib/rdoc/markup/blank_line.rb
|
65
90
|
lib/rdoc/markup/document.rb
|
66
91
|
lib/rdoc/markup/formatter.rb
|
67
92
|
lib/rdoc/markup/formatter_test_case.rb
|
68
93
|
lib/rdoc/markup/heading.rb
|
94
|
+
lib/rdoc/markup/include.rb
|
69
95
|
lib/rdoc/markup/indented_paragraph.rb
|
70
96
|
lib/rdoc/markup/inline.rb
|
71
97
|
lib/rdoc/markup/list.rb
|
@@ -75,12 +101,16 @@ lib/rdoc/markup/parser.rb
|
|
75
101
|
lib/rdoc/markup/pre_process.rb
|
76
102
|
lib/rdoc/markup/raw.rb
|
77
103
|
lib/rdoc/markup/rule.rb
|
104
|
+
lib/rdoc/markup/special.rb
|
78
105
|
lib/rdoc/markup/text_formatter_test_case.rb
|
79
106
|
lib/rdoc/markup/to_ansi.rb
|
80
107
|
lib/rdoc/markup/to_bs.rb
|
81
108
|
lib/rdoc/markup/to_html.rb
|
82
109
|
lib/rdoc/markup/to_html_crossref.rb
|
110
|
+
lib/rdoc/markup/to_html_snippet.rb
|
111
|
+
lib/rdoc/markup/to_label.rb
|
83
112
|
lib/rdoc/markup/to_rdoc.rb
|
113
|
+
lib/rdoc/markup/to_table_of_contents.rb
|
84
114
|
lib/rdoc/markup/to_test.rb
|
85
115
|
lib/rdoc/markup/to_tt_only.rb
|
86
116
|
lib/rdoc/markup/verbatim.rb
|
@@ -91,9 +121,15 @@ lib/rdoc/normal_module.rb
|
|
91
121
|
lib/rdoc/options.rb
|
92
122
|
lib/rdoc/parser.rb
|
93
123
|
lib/rdoc/parser/c.rb
|
124
|
+
lib/rdoc/parser/rd.rb
|
94
125
|
lib/rdoc/parser/ruby.rb
|
95
126
|
lib/rdoc/parser/ruby_tools.rb
|
96
127
|
lib/rdoc/parser/simple.rb
|
128
|
+
lib/rdoc/parser/text.rb
|
129
|
+
lib/rdoc/rd.rb
|
130
|
+
lib/rdoc/rd/block_parser.ry
|
131
|
+
lib/rdoc/rd/inline.rb
|
132
|
+
lib/rdoc/rd/inline_parser.ry
|
97
133
|
lib/rdoc/rdoc.rb
|
98
134
|
lib/rdoc/require.rb
|
99
135
|
lib/rdoc/ri.rb
|
@@ -110,8 +146,10 @@ lib/rdoc/stats/normal.rb
|
|
110
146
|
lib/rdoc/stats/quiet.rb
|
111
147
|
lib/rdoc/stats/verbose.rb
|
112
148
|
lib/rdoc/task.rb
|
149
|
+
lib/rdoc/test_case.rb
|
113
150
|
lib/rdoc/text.rb
|
114
151
|
lib/rdoc/token_stream.rb
|
152
|
+
lib/rdoc/tom_doc.rb
|
115
153
|
lib/rdoc/top_level.rb
|
116
154
|
test/README
|
117
155
|
test/binary.dat
|
@@ -126,18 +164,23 @@ test/test_rdoc_any_method.rb
|
|
126
164
|
test/test_rdoc_attr.rb
|
127
165
|
test/test_rdoc_class_module.rb
|
128
166
|
test/test_rdoc_code_object.rb
|
167
|
+
test/test_rdoc_comment.rb
|
129
168
|
test/test_rdoc_constant.rb
|
130
169
|
test/test_rdoc_context.rb
|
131
170
|
test/test_rdoc_context_section.rb
|
132
171
|
test/test_rdoc_cross_reference.rb
|
133
172
|
test/test_rdoc_encoding.rb
|
134
173
|
test/test_rdoc_generator_darkfish.rb
|
174
|
+
test/test_rdoc_generator_json_index.rb
|
175
|
+
test/test_rdoc_generator_markup.rb
|
135
176
|
test/test_rdoc_generator_ri.rb
|
136
177
|
test/test_rdoc_include.rb
|
137
178
|
test/test_rdoc_markup.rb
|
138
179
|
test/test_rdoc_markup_attribute_manager.rb
|
139
180
|
test/test_rdoc_markup_document.rb
|
140
181
|
test/test_rdoc_markup_formatter.rb
|
182
|
+
test/test_rdoc_markup_heading.rb
|
183
|
+
test/test_rdoc_markup_include.rb
|
141
184
|
test/test_rdoc_markup_indented_paragraph.rb
|
142
185
|
test/test_rdoc_markup_paragraph.rb
|
143
186
|
test/test_rdoc_markup_parser.rb
|
@@ -147,16 +190,25 @@ test/test_rdoc_markup_to_ansi.rb
|
|
147
190
|
test/test_rdoc_markup_to_bs.rb
|
148
191
|
test/test_rdoc_markup_to_html.rb
|
149
192
|
test/test_rdoc_markup_to_html_crossref.rb
|
193
|
+
test/test_rdoc_markup_to_html_snippet.rb
|
194
|
+
test/test_rdoc_markup_to_label.rb
|
150
195
|
test/test_rdoc_markup_to_rdoc.rb
|
196
|
+
test/test_rdoc_markup_to_table_of_contents.rb
|
151
197
|
test/test_rdoc_markup_to_tt_only.rb
|
198
|
+
test/test_rdoc_markup_verbatim.rb
|
152
199
|
test/test_rdoc_method_attr.rb
|
153
200
|
test/test_rdoc_normal_class.rb
|
154
201
|
test/test_rdoc_normal_module.rb
|
155
202
|
test/test_rdoc_options.rb
|
156
203
|
test/test_rdoc_parser.rb
|
157
204
|
test/test_rdoc_parser_c.rb
|
205
|
+
test/test_rdoc_parser_rd.rb
|
158
206
|
test/test_rdoc_parser_ruby.rb
|
159
207
|
test/test_rdoc_parser_simple.rb
|
208
|
+
test/test_rdoc_rd.rb
|
209
|
+
test/test_rdoc_rd_block_parser.rb
|
210
|
+
test/test_rdoc_rd_inline.rb
|
211
|
+
test/test_rdoc_rd_inline_parser.rb
|
160
212
|
test/test_rdoc_rdoc.rb
|
161
213
|
test/test_rdoc_require.rb
|
162
214
|
test/test_rdoc_ri_driver.rb
|
@@ -168,6 +220,8 @@ test/test_rdoc_single_class.rb
|
|
168
220
|
test/test_rdoc_stats.rb
|
169
221
|
test/test_rdoc_task.rb
|
170
222
|
test/test_rdoc_text.rb
|
223
|
+
test/test_rdoc_token_stream.rb
|
224
|
+
test/test_rdoc_tom_doc.rb
|
171
225
|
test/test_rdoc_top_level.rb
|
172
226
|
test/xref_data.rb
|
173
227
|
test/xref_test_case.rb
|
data/Rakefile
CHANGED
@@ -1,9 +1,16 @@
|
|
1
|
+
$:.unshift File.expand_path 'lib'
|
2
|
+
require 'rdoc'
|
1
3
|
require 'hoe'
|
2
|
-
|
3
|
-
|
4
|
+
|
5
|
+
task :docs => :generate
|
6
|
+
task :test => :generate
|
7
|
+
|
8
|
+
PARSER_FILES = %w[
|
9
|
+
lib/rdoc/rd/block_parser.rb
|
10
|
+
lib/rdoc/rd/inline_parser.rb
|
11
|
+
]
|
4
12
|
|
5
13
|
Hoe.plugin :git
|
6
|
-
Hoe.plugin :isolate
|
7
14
|
Hoe.plugin :minitest
|
8
15
|
Hoe.plugin :rdoc_tags
|
9
16
|
|
@@ -19,7 +26,6 @@ Hoe.spec 'rdoc' do
|
|
19
26
|
rdoc_locations << 'docs.seattlerb.org:/data/www/docs.seattlerb.org/rdoc/'
|
20
27
|
rdoc_locations << 'drbrain@rubyforge.org:/var/www/gforge-projects/rdoc/'
|
21
28
|
|
22
|
-
|
23
29
|
spec_extras[:post_install_message] = <<-MESSAGE
|
24
30
|
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
|
25
31
|
|
@@ -30,22 +36,28 @@ Depending on your version of ruby, you may need to install ruby rdoc/ri data:
|
|
30
36
|
MESSAGE
|
31
37
|
|
32
38
|
self.testlib = :minitest
|
33
|
-
|
34
|
-
|
35
|
-
else
|
36
|
-
warn 'please: gem install isolate'
|
37
|
-
end
|
39
|
+
|
40
|
+
self.clean_globs += PARSER_FILES
|
38
41
|
|
39
42
|
require_ruby_version '>= 1.8.7'
|
43
|
+
extra_deps << ['json', '~> 1.4']
|
44
|
+
extra_dev_deps << ['racc', '~> 1.4']
|
40
45
|
extra_dev_deps << ['minitest', '~> 2']
|
41
|
-
extra_dev_deps << ['
|
42
|
-
extra_dev_deps << ['ZenTest', '~> 4'] # for autotest/isolate
|
46
|
+
extra_dev_deps << ['ZenTest', '~> 4']
|
43
47
|
|
44
|
-
extra_rdoc_files << 'Rakefile'
|
48
|
+
extra_rdoc_files << 'Rakefile'
|
45
49
|
spec_extras['required_rubygems_version'] = '>= 1.3'
|
46
50
|
spec_extras['homepage'] = 'http://docs.seattlerb.org/rdoc'
|
47
51
|
end
|
48
52
|
|
53
|
+
task 'generate' => PARSER_FILES
|
54
|
+
|
55
|
+
rule '.rb' => '.ry' do |t|
|
56
|
+
racc = Gem.bin_path 'racc', 'racc'
|
57
|
+
|
58
|
+
ruby "-rubygems #{racc} -l -o #{t.name} #{t.source}"
|
59
|
+
end
|
60
|
+
|
49
61
|
# These tasks expect to have the following directory structure:
|
50
62
|
#
|
51
63
|
# git/git.rubini.us/code # Rubinius git HEAD checkout
|
data/TODO.rdoc
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
Some file contains some things that might happen in RDoc, or might not
|
2
|
+
|
3
|
+
=== RDoc 3.10
|
4
|
+
|
5
|
+
* Copy static files into doc dir for HTML
|
6
|
+
* Add sections to the ToC
|
7
|
+
|
8
|
+
=== RDoc 3.11
|
9
|
+
|
10
|
+
* Reload the RDoc tree from an RI store
|
11
|
+
* Re-run generators
|
12
|
+
* Parse only changed files (like in ruby)
|
13
|
+
* Page of Glory (or Shame) in HTML output showing documentation coverage
|
14
|
+
statistics.
|
15
|
+
* Link to the parent-class implementation of methods that use super
|
16
|
+
|
17
|
+
=== RDoc 4
|
18
|
+
|
19
|
+
API changes to RDoc
|
20
|
+
|
21
|
+
* Remove RDoc::RDocError
|
22
|
+
* RDoc::TopLevel#add_method should automatically create the appropriate method
|
23
|
+
class rather than requiring one be passed in.
|
24
|
+
* Remove #comment= from Context subclasses in favor of #add_comment
|
25
|
+
* RDoc::CodeObject
|
26
|
+
* Move into own namespace
|
27
|
+
* Rename TopLevel to File
|
28
|
+
* Rename Context to Container
|
29
|
+
* Rename NormalClass to Class
|
30
|
+
|