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.

Files changed (200) hide show
  1. checksums.yaml +6 -6
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.autotest +3 -2
  5. data/DEVELOPERS.rdoc +53 -0
  6. data/History.rdoc +159 -25
  7. data/LEGAL.rdoc +12 -0
  8. data/Manifest.txt +56 -3
  9. data/README.rdoc +87 -19
  10. data/Rakefile +11 -2
  11. data/TODO.rdoc +20 -13
  12. data/bin/rdoc +4 -0
  13. data/lib/gauntlet_rdoc.rb +1 -1
  14. data/lib/rdoc.rb +32 -71
  15. data/lib/rdoc/any_method.rb +75 -21
  16. data/lib/rdoc/attr.rb +49 -10
  17. data/lib/rdoc/class_module.rb +182 -32
  18. data/lib/rdoc/code_object.rb +54 -12
  19. data/lib/rdoc/comment.rb +8 -1
  20. data/lib/rdoc/constant.rb +100 -6
  21. data/lib/rdoc/context.rb +93 -41
  22. data/lib/rdoc/context/section.rb +143 -28
  23. data/lib/rdoc/cross_reference.rb +58 -50
  24. data/lib/rdoc/encoding.rb +34 -29
  25. data/lib/rdoc/erb_partial.rb +18 -0
  26. data/lib/rdoc/extend.rb +117 -0
  27. data/lib/rdoc/generator.rb +11 -6
  28. data/lib/rdoc/generator/darkfish.rb +250 -62
  29. data/lib/rdoc/generator/json_index.rb +20 -12
  30. data/lib/rdoc/generator/markup.rb +10 -12
  31. data/lib/rdoc/generator/ri.rb +7 -60
  32. data/lib/rdoc/generator/template/darkfish/_head.rhtml +7 -7
  33. data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +16 -0
  34. data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +1 -1
  35. data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +14 -0
  36. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +1 -1
  37. data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +13 -0
  38. data/lib/rdoc/generator/template/darkfish/class.rhtml +15 -1
  39. data/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
  40. data/lib/rdoc/generator/template/darkfish/index.rhtml +3 -3
  41. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +7 -9
  42. data/lib/rdoc/generator/template/darkfish/page.rhtml +2 -0
  43. data/lib/rdoc/generator/template/darkfish/rdoc.css +31 -0
  44. data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +18 -0
  45. data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +37 -0
  46. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +3 -3
  47. data/lib/rdoc/include.rb +12 -3
  48. data/lib/rdoc/markdown.kpeg +1186 -0
  49. data/lib/rdoc/markdown.rb +16336 -0
  50. data/lib/rdoc/markdown/entities.rb +2128 -0
  51. data/lib/rdoc/markdown/literals_1_8.kpeg +18 -0
  52. data/lib/rdoc/markdown/literals_1_8.rb +454 -0
  53. data/lib/rdoc/markdown/literals_1_9.kpeg +22 -0
  54. data/lib/rdoc/markdown/literals_1_9.rb +417 -0
  55. data/lib/rdoc/markup.rb +69 -10
  56. data/lib/rdoc/markup/attr_changer.rb +2 -5
  57. data/lib/rdoc/markup/attribute_manager.rb +23 -14
  58. data/lib/rdoc/markup/attributes.rb +70 -0
  59. data/lib/rdoc/markup/block_quote.rb +14 -0
  60. data/lib/rdoc/markup/document.rb +20 -4
  61. data/lib/rdoc/markup/formatter.rb +17 -6
  62. data/lib/rdoc/markup/formatter_test_case.rb +93 -24
  63. data/lib/rdoc/markup/hard_break.rb +31 -0
  64. data/lib/rdoc/markup/heading.rb +1 -1
  65. data/lib/rdoc/markup/indented_paragraph.rb +14 -0
  66. data/lib/rdoc/markup/list.rb +23 -4
  67. data/lib/rdoc/markup/list_item.rb +17 -4
  68. data/lib/rdoc/markup/paragraph.rb +14 -0
  69. data/lib/rdoc/markup/parser.rb +107 -60
  70. data/lib/rdoc/markup/raw.rb +4 -4
  71. data/lib/rdoc/markup/special.rb +3 -3
  72. data/lib/rdoc/markup/to_ansi.rb +7 -1
  73. data/lib/rdoc/markup/to_html.rb +42 -14
  74. data/lib/rdoc/markup/to_html_crossref.rb +10 -9
  75. data/lib/rdoc/markup/to_html_snippet.rb +20 -4
  76. data/lib/rdoc/markup/to_joined_paragraph.rb +68 -0
  77. data/lib/rdoc/markup/to_label.rb +20 -1
  78. data/lib/rdoc/markup/to_markdown.rb +134 -0
  79. data/lib/rdoc/markup/to_rdoc.rb +36 -5
  80. data/lib/rdoc/markup/to_table_of_contents.rb +6 -1
  81. data/lib/rdoc/markup/to_tt_only.rb +11 -2
  82. data/lib/rdoc/markup/verbatim.rb +19 -0
  83. data/lib/rdoc/method_attr.rb +33 -19
  84. data/lib/rdoc/normal_class.rb +26 -7
  85. data/lib/rdoc/normal_module.rb +10 -5
  86. data/lib/rdoc/options.rb +95 -21
  87. data/lib/rdoc/parser.rb +6 -2
  88. data/lib/rdoc/parser/c.rb +212 -97
  89. data/lib/rdoc/parser/markdown.rb +23 -0
  90. data/lib/rdoc/parser/ruby.rb +115 -35
  91. data/lib/rdoc/parser/ruby_tools.rb +8 -3
  92. data/lib/rdoc/rd.rb +8 -4
  93. data/lib/rdoc/rd/block_parser.rb +1 -1
  94. data/lib/rdoc/rd/block_parser.ry +1 -1
  95. data/lib/rdoc/rdoc.rb +45 -21
  96. data/lib/rdoc/ri/driver.rb +322 -76
  97. data/lib/rdoc/ri/paths.rb +90 -31
  98. data/lib/rdoc/ri/store.rb +2 -353
  99. data/lib/rdoc/ruby_lex.rb +5 -21
  100. data/lib/rdoc/ruby_token.rb +2 -3
  101. data/lib/rdoc/rubygems_hook.rb +21 -9
  102. data/lib/rdoc/servlet.rb +302 -0
  103. data/lib/rdoc/stats.rb +28 -20
  104. data/lib/rdoc/store.rb +881 -0
  105. data/lib/rdoc/task.rb +2 -1
  106. data/lib/rdoc/test_case.rb +103 -1
  107. data/lib/rdoc/text.rb +5 -4
  108. data/lib/rdoc/tom_doc.rb +17 -16
  109. data/lib/rdoc/top_level.rb +43 -285
  110. data/test/MarkdownTest_1.0.3/Amps and angle encoding.text +21 -0
  111. data/test/MarkdownTest_1.0.3/Auto links.text +13 -0
  112. data/test/MarkdownTest_1.0.3/Backslash escapes.text +120 -0
  113. data/test/MarkdownTest_1.0.3/Blockquotes with code blocks.text +11 -0
  114. data/test/MarkdownTest_1.0.3/Code Blocks.text +14 -0
  115. data/test/MarkdownTest_1.0.3/Code Spans.text +6 -0
  116. data/test/MarkdownTest_1.0.3/Hard-wrapped paragraphs with list-like lines.text +8 -0
  117. data/test/MarkdownTest_1.0.3/Horizontal rules.text +67 -0
  118. data/test/MarkdownTest_1.0.3/Inline HTML (Advanced).text +15 -0
  119. data/test/MarkdownTest_1.0.3/Inline HTML (Simple).text +69 -0
  120. data/test/MarkdownTest_1.0.3/Inline HTML comments.text +13 -0
  121. data/test/MarkdownTest_1.0.3/Links, inline style.text +12 -0
  122. data/test/MarkdownTest_1.0.3/Links, reference style.text +71 -0
  123. data/test/MarkdownTest_1.0.3/Links, shortcut references.text +20 -0
  124. data/test/MarkdownTest_1.0.3/Literal quotes in titles.text +7 -0
  125. data/test/MarkdownTest_1.0.3/Markdown Documentation - Basics.text +306 -0
  126. data/test/MarkdownTest_1.0.3/Markdown Documentation - Syntax.text +888 -0
  127. data/test/MarkdownTest_1.0.3/Nested blockquotes.text +5 -0
  128. data/test/MarkdownTest_1.0.3/Ordered and unordered lists.text +131 -0
  129. data/test/MarkdownTest_1.0.3/Strong and em together.text +7 -0
  130. data/test/MarkdownTest_1.0.3/Tabs.text +21 -0
  131. data/test/MarkdownTest_1.0.3/Tidyness.text +5 -0
  132. data/test/test_attribute_manager.rb +7 -4
  133. data/test/test_rdoc_any_method.rb +84 -13
  134. data/test/test_rdoc_attr.rb +59 -9
  135. data/test/test_rdoc_class_module.rb +670 -73
  136. data/test/test_rdoc_code_object.rb +21 -1
  137. data/test/test_rdoc_comment.rb +1 -1
  138. data/test/test_rdoc_constant.rb +132 -0
  139. data/test/test_rdoc_context.rb +84 -18
  140. data/test/test_rdoc_context_section.rb +99 -15
  141. data/test/test_rdoc_cross_reference.rb +1 -1
  142. data/test/test_rdoc_encoding.rb +17 -1
  143. data/test/test_rdoc_extend.rb +94 -0
  144. data/test/test_rdoc_generator_darkfish.rb +45 -19
  145. data/test/test_rdoc_generator_json_index.rb +27 -7
  146. data/test/test_rdoc_generator_markup.rb +3 -3
  147. data/test/test_rdoc_generator_ri.rb +11 -9
  148. data/test/test_rdoc_include.rb +12 -0
  149. data/test/test_rdoc_markdown.rb +977 -0
  150. data/test/test_rdoc_markdown_test.rb +1891 -0
  151. data/test/test_rdoc_markup.rb +1 -1
  152. data/test/test_rdoc_markup_attribute_manager.rb +2 -2
  153. data/test/test_rdoc_markup_attributes.rb +39 -0
  154. data/test/test_rdoc_markup_document.rb +16 -1
  155. data/test/test_rdoc_markup_formatter.rb +7 -4
  156. data/test/test_rdoc_markup_hard_break.rb +31 -0
  157. data/test/test_rdoc_markup_indented_paragraph.rb +14 -0
  158. data/test/test_rdoc_markup_paragraph.rb +15 -1
  159. data/test/test_rdoc_markup_parser.rb +152 -89
  160. data/test/test_rdoc_markup_to_ansi.rb +23 -2
  161. data/test/test_rdoc_markup_to_bs.rb +24 -0
  162. data/test/test_rdoc_markup_to_html.rb +50 -19
  163. data/test/test_rdoc_markup_to_html_crossref.rb +23 -5
  164. data/test/test_rdoc_markup_to_html_snippet.rb +49 -8
  165. data/test/test_rdoc_markup_to_joined_paragraph.rb +32 -0
  166. data/test/test_rdoc_markup_to_label.rb +63 -1
  167. data/test/test_rdoc_markup_to_markdown.rb +352 -0
  168. data/test/test_rdoc_markup_to_rdoc.rb +22 -2
  169. data/test/test_rdoc_markup_to_table_of_contents.rb +44 -39
  170. data/test/test_rdoc_markup_to_tt_only.rb +20 -0
  171. data/test/test_rdoc_markup_verbatim.rb +13 -0
  172. data/test/test_rdoc_method_attr.rb +5 -0
  173. data/test/test_rdoc_normal_class.rb +24 -5
  174. data/test/test_rdoc_normal_module.rb +1 -1
  175. data/test/test_rdoc_options.rb +21 -6
  176. data/test/test_rdoc_parser.rb +24 -0
  177. data/test/test_rdoc_parser_c.rb +151 -26
  178. data/test/test_rdoc_parser_markdown.rb +55 -0
  179. data/test/test_rdoc_parser_rd.rb +2 -2
  180. data/test/test_rdoc_parser_ruby.rb +468 -109
  181. data/test/test_rdoc_parser_simple.rb +2 -2
  182. data/test/test_rdoc_rd_block_parser.rb +0 -4
  183. data/test/test_rdoc_rdoc.rb +110 -22
  184. data/test/test_rdoc_ri_driver.rb +415 -80
  185. data/test/test_rdoc_ri_paths.rb +122 -13
  186. data/test/test_rdoc_ruby_lex.rb +5 -61
  187. data/test/test_rdoc_ruby_token.rb +19 -0
  188. data/test/test_rdoc_rubygems_hook.rb +64 -43
  189. data/test/test_rdoc_servlet.rb +429 -0
  190. data/test/test_rdoc_stats.rb +83 -24
  191. data/test/{test_rdoc_ri_store.rb → test_rdoc_store.rb} +395 -22
  192. data/test/test_rdoc_task.rb +2 -2
  193. data/test/test_rdoc_text.rb +37 -11
  194. data/test/test_rdoc_tom_doc.rb +59 -62
  195. data/test/test_rdoc_top_level.rb +71 -113
  196. data/test/xref_test_case.rb +7 -9
  197. metadata +122 -39
  198. metadata.gz.sig +0 -0
  199. data/CVE-2013-0256.rdoc +0 -49
  200. data/lib/rdoc/markup/attribute.rb +0 -51
@@ -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
- stats = RDoc::Stats.new 0
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 = RDoc::RDoc.new
29
- rdoc.options = @options
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: 3.12.2
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
- -----BEGIN CERTIFICATE-----
16
- MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMRAwDgYDVQQDDAdkcmJy
17
- YWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZFgNu
18
- ZXQwHhcNMTIwMjI4MTc1NDI1WhcNMTMwMjI3MTc1NDI1WjBBMRAwDgYDVQQDDAdk
19
- cmJyYWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZ
20
- FgNuZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbbgLrGLGIDE76
21
- LV/cvxdEzCuYuS3oG9PrSZnuDweySUfdp/so0cDq+j8bqy6OzZSw07gdjwFMSd6J
22
- U5ddZCVywn5nnAQ+Ui7jMW54CYt5/H6f2US6U0hQOjJR6cpfiymgxGdfyTiVcvTm
23
- Gj/okWrQl0NjYOYBpDi+9PPmaH2RmLJu0dB/NylsDnW5j6yN1B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WpVdWIyczZxaWVCa29uZ0tSREhRejVNRWVRdjRMUwpTQVJub0hZ
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.5'
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.5'
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 online
125
- documentation.
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
@@ -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
-