rdoc 3.12.2 → 4.0.0.preview2
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.
- checksums.yaml +6 -6
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.autotest +3 -2
- data/DEVELOPERS.rdoc +53 -0
- data/History.rdoc +159 -25
- data/LEGAL.rdoc +12 -0
- data/Manifest.txt +56 -3
- data/README.rdoc +87 -19
- data/Rakefile +11 -2
- data/TODO.rdoc +20 -13
- data/bin/rdoc +4 -0
- data/lib/gauntlet_rdoc.rb +1 -1
- data/lib/rdoc.rb +32 -71
- data/lib/rdoc/any_method.rb +75 -21
- data/lib/rdoc/attr.rb +49 -10
- data/lib/rdoc/class_module.rb +182 -32
- data/lib/rdoc/code_object.rb +54 -12
- data/lib/rdoc/comment.rb +8 -1
- data/lib/rdoc/constant.rb +100 -6
- data/lib/rdoc/context.rb +93 -41
- data/lib/rdoc/context/section.rb +143 -28
- data/lib/rdoc/cross_reference.rb +58 -50
- data/lib/rdoc/encoding.rb +34 -29
- data/lib/rdoc/erb_partial.rb +18 -0
- data/lib/rdoc/extend.rb +117 -0
- data/lib/rdoc/generator.rb +11 -6
- data/lib/rdoc/generator/darkfish.rb +250 -62
- data/lib/rdoc/generator/json_index.rb +20 -12
- data/lib/rdoc/generator/markup.rb +10 -12
- data/lib/rdoc/generator/ri.rb +7 -60
- data/lib/rdoc/generator/template/darkfish/_head.rhtml +7 -7
- data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +16 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +1 -1
- data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +14 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +1 -1
- data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +13 -0
- data/lib/rdoc/generator/template/darkfish/class.rhtml +15 -1
- data/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- data/lib/rdoc/generator/template/darkfish/index.rhtml +3 -3
- data/lib/rdoc/generator/template/darkfish/js/darkfish.js +7 -9
- data/lib/rdoc/generator/template/darkfish/page.rhtml +2 -0
- data/lib/rdoc/generator/template/darkfish/rdoc.css +31 -0
- data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +18 -0
- data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +37 -0
- data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +3 -3
- data/lib/rdoc/include.rb +12 -3
- data/lib/rdoc/markdown.kpeg +1186 -0
- data/lib/rdoc/markdown.rb +16336 -0
- data/lib/rdoc/markdown/entities.rb +2128 -0
- data/lib/rdoc/markdown/literals_1_8.kpeg +18 -0
- data/lib/rdoc/markdown/literals_1_8.rb +454 -0
- data/lib/rdoc/markdown/literals_1_9.kpeg +22 -0
- data/lib/rdoc/markdown/literals_1_9.rb +417 -0
- data/lib/rdoc/markup.rb +69 -10
- data/lib/rdoc/markup/attr_changer.rb +2 -5
- data/lib/rdoc/markup/attribute_manager.rb +23 -14
- data/lib/rdoc/markup/attributes.rb +70 -0
- data/lib/rdoc/markup/block_quote.rb +14 -0
- data/lib/rdoc/markup/document.rb +20 -4
- data/lib/rdoc/markup/formatter.rb +17 -6
- data/lib/rdoc/markup/formatter_test_case.rb +93 -24
- data/lib/rdoc/markup/hard_break.rb +31 -0
- data/lib/rdoc/markup/heading.rb +1 -1
- data/lib/rdoc/markup/indented_paragraph.rb +14 -0
- data/lib/rdoc/markup/list.rb +23 -4
- data/lib/rdoc/markup/list_item.rb +17 -4
- data/lib/rdoc/markup/paragraph.rb +14 -0
- data/lib/rdoc/markup/parser.rb +107 -60
- data/lib/rdoc/markup/raw.rb +4 -4
- data/lib/rdoc/markup/special.rb +3 -3
- data/lib/rdoc/markup/to_ansi.rb +7 -1
- data/lib/rdoc/markup/to_html.rb +42 -14
- data/lib/rdoc/markup/to_html_crossref.rb +10 -9
- data/lib/rdoc/markup/to_html_snippet.rb +20 -4
- data/lib/rdoc/markup/to_joined_paragraph.rb +68 -0
- data/lib/rdoc/markup/to_label.rb +20 -1
- data/lib/rdoc/markup/to_markdown.rb +134 -0
- data/lib/rdoc/markup/to_rdoc.rb +36 -5
- data/lib/rdoc/markup/to_table_of_contents.rb +6 -1
- data/lib/rdoc/markup/to_tt_only.rb +11 -2
- data/lib/rdoc/markup/verbatim.rb +19 -0
- data/lib/rdoc/method_attr.rb +33 -19
- data/lib/rdoc/normal_class.rb +26 -7
- data/lib/rdoc/normal_module.rb +10 -5
- data/lib/rdoc/options.rb +95 -21
- data/lib/rdoc/parser.rb +6 -2
- data/lib/rdoc/parser/c.rb +212 -97
- data/lib/rdoc/parser/markdown.rb +23 -0
- data/lib/rdoc/parser/ruby.rb +115 -35
- data/lib/rdoc/parser/ruby_tools.rb +8 -3
- data/lib/rdoc/rd.rb +8 -4
- data/lib/rdoc/rd/block_parser.rb +1 -1
- data/lib/rdoc/rd/block_parser.ry +1 -1
- data/lib/rdoc/rdoc.rb +45 -21
- data/lib/rdoc/ri/driver.rb +322 -76
- data/lib/rdoc/ri/paths.rb +90 -31
- data/lib/rdoc/ri/store.rb +2 -353
- data/lib/rdoc/ruby_lex.rb +5 -21
- data/lib/rdoc/ruby_token.rb +2 -3
- data/lib/rdoc/rubygems_hook.rb +21 -9
- data/lib/rdoc/servlet.rb +302 -0
- data/lib/rdoc/stats.rb +28 -20
- data/lib/rdoc/store.rb +881 -0
- data/lib/rdoc/task.rb +2 -1
- data/lib/rdoc/test_case.rb +103 -1
- data/lib/rdoc/text.rb +5 -4
- data/lib/rdoc/tom_doc.rb +17 -16
- data/lib/rdoc/top_level.rb +43 -285
- data/test/MarkdownTest_1.0.3/Amps and angle encoding.text +21 -0
- data/test/MarkdownTest_1.0.3/Auto links.text +13 -0
- data/test/MarkdownTest_1.0.3/Backslash escapes.text +120 -0
- data/test/MarkdownTest_1.0.3/Blockquotes with code blocks.text +11 -0
- data/test/MarkdownTest_1.0.3/Code Blocks.text +14 -0
- data/test/MarkdownTest_1.0.3/Code Spans.text +6 -0
- data/test/MarkdownTest_1.0.3/Hard-wrapped paragraphs with list-like lines.text +8 -0
- data/test/MarkdownTest_1.0.3/Horizontal rules.text +67 -0
- data/test/MarkdownTest_1.0.3/Inline HTML (Advanced).text +15 -0
- data/test/MarkdownTest_1.0.3/Inline HTML (Simple).text +69 -0
- data/test/MarkdownTest_1.0.3/Inline HTML comments.text +13 -0
- data/test/MarkdownTest_1.0.3/Links, inline style.text +12 -0
- data/test/MarkdownTest_1.0.3/Links, reference style.text +71 -0
- data/test/MarkdownTest_1.0.3/Links, shortcut references.text +20 -0
- data/test/MarkdownTest_1.0.3/Literal quotes in titles.text +7 -0
- data/test/MarkdownTest_1.0.3/Markdown Documentation - Basics.text +306 -0
- data/test/MarkdownTest_1.0.3/Markdown Documentation - Syntax.text +888 -0
- data/test/MarkdownTest_1.0.3/Nested blockquotes.text +5 -0
- data/test/MarkdownTest_1.0.3/Ordered and unordered lists.text +131 -0
- data/test/MarkdownTest_1.0.3/Strong and em together.text +7 -0
- data/test/MarkdownTest_1.0.3/Tabs.text +21 -0
- data/test/MarkdownTest_1.0.3/Tidyness.text +5 -0
- data/test/test_attribute_manager.rb +7 -4
- data/test/test_rdoc_any_method.rb +84 -13
- data/test/test_rdoc_attr.rb +59 -9
- data/test/test_rdoc_class_module.rb +670 -73
- data/test/test_rdoc_code_object.rb +21 -1
- data/test/test_rdoc_comment.rb +1 -1
- data/test/test_rdoc_constant.rb +132 -0
- data/test/test_rdoc_context.rb +84 -18
- data/test/test_rdoc_context_section.rb +99 -15
- data/test/test_rdoc_cross_reference.rb +1 -1
- data/test/test_rdoc_encoding.rb +17 -1
- data/test/test_rdoc_extend.rb +94 -0
- data/test/test_rdoc_generator_darkfish.rb +45 -19
- data/test/test_rdoc_generator_json_index.rb +27 -7
- data/test/test_rdoc_generator_markup.rb +3 -3
- data/test/test_rdoc_generator_ri.rb +11 -9
- data/test/test_rdoc_include.rb +12 -0
- data/test/test_rdoc_markdown.rb +977 -0
- data/test/test_rdoc_markdown_test.rb +1891 -0
- data/test/test_rdoc_markup.rb +1 -1
- data/test/test_rdoc_markup_attribute_manager.rb +2 -2
- data/test/test_rdoc_markup_attributes.rb +39 -0
- data/test/test_rdoc_markup_document.rb +16 -1
- data/test/test_rdoc_markup_formatter.rb +7 -4
- data/test/test_rdoc_markup_hard_break.rb +31 -0
- data/test/test_rdoc_markup_indented_paragraph.rb +14 -0
- data/test/test_rdoc_markup_paragraph.rb +15 -1
- data/test/test_rdoc_markup_parser.rb +152 -89
- data/test/test_rdoc_markup_to_ansi.rb +23 -2
- data/test/test_rdoc_markup_to_bs.rb +24 -0
- data/test/test_rdoc_markup_to_html.rb +50 -19
- data/test/test_rdoc_markup_to_html_crossref.rb +23 -5
- data/test/test_rdoc_markup_to_html_snippet.rb +49 -8
- data/test/test_rdoc_markup_to_joined_paragraph.rb +32 -0
- data/test/test_rdoc_markup_to_label.rb +63 -1
- data/test/test_rdoc_markup_to_markdown.rb +352 -0
- data/test/test_rdoc_markup_to_rdoc.rb +22 -2
- data/test/test_rdoc_markup_to_table_of_contents.rb +44 -39
- data/test/test_rdoc_markup_to_tt_only.rb +20 -0
- data/test/test_rdoc_markup_verbatim.rb +13 -0
- data/test/test_rdoc_method_attr.rb +5 -0
- data/test/test_rdoc_normal_class.rb +24 -5
- data/test/test_rdoc_normal_module.rb +1 -1
- data/test/test_rdoc_options.rb +21 -6
- data/test/test_rdoc_parser.rb +24 -0
- data/test/test_rdoc_parser_c.rb +151 -26
- data/test/test_rdoc_parser_markdown.rb +55 -0
- data/test/test_rdoc_parser_rd.rb +2 -2
- data/test/test_rdoc_parser_ruby.rb +468 -109
- data/test/test_rdoc_parser_simple.rb +2 -2
- data/test/test_rdoc_rd_block_parser.rb +0 -4
- data/test/test_rdoc_rdoc.rb +110 -22
- data/test/test_rdoc_ri_driver.rb +415 -80
- data/test/test_rdoc_ri_paths.rb +122 -13
- data/test/test_rdoc_ruby_lex.rb +5 -61
- data/test/test_rdoc_ruby_token.rb +19 -0
- data/test/test_rdoc_rubygems_hook.rb +64 -43
- data/test/test_rdoc_servlet.rb +429 -0
- data/test/test_rdoc_stats.rb +83 -24
- data/test/{test_rdoc_ri_store.rb → test_rdoc_store.rb} +395 -22
- data/test/test_rdoc_task.rb +2 -2
- data/test/test_rdoc_text.rb +37 -11
- data/test/test_rdoc_tom_doc.rb +59 -62
- data/test/test_rdoc_top_level.rb +71 -113
- data/test/xref_test_case.rb +7 -9
- metadata +122 -39
- metadata.gz.sig +0 -0
- data/CVE-2013-0256.rdoc +0 -49
- data/lib/rdoc/markup/attribute.rb +0 -51
data/test/xref_test_case.rb
CHANGED
@@ -8,14 +8,14 @@ class XrefTestCase < RDoc::TestCase
|
|
8
8
|
def setup
|
9
9
|
super
|
10
10
|
|
11
|
-
@file_name = 'xref_data.rb'
|
12
|
-
@xref_data = RDoc::TopLevel.new @file_name
|
13
|
-
@top_level = @xref_data
|
14
|
-
|
15
11
|
@options = RDoc::Options.new
|
16
12
|
@options.quiet = true
|
17
13
|
|
18
|
-
|
14
|
+
@file_name = 'xref_data.rb'
|
15
|
+
@xref_data = @store.add_file @file_name
|
16
|
+
@top_level = @xref_data
|
17
|
+
|
18
|
+
stats = RDoc::Stats.new @store, 0
|
19
19
|
|
20
20
|
parser = RDoc::Parser::Ruby.new @xref_data, @file_name, XREF_DATA, @options,
|
21
21
|
stats
|
@@ -25,10 +25,8 @@ class XrefTestCase < RDoc::TestCase
|
|
25
25
|
generator = Object.new
|
26
26
|
def generator.class_dir() nil end
|
27
27
|
def generator.file_dir() nil end
|
28
|
-
rdoc =
|
29
|
-
rdoc.
|
30
|
-
RDoc::RDoc.current = rdoc
|
31
|
-
rdoc.generator = generator
|
28
|
+
@rdoc.options = @options
|
29
|
+
@rdoc.generator = generator
|
32
30
|
|
33
31
|
@c1 = @xref_data.find_module_named 'C1'
|
34
32
|
@c1_m = @c1.method_list.last # C1#m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0.preview2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -11,29 +11,37 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain:
|
14
|
-
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
14
|
+
- !binary |-
|
15
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURlRENDQW1DZ0F3SUJB
|
16
|
+
Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJCTVJBd0RnWURWUVFEREFka2Nt
|
17
|
+
SnkKWVdsdU1SZ3dGZ1lLQ1pJbWlaUHlMR1FCR1JZSWMyVm5iV1Z1ZERjeEV6
|
18
|
+
QVJCZ29Ka2lhSmsvSXNaQUVaRmdOdQpaWFF3SGhjTk1USXdNakk0TVRjMU5E
|
19
|
+
STFXaGNOTVRNd01qSTNNVGMxTkRJMVdqQkJNUkF3RGdZRFZRUUREQWRrCmNt
|
20
|
+
SnlZV2x1TVJnd0ZnWUtDWkltaVpQeUxHUUJHUllJYzJWbmJXVnVkRGN4RXpB
|
21
|
+
UkJnb0praWFKay9Jc1pBRVoKRmdOdVpYUXdnZ0VpTUEwR0NTcUdTSWIzRFFF
|
22
|
+
QkFRVUFBNElCRHdBd2dnRUtBb0lCQVFDYmJnTHJHTEdJREU3NgpMVi9jdnhk
|
23
|
+
RXpDdVl1UzNvRzlQclNabnVEd2V5U1VmZHAvc28wY0RxK2o4YnF5Nk96WlN3
|
24
|
+
MDdnZGp3Rk1TZDZKClU1ZGRaQ1Z5d241bm5BUStVaTdqTVc1NENZdDUvSDZm
|
25
|
+
MlVTNlUwaFFPakpSNmNwZml5bWd4R2RmeVRpVmN2VG0KR2ovb2tXclFsME5q
|
26
|
+
WU9ZQnBEaSs5UFBtYUgyUm1MSnUwZEIvTnlsc0RuVzVqNnlOMUJFSThNZkpS
|
27
|
+
UitIUktaWQptVXRnekJ3RjFWNEtJWlE4RXVMNkkvbkhWdTA3aTZJa3JwQWd4
|
28
|
+
cFhVZmRKUUppMG9aQXFYdXJBVjN5VHhrRndkCmc2MllyclcyNm1EZStwWkJ6
|
29
|
+
UjZicExFK1BtWEN6ejdVeFVxM0FFMGdQSGJpTVhpZTNFRkUwb3huc1UzbElk
|
30
|
+
dWgKc0NBTmlROEJBZ01CQUFHamV6QjVNQWtHQTFVZEV3UUNNQUF3Q3dZRFZS
|
31
|
+
MFBCQVFEQWdTd01CMEdBMVVkRGdRVwpCQlM1azRaNzVWU3BkTTBBY2xHMlV2
|
32
|
+
ekZBL1ZXNURBZkJnTlZIUkVFR0RBV2dSUmtjbUp5WVdsdVFITmxaMjFsCmJu
|
33
|
+
UTNMbTVsZERBZkJnTlZIUklFR0RBV2dSUmtjbUp5WVdsdVFITmxaMjFsYm5R
|
34
|
+
M0xtNWxkREFOQmdrcWhraUcKOXcwQkFRVUZBQU9DQVFFQVBlV3pGbnJjdkM2
|
35
|
+
ZVZ6ZGxobWpVdWIyczZxaWVCa29uZ0tSREhRejVNRWVRdjRMUwpTQVJub0hZ
|
36
|
+
K3VDQVZMLzF4R0FobXB6cVEzZkpHV0s5ZUJhY1cvZThFNUdGOXhRY1YzbUUx
|
37
|
+
YkEwV05haURsWDVqClUyYUkrWkdTYmxxdkhVQ3hLQkhSMXM3VU1Ic2J6MXNh
|
38
|
+
T21nZFJUeVB4MGp1SnM2OG9jYlVUZVlCTFd1OVY0S1AKemRHQUcySlhPMmdP
|
39
|
+
TmczYjR0WUR2cEJMYnJ5K0tPWDI3aUFKdWxVYUg5VGlUT1VMTDRJVEpWRnNL
|
40
|
+
MG1ZVnFtUgpROFRubzlTM2U0WEdHUDFaV2ZMclRXRUpiYXZGZmhHSHV0MmlN
|
41
|
+
UndmQzdzL1lJTEFITkFUb3BhSmRIOUROcGQxClU4MXpHSE1VQk92ei9WR1Q2
|
42
|
+
d0p3WUozZW1TMm5mQTJOT0hGZmdBPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUt
|
43
|
+
LS0tLQo=
|
44
|
+
date: 2012-12-01 00:00:00.000000000 Z
|
37
45
|
dependencies:
|
38
46
|
- !ruby/object:Gem::Dependency
|
39
47
|
name: json
|
@@ -49,6 +57,20 @@ dependencies:
|
|
49
57
|
- - ~>
|
50
58
|
- !ruby/object:Gem::Version
|
51
59
|
version: '1.4'
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: kpeg
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ~>
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0.9'
|
67
|
+
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.9'
|
52
74
|
- !ruby/object:Gem::Dependency
|
53
75
|
name: minitest
|
54
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,20 +133,18 @@ dependencies:
|
|
111
133
|
requirements:
|
112
134
|
- - ~>
|
113
135
|
- !ruby/object:Gem::Version
|
114
|
-
version: '3.
|
136
|
+
version: '3.3'
|
115
137
|
type: :development
|
116
138
|
prerelease: false
|
117
139
|
version_requirements: !ruby/object:Gem::Requirement
|
118
140
|
requirements:
|
119
141
|
- - ~>
|
120
142
|
- !ruby/object:Gem::Version
|
121
|
-
version: '3.
|
143
|
+
version: '3.3'
|
122
144
|
description: |-
|
123
145
|
RDoc produces HTML and command-line documentation for Ruby projects. RDoc
|
124
|
-
includes the +rdoc+ and +ri+ tools for generating and displaying
|
125
|
-
|
126
|
-
|
127
|
-
See RDoc for a description of RDoc's markup and basic use.
|
146
|
+
includes the +rdoc+ and +ri+ tools for generating and displaying documentation
|
147
|
+
from the command-line.
|
128
148
|
email:
|
129
149
|
- drbrain@segment7.net
|
130
150
|
- ''
|
@@ -135,7 +155,6 @@ executables:
|
|
135
155
|
- ri
|
136
156
|
extensions: []
|
137
157
|
extra_rdoc_files:
|
138
|
-
- CVE-2013-0256.rdoc
|
139
158
|
- DEVELOPERS.rdoc
|
140
159
|
- History.rdoc
|
141
160
|
- LEGAL.rdoc
|
@@ -149,7 +168,6 @@ extra_rdoc_files:
|
|
149
168
|
files:
|
150
169
|
- .autotest
|
151
170
|
- .document
|
152
|
-
- CVE-2013-0256.rdoc
|
153
171
|
- DEVELOPERS.rdoc
|
154
172
|
- History.rdoc
|
155
173
|
- LEGAL.rdoc
|
@@ -176,7 +194,9 @@ files:
|
|
176
194
|
- lib/rdoc/context/section.rb
|
177
195
|
- lib/rdoc/cross_reference.rb
|
178
196
|
- lib/rdoc/encoding.rb
|
197
|
+
- lib/rdoc/erb_partial.rb
|
179
198
|
- lib/rdoc/erbio.rb
|
199
|
+
- lib/rdoc/extend.rb
|
180
200
|
- lib/rdoc/generator.rb
|
181
201
|
- lib/rdoc/generator/darkfish.rb
|
182
202
|
- lib/rdoc/generator/json_index.rb
|
@@ -187,16 +207,20 @@ files:
|
|
187
207
|
- lib/rdoc/generator/template/darkfish/_head.rhtml
|
188
208
|
- lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml
|
189
209
|
- lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
|
210
|
+
- lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml
|
190
211
|
- lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml
|
191
212
|
- lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml
|
213
|
+
- lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml
|
192
214
|
- lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml
|
193
215
|
- lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml
|
194
216
|
- lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml
|
195
217
|
- lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml
|
196
218
|
- lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml
|
197
219
|
- lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml
|
220
|
+
- lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
|
198
221
|
- lib/rdoc/generator/template/darkfish/class.rhtml
|
199
222
|
- lib/rdoc/generator/template/darkfish/images/add.png
|
223
|
+
- lib/rdoc/generator/template/darkfish/images/arrow_up.png
|
200
224
|
- lib/rdoc/generator/template/darkfish/images/brick.png
|
201
225
|
- lib/rdoc/generator/template/darkfish/images/brick_link.png
|
202
226
|
- lib/rdoc/generator/template/darkfish/images/bug.png
|
@@ -226,21 +250,32 @@ files:
|
|
226
250
|
- lib/rdoc/generator/template/darkfish/js/search.js
|
227
251
|
- lib/rdoc/generator/template/darkfish/page.rhtml
|
228
252
|
- lib/rdoc/generator/template/darkfish/rdoc.css
|
253
|
+
- lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml
|
254
|
+
- lib/rdoc/generator/template/darkfish/servlet_root.rhtml
|
229
255
|
- lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
|
230
256
|
- lib/rdoc/generator/template/json_index/js/navigation.js
|
231
257
|
- lib/rdoc/generator/template/json_index/js/searcher.js
|
232
258
|
- lib/rdoc/ghost_method.rb
|
233
259
|
- lib/rdoc/include.rb
|
234
260
|
- lib/rdoc/known_classes.rb
|
261
|
+
- lib/rdoc/markdown.kpeg
|
262
|
+
- lib/rdoc/markdown.rb
|
263
|
+
- lib/rdoc/markdown/entities.rb
|
264
|
+
- lib/rdoc/markdown/literals_1_8.kpeg
|
265
|
+
- lib/rdoc/markdown/literals_1_8.rb
|
266
|
+
- lib/rdoc/markdown/literals_1_9.kpeg
|
267
|
+
- lib/rdoc/markdown/literals_1_9.rb
|
235
268
|
- lib/rdoc/markup.rb
|
236
269
|
- lib/rdoc/markup/attr_changer.rb
|
237
270
|
- lib/rdoc/markup/attr_span.rb
|
238
|
-
- lib/rdoc/markup/attribute.rb
|
239
271
|
- lib/rdoc/markup/attribute_manager.rb
|
272
|
+
- lib/rdoc/markup/attributes.rb
|
240
273
|
- lib/rdoc/markup/blank_line.rb
|
274
|
+
- lib/rdoc/markup/block_quote.rb
|
241
275
|
- lib/rdoc/markup/document.rb
|
242
276
|
- lib/rdoc/markup/formatter.rb
|
243
277
|
- lib/rdoc/markup/formatter_test_case.rb
|
278
|
+
- lib/rdoc/markup/hard_break.rb
|
244
279
|
- lib/rdoc/markup/heading.rb
|
245
280
|
- lib/rdoc/markup/include.rb
|
246
281
|
- lib/rdoc/markup/indented_paragraph.rb
|
@@ -259,7 +294,9 @@ files:
|
|
259
294
|
- lib/rdoc/markup/to_html.rb
|
260
295
|
- lib/rdoc/markup/to_html_crossref.rb
|
261
296
|
- lib/rdoc/markup/to_html_snippet.rb
|
297
|
+
- lib/rdoc/markup/to_joined_paragraph.rb
|
262
298
|
- lib/rdoc/markup/to_label.rb
|
299
|
+
- lib/rdoc/markup/to_markdown.rb
|
263
300
|
- lib/rdoc/markup/to_rdoc.rb
|
264
301
|
- lib/rdoc/markup/to_table_of_contents.rb
|
265
302
|
- lib/rdoc/markup/to_test.rb
|
@@ -272,6 +309,7 @@ files:
|
|
272
309
|
- lib/rdoc/options.rb
|
273
310
|
- lib/rdoc/parser.rb
|
274
311
|
- lib/rdoc/parser/c.rb
|
312
|
+
- lib/rdoc/parser/markdown.rb
|
275
313
|
- lib/rdoc/parser/rd.rb
|
276
314
|
- lib/rdoc/parser/ruby.rb
|
277
315
|
- lib/rdoc/parser/ruby_tools.rb
|
@@ -293,17 +331,41 @@ files:
|
|
293
331
|
- lib/rdoc/ruby_lex.rb
|
294
332
|
- lib/rdoc/ruby_token.rb
|
295
333
|
- lib/rdoc/rubygems_hook.rb
|
334
|
+
- lib/rdoc/servlet.rb
|
296
335
|
- lib/rdoc/single_class.rb
|
297
336
|
- lib/rdoc/stats.rb
|
298
337
|
- lib/rdoc/stats/normal.rb
|
299
338
|
- lib/rdoc/stats/quiet.rb
|
300
339
|
- lib/rdoc/stats/verbose.rb
|
340
|
+
- lib/rdoc/store.rb
|
301
341
|
- lib/rdoc/task.rb
|
302
342
|
- lib/rdoc/test_case.rb
|
303
343
|
- lib/rdoc/text.rb
|
304
344
|
- lib/rdoc/token_stream.rb
|
305
345
|
- lib/rdoc/tom_doc.rb
|
306
346
|
- lib/rdoc/top_level.rb
|
347
|
+
- test/MarkdownTest_1.0.3/Amps and angle encoding.text
|
348
|
+
- test/MarkdownTest_1.0.3/Auto links.text
|
349
|
+
- test/MarkdownTest_1.0.3/Backslash escapes.text
|
350
|
+
- test/MarkdownTest_1.0.3/Blockquotes with code blocks.text
|
351
|
+
- test/MarkdownTest_1.0.3/Code Blocks.text
|
352
|
+
- test/MarkdownTest_1.0.3/Code Spans.text
|
353
|
+
- test/MarkdownTest_1.0.3/Hard-wrapped paragraphs with list-like lines.text
|
354
|
+
- test/MarkdownTest_1.0.3/Horizontal rules.text
|
355
|
+
- test/MarkdownTest_1.0.3/Inline HTML (Advanced).text
|
356
|
+
- test/MarkdownTest_1.0.3/Inline HTML (Simple).text
|
357
|
+
- test/MarkdownTest_1.0.3/Inline HTML comments.text
|
358
|
+
- test/MarkdownTest_1.0.3/Links, inline style.text
|
359
|
+
- test/MarkdownTest_1.0.3/Links, reference style.text
|
360
|
+
- test/MarkdownTest_1.0.3/Links, shortcut references.text
|
361
|
+
- test/MarkdownTest_1.0.3/Literal quotes in titles.text
|
362
|
+
- test/MarkdownTest_1.0.3/Markdown Documentation - Basics.text
|
363
|
+
- test/MarkdownTest_1.0.3/Markdown Documentation - Syntax.text
|
364
|
+
- test/MarkdownTest_1.0.3/Nested blockquotes.text
|
365
|
+
- test/MarkdownTest_1.0.3/Ordered and unordered lists.text
|
366
|
+
- test/MarkdownTest_1.0.3/Strong and em together.text
|
367
|
+
- test/MarkdownTest_1.0.3/Tabs.text
|
368
|
+
- test/MarkdownTest_1.0.3/Tidyness.text
|
307
369
|
- test/README
|
308
370
|
- test/binary.dat
|
309
371
|
- test/hidden.zip.txt
|
@@ -323,15 +385,20 @@ files:
|
|
323
385
|
- test/test_rdoc_context_section.rb
|
324
386
|
- test/test_rdoc_cross_reference.rb
|
325
387
|
- test/test_rdoc_encoding.rb
|
388
|
+
- test/test_rdoc_extend.rb
|
326
389
|
- test/test_rdoc_generator_darkfish.rb
|
327
390
|
- test/test_rdoc_generator_json_index.rb
|
328
391
|
- test/test_rdoc_generator_markup.rb
|
329
392
|
- test/test_rdoc_generator_ri.rb
|
330
393
|
- test/test_rdoc_include.rb
|
394
|
+
- test/test_rdoc_markdown.rb
|
395
|
+
- test/test_rdoc_markdown_test.rb
|
331
396
|
- test/test_rdoc_markup.rb
|
332
397
|
- test/test_rdoc_markup_attribute_manager.rb
|
398
|
+
- test/test_rdoc_markup_attributes.rb
|
333
399
|
- test/test_rdoc_markup_document.rb
|
334
400
|
- test/test_rdoc_markup_formatter.rb
|
401
|
+
- test/test_rdoc_markup_hard_break.rb
|
335
402
|
- test/test_rdoc_markup_heading.rb
|
336
403
|
- test/test_rdoc_markup_include.rb
|
337
404
|
- test/test_rdoc_markup_indented_paragraph.rb
|
@@ -344,7 +411,9 @@ files:
|
|
344
411
|
- test/test_rdoc_markup_to_html.rb
|
345
412
|
- test/test_rdoc_markup_to_html_crossref.rb
|
346
413
|
- test/test_rdoc_markup_to_html_snippet.rb
|
414
|
+
- test/test_rdoc_markup_to_joined_paragraph.rb
|
347
415
|
- test/test_rdoc_markup_to_label.rb
|
416
|
+
- test/test_rdoc_markup_to_markdown.rb
|
348
417
|
- test/test_rdoc_markup_to_rdoc.rb
|
349
418
|
- test/test_rdoc_markup_to_table_of_contents.rb
|
350
419
|
- test/test_rdoc_markup_to_tt_only.rb
|
@@ -355,6 +424,7 @@ files:
|
|
355
424
|
- test/test_rdoc_options.rb
|
356
425
|
- test/test_rdoc_parser.rb
|
357
426
|
- test/test_rdoc_parser_c.rb
|
427
|
+
- test/test_rdoc_parser_markdown.rb
|
358
428
|
- test/test_rdoc_parser_rd.rb
|
359
429
|
- test/test_rdoc_parser_ruby.rb
|
360
430
|
- test/test_rdoc_parser_simple.rb
|
@@ -366,11 +436,13 @@ files:
|
|
366
436
|
- test/test_rdoc_require.rb
|
367
437
|
- test/test_rdoc_ri_driver.rb
|
368
438
|
- test/test_rdoc_ri_paths.rb
|
369
|
-
- test/test_rdoc_ri_store.rb
|
370
439
|
- test/test_rdoc_ruby_lex.rb
|
440
|
+
- test/test_rdoc_ruby_token.rb
|
371
441
|
- test/test_rdoc_rubygems_hook.rb
|
442
|
+
- test/test_rdoc_servlet.rb
|
372
443
|
- test/test_rdoc_single_class.rb
|
373
444
|
- test/test_rdoc_stats.rb
|
445
|
+
- test/test_rdoc_store.rb
|
374
446
|
- test/test_rdoc_task.rb
|
375
447
|
- test/test_rdoc_text.rb
|
376
448
|
- test/test_rdoc_token_stream.rb
|
@@ -380,7 +452,8 @@ files:
|
|
380
452
|
- test/xref_test_case.rb
|
381
453
|
- .gemtest
|
382
454
|
homepage: http://docs.seattlerb.org/rdoc
|
383
|
-
licenses:
|
455
|
+
licenses:
|
456
|
+
- Ruby
|
384
457
|
metadata: {}
|
385
458
|
post_install_message: |
|
386
459
|
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
|
@@ -396,17 +469,17 @@ require_paths:
|
|
396
469
|
- lib
|
397
470
|
required_ruby_version: !ruby/object:Gem::Requirement
|
398
471
|
requirements:
|
399
|
-
- - '>='
|
472
|
+
- - ! '>='
|
400
473
|
- !ruby/object:Gem::Version
|
401
474
|
version: 1.8.7
|
402
475
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
403
476
|
requirements:
|
404
|
-
- - '>='
|
477
|
+
- - ! '>='
|
405
478
|
- !ruby/object:Gem::Version
|
406
479
|
version: '1.3'
|
407
480
|
requirements: []
|
408
481
|
rubyforge_project: rdoc
|
409
|
-
rubygems_version: 2.0.0
|
482
|
+
rubygems_version: 2.0.0.preview2
|
410
483
|
signing_key:
|
411
484
|
specification_version: 4
|
412
485
|
summary: RDoc produces HTML and command-line documentation for Ruby projects
|
@@ -423,15 +496,20 @@ test_files:
|
|
423
496
|
- test/test_rdoc_context_section.rb
|
424
497
|
- test/test_rdoc_cross_reference.rb
|
425
498
|
- test/test_rdoc_encoding.rb
|
499
|
+
- test/test_rdoc_extend.rb
|
426
500
|
- test/test_rdoc_generator_darkfish.rb
|
427
501
|
- test/test_rdoc_generator_json_index.rb
|
428
502
|
- test/test_rdoc_generator_markup.rb
|
429
503
|
- test/test_rdoc_generator_ri.rb
|
430
504
|
- test/test_rdoc_include.rb
|
505
|
+
- test/test_rdoc_markdown.rb
|
506
|
+
- test/test_rdoc_markdown_test.rb
|
431
507
|
- test/test_rdoc_markup.rb
|
432
508
|
- test/test_rdoc_markup_attribute_manager.rb
|
509
|
+
- test/test_rdoc_markup_attributes.rb
|
433
510
|
- test/test_rdoc_markup_document.rb
|
434
511
|
- test/test_rdoc_markup_formatter.rb
|
512
|
+
- test/test_rdoc_markup_hard_break.rb
|
435
513
|
- test/test_rdoc_markup_heading.rb
|
436
514
|
- test/test_rdoc_markup_include.rb
|
437
515
|
- test/test_rdoc_markup_indented_paragraph.rb
|
@@ -444,7 +522,9 @@ test_files:
|
|
444
522
|
- test/test_rdoc_markup_to_html.rb
|
445
523
|
- test/test_rdoc_markup_to_html_crossref.rb
|
446
524
|
- test/test_rdoc_markup_to_html_snippet.rb
|
525
|
+
- test/test_rdoc_markup_to_joined_paragraph.rb
|
447
526
|
- test/test_rdoc_markup_to_label.rb
|
527
|
+
- test/test_rdoc_markup_to_markdown.rb
|
448
528
|
- test/test_rdoc_markup_to_rdoc.rb
|
449
529
|
- test/test_rdoc_markup_to_table_of_contents.rb
|
450
530
|
- test/test_rdoc_markup_to_tt_only.rb
|
@@ -455,6 +535,7 @@ test_files:
|
|
455
535
|
- test/test_rdoc_options.rb
|
456
536
|
- test/test_rdoc_parser.rb
|
457
537
|
- test/test_rdoc_parser_c.rb
|
538
|
+
- test/test_rdoc_parser_markdown.rb
|
458
539
|
- test/test_rdoc_parser_rd.rb
|
459
540
|
- test/test_rdoc_parser_ruby.rb
|
460
541
|
- test/test_rdoc_parser_simple.rb
|
@@ -466,11 +547,13 @@ test_files:
|
|
466
547
|
- test/test_rdoc_require.rb
|
467
548
|
- test/test_rdoc_ri_driver.rb
|
468
549
|
- test/test_rdoc_ri_paths.rb
|
469
|
-
- test/test_rdoc_ri_store.rb
|
470
550
|
- test/test_rdoc_ruby_lex.rb
|
551
|
+
- test/test_rdoc_ruby_token.rb
|
471
552
|
- test/test_rdoc_rubygems_hook.rb
|
553
|
+
- test/test_rdoc_servlet.rb
|
472
554
|
- test/test_rdoc_single_class.rb
|
473
555
|
- test/test_rdoc_stats.rb
|
556
|
+
- test/test_rdoc_store.rb
|
474
557
|
- test/test_rdoc_task.rb
|
475
558
|
- test/test_rdoc_text.rb
|
476
559
|
- test/test_rdoc_token_stream.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/CVE-2013-0256.rdoc
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
= RDoc 2.3.0 through 3.12 XSS Exploit
|
2
|
-
|
3
|
-
RDoc documentation generated by rdoc 2.3.0 through rdoc 3.12 and prereleases up
|
4
|
-
to rdoc 4.0.0.preview2.1 are vulnerable to an XSS exploit. This exploit may
|
5
|
-
lead to cookie disclosure to third parties.
|
6
|
-
|
7
|
-
The exploit exists in darkfish.js which is copied from the RDoc install
|
8
|
-
location to the generated documentation.
|
9
|
-
|
10
|
-
RDoc is a static documentation generation tool. Patching the library itself
|
11
|
-
is insufficient to correct this exploit. Those hosting rdoc documentation will
|
12
|
-
need to apply the following patch. If applied while ignoring whitespace, this
|
13
|
-
patch will correct all affected versions:
|
14
|
-
|
15
|
-
diff --git darkfish.js darkfish.js
|
16
|
-
index 4be722f..f26fd45 100644
|
17
|
-
--- darkfish.js
|
18
|
-
+++ darkfish.js
|
19
|
-
@@ -109,13 +109,15 @@ function hookSearch() {
|
20
|
-
function highlightTarget( anchor ) {
|
21
|
-
console.debug( "Highlighting target '%s'.", anchor );
|
22
|
-
|
23
|
-
- $("a[name=" + anchor + "]").each( function() {
|
24
|
-
- if ( !$(this).parent().parent().hasClass('target-section') ) {
|
25
|
-
- console.debug( "Wrapping the target-section" );
|
26
|
-
- $('div.method-detail').unwrap( 'div.target-section' );
|
27
|
-
- $(this).parent().wrap( '<div class="target-section"></div>' );
|
28
|
-
- } else {
|
29
|
-
- console.debug( "Already wrapped." );
|
30
|
-
+ $("a[name]").each( function() {
|
31
|
-
+ if ( $(this).attr("name") == anchor ) {
|
32
|
-
+ if ( !$(this).parent().parent().hasClass('target-section') ) {
|
33
|
-
+ console.debug( "Wrapping the target-section" );
|
34
|
-
+ $('div.method-detail').unwrap( 'div.target-section' );
|
35
|
-
+ $(this).parent().wrap( '<div class="target-section"></div>' );
|
36
|
-
+ } else {
|
37
|
-
+ console.debug( "Already wrapped." );
|
38
|
-
+ }
|
39
|
-
}
|
40
|
-
});
|
41
|
-
};
|
42
|
-
|
43
|
-
RDoc 3.9.5, 3.12.1 and RDoc 4.0.0.rc.2 and newer are not vulnerable to this
|
44
|
-
exploit.
|
45
|
-
|
46
|
-
This exploit was discovered by Evgeny Ermakov <corwmh@gmail.com>.
|
47
|
-
|
48
|
-
This vulnerability has been assigned the CVE identifier CVE-2013-0256.
|
49
|
-
|