rdoc 4.3.0 → 5.0.0.beta1

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 (248) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +13 -0
  3. data/.travis.yml +23 -0
  4. data/CONTRIBUTING.rdoc +4 -3
  5. data/Gemfile +3 -0
  6. data/History.rdoc +15 -4
  7. data/LEGAL.rdoc +2 -2
  8. data/README.rdoc +1 -0
  9. data/Rakefile +41 -79
  10. data/bin/console +7 -0
  11. data/bin/setup +6 -0
  12. data/{bin → exe}/rdoc +0 -0
  13. data/{bin → exe}/ri +0 -0
  14. data/lib/rdoc.rb +2 -1
  15. data/lib/rdoc/alias.rb +1 -0
  16. data/lib/rdoc/anon_class.rb +1 -0
  17. data/lib/rdoc/any_method.rb +1 -0
  18. data/lib/rdoc/attr.rb +1 -0
  19. data/lib/rdoc/class_module.rb +1 -0
  20. data/lib/rdoc/code_object.rb +1 -0
  21. data/lib/rdoc/code_objects.rb +1 -0
  22. data/lib/rdoc/comment.rb +1 -0
  23. data/lib/rdoc/constant.rb +1 -0
  24. data/lib/rdoc/context.rb +4 -1
  25. data/lib/rdoc/context/section.rb +7 -0
  26. data/lib/rdoc/cross_reference.rb +1 -0
  27. data/lib/rdoc/encoding.rb +14 -0
  28. data/lib/rdoc/erb_partial.rb +1 -0
  29. data/lib/rdoc/erbio.rb +1 -0
  30. data/lib/rdoc/extend.rb +1 -0
  31. data/lib/rdoc/generator.rb +1 -0
  32. data/lib/rdoc/generator/darkfish.rb +1 -0
  33. data/lib/rdoc/generator/json_index.rb +1 -0
  34. data/lib/rdoc/generator/markup.rb +1 -0
  35. data/lib/rdoc/generator/pot.rb +1 -0
  36. data/lib/rdoc/generator/pot/message_extractor.rb +1 -0
  37. data/lib/rdoc/generator/pot/po.rb +1 -0
  38. data/lib/rdoc/generator/pot/po_entry.rb +1 -0
  39. data/lib/rdoc/generator/ri.rb +1 -0
  40. data/lib/rdoc/generator/template/darkfish/_head.rhtml +2 -1
  41. data/lib/rdoc/generator/template/darkfish/css/fonts.css +6 -6
  42. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +7 -7
  43. data/lib/rdoc/generator/template/json_index/js/searcher.js +1 -0
  44. data/lib/rdoc/ghost_method.rb +1 -0
  45. data/lib/rdoc/i18n.rb +1 -0
  46. data/lib/rdoc/i18n/locale.rb +1 -0
  47. data/lib/rdoc/i18n/text.rb +1 -0
  48. data/lib/rdoc/include.rb +1 -0
  49. data/lib/rdoc/known_classes.rb +1 -0
  50. data/lib/rdoc/markdown.kpeg +2 -6
  51. data/lib/rdoc/markdown.rb +2 -6
  52. data/lib/rdoc/markdown/entities.rb +1 -0
  53. data/lib/rdoc/markdown/{literals_1_9.kpeg → literals.kpeg} +0 -0
  54. data/lib/rdoc/markdown/{literals_1_9.rb → literals.rb} +1 -4
  55. data/lib/rdoc/markup.rb +1 -0
  56. data/lib/rdoc/markup/attr_changer.rb +1 -0
  57. data/lib/rdoc/markup/attr_span.rb +1 -0
  58. data/lib/rdoc/markup/attribute_manager.rb +1 -0
  59. data/lib/rdoc/markup/attributes.rb +1 -0
  60. data/lib/rdoc/markup/blank_line.rb +1 -0
  61. data/lib/rdoc/markup/block_quote.rb +1 -0
  62. data/lib/rdoc/markup/document.rb +1 -0
  63. data/lib/rdoc/markup/formatter.rb +1 -0
  64. data/lib/rdoc/markup/formatter_test_case.rb +1 -4
  65. data/lib/rdoc/markup/hard_break.rb +1 -0
  66. data/lib/rdoc/markup/heading.rb +1 -0
  67. data/lib/rdoc/markup/include.rb +1 -0
  68. data/lib/rdoc/markup/indented_paragraph.rb +1 -0
  69. data/lib/rdoc/markup/inline.rb +1 -0
  70. data/lib/rdoc/markup/list.rb +1 -0
  71. data/lib/rdoc/markup/list_item.rb +1 -0
  72. data/lib/rdoc/markup/paragraph.rb +1 -0
  73. data/lib/rdoc/markup/parser.rb +1 -0
  74. data/lib/rdoc/markup/pre_process.rb +1 -0
  75. data/lib/rdoc/markup/raw.rb +1 -0
  76. data/lib/rdoc/markup/rule.rb +1 -0
  77. data/lib/rdoc/markup/special.rb +1 -0
  78. data/lib/rdoc/markup/text_formatter_test_case.rb +1 -0
  79. data/lib/rdoc/markup/to_ansi.rb +1 -0
  80. data/lib/rdoc/markup/to_bs.rb +1 -0
  81. data/lib/rdoc/markup/to_html.rb +1 -0
  82. data/lib/rdoc/markup/to_html_crossref.rb +1 -0
  83. data/lib/rdoc/markup/to_html_snippet.rb +1 -0
  84. data/lib/rdoc/markup/to_joined_paragraph.rb +1 -0
  85. data/lib/rdoc/markup/to_label.rb +1 -0
  86. data/lib/rdoc/markup/to_markdown.rb +1 -0
  87. data/lib/rdoc/markup/to_rdoc.rb +1 -0
  88. data/lib/rdoc/markup/to_table_of_contents.rb +1 -0
  89. data/lib/rdoc/markup/to_test.rb +1 -0
  90. data/lib/rdoc/markup/to_tt_only.rb +1 -0
  91. data/lib/rdoc/markup/verbatim.rb +1 -0
  92. data/lib/rdoc/meta_method.rb +1 -0
  93. data/lib/rdoc/method_attr.rb +1 -0
  94. data/lib/rdoc/mixin.rb +1 -0
  95. data/lib/rdoc/normal_class.rb +1 -0
  96. data/lib/rdoc/normal_module.rb +1 -0
  97. data/lib/rdoc/options.rb +1 -0
  98. data/lib/rdoc/parser.rb +1 -0
  99. data/lib/rdoc/parser/c.rb +76 -33
  100. data/lib/rdoc/parser/changelog.rb +7 -1
  101. data/lib/rdoc/parser/markdown.rb +1 -0
  102. data/lib/rdoc/parser/rd.rb +1 -0
  103. data/lib/rdoc/parser/ruby.rb +1 -0
  104. data/lib/rdoc/parser/ruby_tools.rb +1 -0
  105. data/lib/rdoc/parser/simple.rb +1 -0
  106. data/lib/rdoc/parser/text.rb +1 -0
  107. data/lib/rdoc/rd.rb +1 -0
  108. data/lib/rdoc/rd/inline.rb +1 -0
  109. data/lib/rdoc/rdoc.rb +2 -1
  110. data/lib/rdoc/require.rb +1 -0
  111. data/lib/rdoc/ri.rb +1 -0
  112. data/lib/rdoc/ri/driver.rb +5 -19
  113. data/lib/rdoc/ri/formatter.rb +1 -0
  114. data/lib/rdoc/ri/paths.rb +1 -0
  115. data/lib/rdoc/ri/store.rb +1 -0
  116. data/lib/rdoc/ri/task.rb +72 -0
  117. data/lib/rdoc/ruby_lex.rb +11 -17
  118. data/lib/rdoc/ruby_token.rb +1 -0
  119. data/lib/rdoc/rubygems_hook.rb +1 -0
  120. data/lib/rdoc/servlet.rb +4 -3
  121. data/lib/rdoc/single_class.rb +1 -0
  122. data/lib/rdoc/stats.rb +1 -0
  123. data/lib/rdoc/stats/normal.rb +1 -0
  124. data/lib/rdoc/stats/quiet.rb +1 -0
  125. data/lib/rdoc/stats/verbose.rb +1 -0
  126. data/lib/rdoc/store.rb +3 -9
  127. data/lib/rdoc/task.rb +1 -0
  128. data/lib/rdoc/test_case.rb +1 -10
  129. data/lib/rdoc/text.rb +1 -0
  130. data/lib/rdoc/token_stream.rb +1 -0
  131. data/lib/rdoc/tom_doc.rb +1 -0
  132. data/lib/rdoc/top_level.rb +1 -0
  133. data/rdoc.gemspec +60 -0
  134. metadata +32 -155
  135. data/Manifest.txt +0 -309
  136. data/lib/rdoc/markdown/literals_1_8.kpeg +0 -18
  137. data/lib/rdoc/markdown/literals_1_8.rb +0 -416
  138. data/test/MarkdownTest_1.0.3/Amps and angle encoding.text +0 -21
  139. data/test/MarkdownTest_1.0.3/Auto links.text +0 -13
  140. data/test/MarkdownTest_1.0.3/Backslash escapes.text +0 -120
  141. data/test/MarkdownTest_1.0.3/Blockquotes with code blocks.text +0 -11
  142. data/test/MarkdownTest_1.0.3/Code Blocks.text +0 -14
  143. data/test/MarkdownTest_1.0.3/Code Spans.text +0 -6
  144. data/test/MarkdownTest_1.0.3/Hard-wrapped paragraphs with list-like lines.text +0 -8
  145. data/test/MarkdownTest_1.0.3/Horizontal rules.text +0 -67
  146. data/test/MarkdownTest_1.0.3/Inline HTML (Advanced).text +0 -15
  147. data/test/MarkdownTest_1.0.3/Inline HTML (Simple).text +0 -69
  148. data/test/MarkdownTest_1.0.3/Inline HTML comments.text +0 -13
  149. data/test/MarkdownTest_1.0.3/Links, inline style.text +0 -12
  150. data/test/MarkdownTest_1.0.3/Links, reference style.text +0 -71
  151. data/test/MarkdownTest_1.0.3/Links, shortcut references.text +0 -20
  152. data/test/MarkdownTest_1.0.3/Literal quotes in titles.text +0 -7
  153. data/test/MarkdownTest_1.0.3/Markdown Documentation - Basics.text +0 -306
  154. data/test/MarkdownTest_1.0.3/Markdown Documentation - Syntax.text +0 -888
  155. data/test/MarkdownTest_1.0.3/Nested blockquotes.text +0 -5
  156. data/test/MarkdownTest_1.0.3/Ordered and unordered lists.text +0 -131
  157. data/test/MarkdownTest_1.0.3/Strong and em together.text +0 -7
  158. data/test/MarkdownTest_1.0.3/Tabs.text +0 -21
  159. data/test/MarkdownTest_1.0.3/Tidyness.text +0 -5
  160. data/test/README +0 -1
  161. data/test/binary.dat +0 -0
  162. data/test/hidden.zip.txt +0 -1
  163. data/test/test.ja.largedoc +0 -3
  164. data/test/test.ja.rdoc +0 -10
  165. data/test/test.ja.txt +0 -8
  166. data/test/test.txt +0 -1
  167. data/test/test_rdoc_alias.rb +0 -13
  168. data/test/test_rdoc_any_method.rb +0 -460
  169. data/test/test_rdoc_attr.rb +0 -190
  170. data/test/test_rdoc_class_module.rb +0 -1492
  171. data/test/test_rdoc_code_object.rb +0 -450
  172. data/test/test_rdoc_comment.rb +0 -504
  173. data/test/test_rdoc_constant.rb +0 -181
  174. data/test/test_rdoc_context.rb +0 -901
  175. data/test/test_rdoc_context_section.rb +0 -130
  176. data/test/test_rdoc_cross_reference.rb +0 -192
  177. data/test/test_rdoc_encoding.rb +0 -227
  178. data/test/test_rdoc_extend.rb +0 -94
  179. data/test/test_rdoc_generator_darkfish.rb +0 -229
  180. data/test/test_rdoc_generator_json_index.rb +0 -324
  181. data/test/test_rdoc_generator_markup.rb +0 -59
  182. data/test/test_rdoc_generator_pot.rb +0 -91
  183. data/test/test_rdoc_generator_pot_po.rb +0 -51
  184. data/test/test_rdoc_generator_pot_po_entry.rb +0 -139
  185. data/test/test_rdoc_generator_ri.rb +0 -78
  186. data/test/test_rdoc_i18n_locale.rb +0 -73
  187. data/test/test_rdoc_i18n_text.rb +0 -123
  188. data/test/test_rdoc_include.rb +0 -108
  189. data/test/test_rdoc_markdown.rb +0 -980
  190. data/test/test_rdoc_markdown_test.rb +0 -1884
  191. data/test/test_rdoc_markup.rb +0 -95
  192. data/test/test_rdoc_markup_attribute_manager.rb +0 -364
  193. data/test/test_rdoc_markup_attributes.rb +0 -39
  194. data/test/test_rdoc_markup_document.rb +0 -207
  195. data/test/test_rdoc_markup_formatter.rb +0 -175
  196. data/test/test_rdoc_markup_hard_break.rb +0 -31
  197. data/test/test_rdoc_markup_heading.rb +0 -29
  198. data/test/test_rdoc_markup_include.rb +0 -19
  199. data/test/test_rdoc_markup_indented_paragraph.rb +0 -53
  200. data/test/test_rdoc_markup_paragraph.rb +0 -32
  201. data/test/test_rdoc_markup_parser.rb +0 -1680
  202. data/test/test_rdoc_markup_pre_process.rb +0 -473
  203. data/test/test_rdoc_markup_raw.rb +0 -22
  204. data/test/test_rdoc_markup_to_ansi.rb +0 -369
  205. data/test/test_rdoc_markup_to_bs.rb +0 -366
  206. data/test/test_rdoc_markup_to_html.rb +0 -662
  207. data/test/test_rdoc_markup_to_html_crossref.rb +0 -225
  208. data/test/test_rdoc_markup_to_html_snippet.rb +0 -711
  209. data/test/test_rdoc_markup_to_joined_paragraph.rb +0 -32
  210. data/test/test_rdoc_markup_to_label.rb +0 -112
  211. data/test/test_rdoc_markup_to_markdown.rb +0 -389
  212. data/test/test_rdoc_markup_to_rdoc.rb +0 -377
  213. data/test/test_rdoc_markup_to_table_of_contents.rb +0 -126
  214. data/test/test_rdoc_markup_to_tt_only.rb +0 -246
  215. data/test/test_rdoc_markup_verbatim.rb +0 -29
  216. data/test/test_rdoc_method_attr.rb +0 -193
  217. data/test/test_rdoc_normal_class.rb +0 -47
  218. data/test/test_rdoc_normal_module.rb +0 -42
  219. data/test/test_rdoc_options.rb +0 -766
  220. data/test/test_rdoc_parser.rb +0 -327
  221. data/test/test_rdoc_parser_c.rb +0 -1896
  222. data/test/test_rdoc_parser_changelog.rb +0 -315
  223. data/test/test_rdoc_parser_markdown.rb +0 -61
  224. data/test/test_rdoc_parser_rd.rb +0 -55
  225. data/test/test_rdoc_parser_ruby.rb +0 -3322
  226. data/test/test_rdoc_parser_simple.rb +0 -115
  227. data/test/test_rdoc_rd.rb +0 -30
  228. data/test/test_rdoc_rd_block_parser.rb +0 -535
  229. data/test/test_rdoc_rd_inline.rb +0 -63
  230. data/test/test_rdoc_rd_inline_parser.rb +0 -177
  231. data/test/test_rdoc_rdoc.rb +0 -455
  232. data/test/test_rdoc_require.rb +0 -25
  233. data/test/test_rdoc_ri_driver.rb +0 -1436
  234. data/test/test_rdoc_ri_paths.rb +0 -155
  235. data/test/test_rdoc_ruby_lex.rb +0 -421
  236. data/test/test_rdoc_ruby_token.rb +0 -19
  237. data/test/test_rdoc_rubygems_hook.rb +0 -251
  238. data/test/test_rdoc_servlet.rb +0 -534
  239. data/test/test_rdoc_single_class.rb +0 -20
  240. data/test/test_rdoc_stats.rb +0 -722
  241. data/test/test_rdoc_store.rb +0 -993
  242. data/test/test_rdoc_task.rb +0 -173
  243. data/test/test_rdoc_text.rb +0 -557
  244. data/test/test_rdoc_token_stream.rb +0 -42
  245. data/test/test_rdoc_tom_doc.rb +0 -520
  246. data/test/test_rdoc_top_level.rb +0 -287
  247. data/test/xref_data.rb +0 -76
  248. data/test/xref_test_case.rb +0 -67
@@ -1,309 +0,0 @@
1
- .autotest
2
- .document
3
- CONTRIBUTING.rdoc
4
- CVE-2013-0256.rdoc
5
- ExampleMarkdown.md
6
- ExampleRDoc.rdoc
7
- History.rdoc
8
- LEGAL.rdoc
9
- LICENSE.rdoc
10
- Manifest.txt
11
- README.rdoc
12
- RI.rdoc
13
- Rakefile
14
- TODO.rdoc
15
- bin/rdoc
16
- bin/ri
17
- lib/gauntlet_rdoc.rb
18
- lib/rdoc.rb
19
- lib/rdoc/alias.rb
20
- lib/rdoc/anon_class.rb
21
- lib/rdoc/any_method.rb
22
- lib/rdoc/attr.rb
23
- lib/rdoc/class_module.rb
24
- lib/rdoc/code_object.rb
25
- lib/rdoc/code_objects.rb
26
- lib/rdoc/comment.rb
27
- lib/rdoc/constant.rb
28
- lib/rdoc/context.rb
29
- lib/rdoc/context/section.rb
30
- lib/rdoc/cross_reference.rb
31
- lib/rdoc/encoding.rb
32
- lib/rdoc/erb_partial.rb
33
- lib/rdoc/erbio.rb
34
- lib/rdoc/extend.rb
35
- lib/rdoc/generator.rb
36
- lib/rdoc/generator/darkfish.rb
37
- lib/rdoc/generator/json_index.rb
38
- lib/rdoc/generator/markup.rb
39
- lib/rdoc/generator/ri.rb
40
- lib/rdoc/generator/pot.rb
41
- lib/rdoc/generator/pot/message_extractor.rb
42
- lib/rdoc/generator/pot/po.rb
43
- lib/rdoc/generator/pot/po_entry.rb
44
- lib/rdoc/generator/template/darkfish/.document
45
- lib/rdoc/generator/template/darkfish/_footer.rhtml
46
- lib/rdoc/generator/template/darkfish/_head.rhtml
47
- lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml
48
- lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
49
- lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml
50
- lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml
51
- lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml
52
- lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml
53
- lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml
54
- lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml
55
- lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml
56
- lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml
57
- lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml
58
- lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml
59
- lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
60
- lib/rdoc/generator/template/darkfish/class.rhtml
61
- lib/rdoc/generator/template/darkfish/css/fonts.css
62
- lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf
63
- lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf
64
- lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf
65
- lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf
66
- lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf
67
- lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf
68
- lib/rdoc/generator/template/darkfish/images/add.png
69
- lib/rdoc/generator/template/darkfish/images/arrow_up.png
70
- lib/rdoc/generator/template/darkfish/images/brick.png
71
- lib/rdoc/generator/template/darkfish/images/brick_link.png
72
- lib/rdoc/generator/template/darkfish/images/bug.png
73
- lib/rdoc/generator/template/darkfish/images/bullet_black.png
74
- lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png
75
- lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png
76
- lib/rdoc/generator/template/darkfish/images/date.png
77
- lib/rdoc/generator/template/darkfish/images/delete.png
78
- lib/rdoc/generator/template/darkfish/images/find.png
79
- lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif
80
- lib/rdoc/generator/template/darkfish/images/macFFBgHack.png
81
- lib/rdoc/generator/template/darkfish/images/package.png
82
- lib/rdoc/generator/template/darkfish/images/page_green.png
83
- lib/rdoc/generator/template/darkfish/images/page_white_text.png
84
- lib/rdoc/generator/template/darkfish/images/page_white_width.png
85
- lib/rdoc/generator/template/darkfish/images/plugin.png
86
- lib/rdoc/generator/template/darkfish/images/ruby.png
87
- lib/rdoc/generator/template/darkfish/images/tag_blue.png
88
- lib/rdoc/generator/template/darkfish/images/tag_green.png
89
- lib/rdoc/generator/template/darkfish/images/transparent.png
90
- lib/rdoc/generator/template/darkfish/images/wrench.png
91
- lib/rdoc/generator/template/darkfish/images/wrench_orange.png
92
- lib/rdoc/generator/template/darkfish/images/zoom.png
93
- lib/rdoc/generator/template/darkfish/index.rhtml
94
- lib/rdoc/generator/template/darkfish/js/darkfish.js
95
- lib/rdoc/generator/template/darkfish/js/jquery.js
96
- lib/rdoc/generator/template/darkfish/js/search.js
97
- lib/rdoc/generator/template/darkfish/page.rhtml
98
- lib/rdoc/generator/template/darkfish/css/rdoc.css
99
- lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml
100
- lib/rdoc/generator/template/darkfish/servlet_root.rhtml
101
- lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
102
- lib/rdoc/generator/template/json_index/.document
103
- lib/rdoc/generator/template/json_index/js/navigation.js
104
- lib/rdoc/generator/template/json_index/js/searcher.js
105
- lib/rdoc/ghost_method.rb
106
- lib/rdoc/i18n.rb
107
- lib/rdoc/i18n/locale.rb
108
- lib/rdoc/i18n/text.rb
109
- lib/rdoc/include.rb
110
- lib/rdoc/known_classes.rb
111
- lib/rdoc/markdown.kpeg
112
- lib/rdoc/markdown.rb
113
- lib/rdoc/markdown/entities.rb
114
- lib/rdoc/markdown/literals_1_8.kpeg
115
- lib/rdoc/markdown/literals_1_8.rb
116
- lib/rdoc/markdown/literals_1_9.kpeg
117
- lib/rdoc/markdown/literals_1_9.rb
118
- lib/rdoc/markup.rb
119
- lib/rdoc/markup/attr_changer.rb
120
- lib/rdoc/markup/attr_span.rb
121
- lib/rdoc/markup/attribute_manager.rb
122
- lib/rdoc/markup/attributes.rb
123
- lib/rdoc/markup/blank_line.rb
124
- lib/rdoc/markup/block_quote.rb
125
- lib/rdoc/markup/document.rb
126
- lib/rdoc/markup/formatter.rb
127
- lib/rdoc/markup/formatter_test_case.rb
128
- lib/rdoc/markup/hard_break.rb
129
- lib/rdoc/markup/heading.rb
130
- lib/rdoc/markup/include.rb
131
- lib/rdoc/markup/indented_paragraph.rb
132
- lib/rdoc/markup/inline.rb
133
- lib/rdoc/markup/list.rb
134
- lib/rdoc/markup/list_item.rb
135
- lib/rdoc/markup/paragraph.rb
136
- lib/rdoc/markup/parser.rb
137
- lib/rdoc/markup/pre_process.rb
138
- lib/rdoc/markup/raw.rb
139
- lib/rdoc/markup/rule.rb
140
- lib/rdoc/markup/special.rb
141
- lib/rdoc/markup/text_formatter_test_case.rb
142
- lib/rdoc/markup/to_ansi.rb
143
- lib/rdoc/markup/to_bs.rb
144
- lib/rdoc/markup/to_html.rb
145
- lib/rdoc/markup/to_html_crossref.rb
146
- lib/rdoc/markup/to_html_snippet.rb
147
- lib/rdoc/markup/to_joined_paragraph.rb
148
- lib/rdoc/markup/to_label.rb
149
- lib/rdoc/markup/to_markdown.rb
150
- lib/rdoc/markup/to_rdoc.rb
151
- lib/rdoc/markup/to_table_of_contents.rb
152
- lib/rdoc/markup/to_test.rb
153
- lib/rdoc/markup/to_tt_only.rb
154
- lib/rdoc/markup/verbatim.rb
155
- lib/rdoc/meta_method.rb
156
- lib/rdoc/method_attr.rb
157
- lib/rdoc/mixin.rb
158
- lib/rdoc/normal_class.rb
159
- lib/rdoc/normal_module.rb
160
- lib/rdoc/options.rb
161
- lib/rdoc/parser.rb
162
- lib/rdoc/parser/c.rb
163
- lib/rdoc/parser/changelog.rb
164
- lib/rdoc/parser/markdown.rb
165
- lib/rdoc/parser/rd.rb
166
- lib/rdoc/parser/ruby.rb
167
- lib/rdoc/parser/ruby_tools.rb
168
- lib/rdoc/parser/simple.rb
169
- lib/rdoc/parser/text.rb
170
- lib/rdoc/rd.rb
171
- lib/rdoc/rd/block_parser.rb
172
- lib/rdoc/rd/block_parser.ry
173
- lib/rdoc/rd/inline.rb
174
- lib/rdoc/rd/inline_parser.rb
175
- lib/rdoc/rd/inline_parser.ry
176
- lib/rdoc/rdoc.rb
177
- lib/rdoc/require.rb
178
- lib/rdoc/ri.rb
179
- lib/rdoc/ri/driver.rb
180
- lib/rdoc/ri/formatter.rb
181
- lib/rdoc/ri/paths.rb
182
- lib/rdoc/ri/store.rb
183
- lib/rdoc/ruby_lex.rb
184
- lib/rdoc/ruby_token.rb
185
- lib/rdoc/rubygems_hook.rb
186
- lib/rdoc/servlet.rb
187
- lib/rdoc/single_class.rb
188
- lib/rdoc/stats.rb
189
- lib/rdoc/stats/normal.rb
190
- lib/rdoc/stats/quiet.rb
191
- lib/rdoc/stats/verbose.rb
192
- lib/rdoc/store.rb
193
- lib/rdoc/task.rb
194
- lib/rdoc/test_case.rb
195
- lib/rdoc/text.rb
196
- lib/rdoc/token_stream.rb
197
- lib/rdoc/tom_doc.rb
198
- lib/rdoc/top_level.rb
199
- test/MarkdownTest_1.0.3/Amps and angle encoding.text
200
- test/MarkdownTest_1.0.3/Auto links.text
201
- test/MarkdownTest_1.0.3/Backslash escapes.text
202
- test/MarkdownTest_1.0.3/Blockquotes with code blocks.text
203
- test/MarkdownTest_1.0.3/Code Blocks.text
204
- test/MarkdownTest_1.0.3/Code Spans.text
205
- test/MarkdownTest_1.0.3/Hard-wrapped paragraphs with list-like lines.text
206
- test/MarkdownTest_1.0.3/Horizontal rules.text
207
- test/MarkdownTest_1.0.3/Inline HTML (Advanced).text
208
- test/MarkdownTest_1.0.3/Inline HTML (Simple).text
209
- test/MarkdownTest_1.0.3/Inline HTML comments.text
210
- test/MarkdownTest_1.0.3/Links, inline style.text
211
- test/MarkdownTest_1.0.3/Links, reference style.text
212
- test/MarkdownTest_1.0.3/Links, shortcut references.text
213
- test/MarkdownTest_1.0.3/Literal quotes in titles.text
214
- test/MarkdownTest_1.0.3/Markdown Documentation - Basics.text
215
- test/MarkdownTest_1.0.3/Markdown Documentation - Syntax.text
216
- test/MarkdownTest_1.0.3/Nested blockquotes.text
217
- test/MarkdownTest_1.0.3/Ordered and unordered lists.text
218
- test/MarkdownTest_1.0.3/Strong and em together.text
219
- test/MarkdownTest_1.0.3/Tabs.text
220
- test/MarkdownTest_1.0.3/Tidyness.text
221
- test/README
222
- test/binary.dat
223
- test/hidden.zip.txt
224
- test/test.ja.largedoc
225
- test/test.ja.rdoc
226
- test/test.ja.txt
227
- test/test.txt
228
- test/test_rdoc_alias.rb
229
- test/test_rdoc_any_method.rb
230
- test/test_rdoc_attr.rb
231
- test/test_rdoc_class_module.rb
232
- test/test_rdoc_code_object.rb
233
- test/test_rdoc_comment.rb
234
- test/test_rdoc_constant.rb
235
- test/test_rdoc_context.rb
236
- test/test_rdoc_context_section.rb
237
- test/test_rdoc_cross_reference.rb
238
- test/test_rdoc_encoding.rb
239
- test/test_rdoc_extend.rb
240
- test/test_rdoc_generator_darkfish.rb
241
- test/test_rdoc_generator_json_index.rb
242
- test/test_rdoc_generator_markup.rb
243
- test/test_rdoc_generator_ri.rb
244
- test/test_rdoc_generator_pot.rb
245
- test/test_rdoc_generator_pot_po.rb
246
- test/test_rdoc_generator_pot_po_entry.rb
247
- test/test_rdoc_i18n_locale.rb
248
- test/test_rdoc_i18n_text.rb
249
- test/test_rdoc_include.rb
250
- test/test_rdoc_markdown.rb
251
- test/test_rdoc_markdown_test.rb
252
- test/test_rdoc_markup.rb
253
- test/test_rdoc_markup_attribute_manager.rb
254
- test/test_rdoc_markup_attributes.rb
255
- test/test_rdoc_markup_document.rb
256
- test/test_rdoc_markup_formatter.rb
257
- test/test_rdoc_markup_hard_break.rb
258
- test/test_rdoc_markup_heading.rb
259
- test/test_rdoc_markup_include.rb
260
- test/test_rdoc_markup_indented_paragraph.rb
261
- test/test_rdoc_markup_paragraph.rb
262
- test/test_rdoc_markup_parser.rb
263
- test/test_rdoc_markup_pre_process.rb
264
- test/test_rdoc_markup_raw.rb
265
- test/test_rdoc_markup_to_ansi.rb
266
- test/test_rdoc_markup_to_bs.rb
267
- test/test_rdoc_markup_to_html.rb
268
- test/test_rdoc_markup_to_html_crossref.rb
269
- test/test_rdoc_markup_to_html_snippet.rb
270
- test/test_rdoc_markup_to_joined_paragraph.rb
271
- test/test_rdoc_markup_to_label.rb
272
- test/test_rdoc_markup_to_markdown.rb
273
- test/test_rdoc_markup_to_rdoc.rb
274
- test/test_rdoc_markup_to_table_of_contents.rb
275
- test/test_rdoc_markup_to_tt_only.rb
276
- test/test_rdoc_markup_verbatim.rb
277
- test/test_rdoc_method_attr.rb
278
- test/test_rdoc_normal_class.rb
279
- test/test_rdoc_normal_module.rb
280
- test/test_rdoc_options.rb
281
- test/test_rdoc_parser.rb
282
- test/test_rdoc_parser_c.rb
283
- test/test_rdoc_parser_changelog.rb
284
- test/test_rdoc_parser_markdown.rb
285
- test/test_rdoc_parser_rd.rb
286
- test/test_rdoc_parser_ruby.rb
287
- test/test_rdoc_parser_simple.rb
288
- test/test_rdoc_rd.rb
289
- test/test_rdoc_rd_block_parser.rb
290
- test/test_rdoc_rd_inline.rb
291
- test/test_rdoc_rd_inline_parser.rb
292
- test/test_rdoc_rdoc.rb
293
- test/test_rdoc_require.rb
294
- test/test_rdoc_ri_driver.rb
295
- test/test_rdoc_ri_paths.rb
296
- test/test_rdoc_ruby_lex.rb
297
- test/test_rdoc_ruby_token.rb
298
- test/test_rdoc_rubygems_hook.rb
299
- test/test_rdoc_servlet.rb
300
- test/test_rdoc_single_class.rb
301
- test/test_rdoc_stats.rb
302
- test/test_rdoc_store.rb
303
- test/test_rdoc_task.rb
304
- test/test_rdoc_text.rb
305
- test/test_rdoc_token_stream.rb
306
- test/test_rdoc_tom_doc.rb
307
- test/test_rdoc_top_level.rb
308
- test/xref_data.rb
309
- test/xref_test_case.rb
@@ -1,18 +0,0 @@
1
- %% name = RDoc::Markdown::Literals
2
-
3
- %% header {
4
- # :markup: markdown
5
-
6
- ##
7
- # Provides Literals appropriate for your ruby version.
8
- #--
9
- # This set of literals is for Ruby 1.8 regular expressions.
10
- }
11
-
12
- Alphanumeric = /[0-9A-Za-z\200-\377]/
13
- AlphanumericAscii = /[A-Za-z0-9]/
14
- BOM = "\357\273\277"
15
- Newline = /\n|\r\n?/
16
- NonAlphanumeric = /[\000-\057\072-\100\133-\140\173-\177]/
17
- Spacechar = / |\t/
18
-
@@ -1,416 +0,0 @@
1
- # :markup: markdown
2
-
3
- ##
4
- # Provides Literals appropriate for your ruby version.
5
- #--
6
- # This set of literals is for Ruby 1.8 regular expressions.
7
- class RDoc::Markdown::Literals
8
- # :stopdoc:
9
-
10
- # This is distinct from setup_parser so that a standalone parser
11
- # can redefine #initialize and still have access to the proper
12
- # parser setup code.
13
- def initialize(str, debug=false)
14
- setup_parser(str, debug)
15
- end
16
-
17
-
18
-
19
- # Prepares for parsing +str+. If you define a custom initialize you must
20
- # call this method before #parse
21
- def setup_parser(str, debug=false)
22
- set_string str, 0
23
- @memoizations = Hash.new { |h,k| h[k] = {} }
24
- @result = nil
25
- @failed_rule = nil
26
- @failing_rule_offset = -1
27
-
28
- setup_foreign_grammar
29
- end
30
-
31
- attr_reader :string
32
- attr_reader :failing_rule_offset
33
- attr_accessor :result, :pos
34
-
35
- def current_column(target=pos)
36
- if c = string.rindex("\n", target-1)
37
- return target - c - 1
38
- end
39
-
40
- target + 1
41
- end
42
-
43
- def current_line(target=pos)
44
- cur_offset = 0
45
- cur_line = 0
46
-
47
- string.each_line do |line|
48
- cur_line += 1
49
- cur_offset += line.size
50
- return cur_line if cur_offset >= target
51
- end
52
-
53
- -1
54
- end
55
-
56
- def lines
57
- lines = []
58
- string.each_line { |l| lines << l }
59
- lines
60
- end
61
-
62
-
63
-
64
- def get_text(start)
65
- @string[start..@pos-1]
66
- end
67
-
68
- # Sets the string and current parsing position for the parser.
69
- def set_string string, pos
70
- @string = string
71
- @string_size = string ? string.size : 0
72
- @pos = pos
73
- end
74
-
75
- def show_pos
76
- width = 10
77
- if @pos < width
78
- "#{@pos} (\"#{@string[0,@pos]}\" @ \"#{@string[@pos,width]}\")"
79
- else
80
- "#{@pos} (\"... #{@string[@pos - width, width]}\" @ \"#{@string[@pos,width]}\")"
81
- end
82
- end
83
-
84
- def failure_info
85
- l = current_line @failing_rule_offset
86
- c = current_column @failing_rule_offset
87
-
88
- if @failed_rule.kind_of? Symbol
89
- info = self.class::Rules[@failed_rule]
90
- "line #{l}, column #{c}: failed rule '#{info.name}' = '#{info.rendered}'"
91
- else
92
- "line #{l}, column #{c}: failed rule '#{@failed_rule}'"
93
- end
94
- end
95
-
96
- def failure_caret
97
- l = current_line @failing_rule_offset
98
- c = current_column @failing_rule_offset
99
-
100
- line = lines[l-1]
101
- "#{line}\n#{' ' * (c - 1)}^"
102
- end
103
-
104
- def failure_character
105
- l = current_line @failing_rule_offset
106
- c = current_column @failing_rule_offset
107
- lines[l-1][c-1, 1]
108
- end
109
-
110
- def failure_oneline
111
- l = current_line @failing_rule_offset
112
- c = current_column @failing_rule_offset
113
-
114
- char = lines[l-1][c-1, 1]
115
-
116
- if @failed_rule.kind_of? Symbol
117
- info = self.class::Rules[@failed_rule]
118
- "@#{l}:#{c} failed rule '#{info.name}', got '#{char}'"
119
- else
120
- "@#{l}:#{c} failed rule '#{@failed_rule}', got '#{char}'"
121
- end
122
- end
123
-
124
- class ParseError < RuntimeError
125
- end
126
-
127
- def raise_error
128
- raise ParseError, failure_oneline
129
- end
130
-
131
- def show_error(io=STDOUT)
132
- error_pos = @failing_rule_offset
133
- line_no = current_line(error_pos)
134
- col_no = current_column(error_pos)
135
-
136
- io.puts "On line #{line_no}, column #{col_no}:"
137
-
138
- if @failed_rule.kind_of? Symbol
139
- info = self.class::Rules[@failed_rule]
140
- io.puts "Failed to match '#{info.rendered}' (rule '#{info.name}')"
141
- else
142
- io.puts "Failed to match rule '#{@failed_rule}'"
143
- end
144
-
145
- io.puts "Got: #{string[error_pos,1].inspect}"
146
- line = lines[line_no-1]
147
- io.puts "=> #{line}"
148
- io.print(" " * (col_no + 3))
149
- io.puts "^"
150
- end
151
-
152
- def set_failed_rule(name)
153
- if @pos > @failing_rule_offset
154
- @failed_rule = name
155
- @failing_rule_offset = @pos
156
- end
157
- end
158
-
159
- attr_reader :failed_rule
160
-
161
- def match_string(str)
162
- len = str.size
163
- if @string[pos,len] == str
164
- @pos += len
165
- return str
166
- end
167
-
168
- return nil
169
- end
170
-
171
- def scan(reg)
172
- if m = reg.match(@string[@pos..-1])
173
- width = m.end(0)
174
- @pos += width
175
- return true
176
- end
177
-
178
- return nil
179
- end
180
-
181
- if "".respond_to? :ord
182
- def get_byte
183
- if @pos >= @string_size
184
- return nil
185
- end
186
-
187
- s = @string[@pos].ord
188
- @pos += 1
189
- s
190
- end
191
- else
192
- def get_byte
193
- if @pos >= @string_size
194
- return nil
195
- end
196
-
197
- s = @string[@pos]
198
- @pos += 1
199
- s
200
- end
201
- end
202
-
203
- def parse(rule=nil)
204
- # We invoke the rules indirectly via apply
205
- # instead of by just calling them as methods because
206
- # if the rules use left recursion, apply needs to
207
- # manage that.
208
-
209
- if !rule
210
- apply(:_root)
211
- else
212
- method = rule.gsub("-","_hyphen_")
213
- apply :"_#{method}"
214
- end
215
- end
216
-
217
- class MemoEntry
218
- def initialize(ans, pos)
219
- @ans = ans
220
- @pos = pos
221
- @result = nil
222
- @set = false
223
- @left_rec = false
224
- end
225
-
226
- attr_reader :ans, :pos, :result, :set
227
- attr_accessor :left_rec
228
-
229
- def move!(ans, pos, result)
230
- @ans = ans
231
- @pos = pos
232
- @result = result
233
- @set = true
234
- @left_rec = false
235
- end
236
- end
237
-
238
- def external_invoke(other, rule, *args)
239
- old_pos = @pos
240
- old_string = @string
241
-
242
- set_string other.string, other.pos
243
-
244
- begin
245
- if val = __send__(rule, *args)
246
- other.pos = @pos
247
- other.result = @result
248
- else
249
- other.set_failed_rule "#{self.class}##{rule}"
250
- end
251
- val
252
- ensure
253
- set_string old_string, old_pos
254
- end
255
- end
256
-
257
- def apply_with_args(rule, *args)
258
- memo_key = [rule, args]
259
- if m = @memoizations[memo_key][@pos]
260
- @pos = m.pos
261
- if !m.set
262
- m.left_rec = true
263
- return nil
264
- end
265
-
266
- @result = m.result
267
-
268
- return m.ans
269
- else
270
- m = MemoEntry.new(nil, @pos)
271
- @memoizations[memo_key][@pos] = m
272
- start_pos = @pos
273
-
274
- ans = __send__ rule, *args
275
-
276
- lr = m.left_rec
277
-
278
- m.move! ans, @pos, @result
279
-
280
- # Don't bother trying to grow the left recursion
281
- # if it's failing straight away (thus there is no seed)
282
- if ans and lr
283
- return grow_lr(rule, args, start_pos, m)
284
- else
285
- return ans
286
- end
287
-
288
- return ans
289
- end
290
- end
291
-
292
- def apply(rule)
293
- if m = @memoizations[rule][@pos]
294
- @pos = m.pos
295
- if !m.set
296
- m.left_rec = true
297
- return nil
298
- end
299
-
300
- @result = m.result
301
-
302
- return m.ans
303
- else
304
- m = MemoEntry.new(nil, @pos)
305
- @memoizations[rule][@pos] = m
306
- start_pos = @pos
307
-
308
- ans = __send__ rule
309
-
310
- lr = m.left_rec
311
-
312
- m.move! ans, @pos, @result
313
-
314
- # Don't bother trying to grow the left recursion
315
- # if it's failing straight away (thus there is no seed)
316
- if ans and lr
317
- return grow_lr(rule, nil, start_pos, m)
318
- else
319
- return ans
320
- end
321
-
322
- return ans
323
- end
324
- end
325
-
326
- def grow_lr(rule, args, start_pos, m)
327
- while true
328
- @pos = start_pos
329
- @result = m.result
330
-
331
- if args
332
- ans = __send__ rule, *args
333
- else
334
- ans = __send__ rule
335
- end
336
- return nil unless ans
337
-
338
- break if @pos <= m.pos
339
-
340
- m.move! ans, @pos, @result
341
- end
342
-
343
- @result = m.result
344
- @pos = m.pos
345
- return m.ans
346
- end
347
-
348
- class RuleInfo
349
- def initialize(name, rendered)
350
- @name = name
351
- @rendered = rendered
352
- end
353
-
354
- attr_reader :name, :rendered
355
- end
356
-
357
- def self.rule_info(name, rendered)
358
- RuleInfo.new(name, rendered)
359
- end
360
-
361
-
362
- # :startdoc:
363
- # :stopdoc:
364
- def setup_foreign_grammar; end
365
-
366
- # Alphanumeric = /[0-9A-Za-z\200-\377]/
367
- def _Alphanumeric
368
- _tmp = scan(/\A(?-mix:[0-9A-Za-z\200-\377])/)
369
- set_failed_rule :_Alphanumeric unless _tmp
370
- return _tmp
371
- end
372
-
373
- # AlphanumericAscii = /[A-Za-z0-9]/
374
- def _AlphanumericAscii
375
- _tmp = scan(/\A(?-mix:[A-Za-z0-9])/)
376
- set_failed_rule :_AlphanumericAscii unless _tmp
377
- return _tmp
378
- end
379
-
380
- # BOM = ""
381
- def _BOM
382
- _tmp = match_string("\303\257\302\273\302\277")
383
- set_failed_rule :_BOM unless _tmp
384
- return _tmp
385
- end
386
-
387
- # Newline = /\n|\r\n?/
388
- def _Newline
389
- _tmp = scan(/\A(?-mix:\n|\r\n?)/)
390
- set_failed_rule :_Newline unless _tmp
391
- return _tmp
392
- end
393
-
394
- # NonAlphanumeric = /[\000-\057\072-\100\133-\140\173-\177]/
395
- def _NonAlphanumeric
396
- _tmp = scan(/\A(?-mix:[\000-\057\072-\100\133-\140\173-\177])/)
397
- set_failed_rule :_NonAlphanumeric unless _tmp
398
- return _tmp
399
- end
400
-
401
- # Spacechar = / |\t/
402
- def _Spacechar
403
- _tmp = scan(/\A(?-mix: |\t)/)
404
- set_failed_rule :_Spacechar unless _tmp
405
- return _tmp
406
- end
407
-
408
- Rules = {}
409
- Rules[:_Alphanumeric] = rule_info("Alphanumeric", "/[0-9A-Za-z\\200-\\377]/")
410
- Rules[:_AlphanumericAscii] = rule_info("AlphanumericAscii", "/[A-Za-z0-9]/")
411
- Rules[:_BOM] = rule_info("BOM", "\"\"")
412
- Rules[:_Newline] = rule_info("Newline", "/\\n|\\r\\n?/")
413
- Rules[:_NonAlphanumeric] = rule_info("NonAlphanumeric", "/[\\000-\\057\\072-\\100\\133-\\140\\173-\\177]/")
414
- Rules[:_Spacechar] = rule_info("Spacechar", "/ |\\t/")
415
- # :startdoc:
416
- end