rdoc 3.1 → 6.3.3

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 (247) hide show
  1. checksums.yaml +7 -0
  2. data/CONTRIBUTING.rdoc +220 -0
  3. data/CVE-2013-0256.rdoc +49 -0
  4. data/ExampleMarkdown.md +37 -0
  5. data/ExampleRDoc.rdoc +208 -0
  6. data/Gemfile +12 -0
  7. data/History.rdoc +1666 -0
  8. data/LEGAL.rdoc +50 -0
  9. data/LICENSE.rdoc +57 -0
  10. data/README.rdoc +129 -0
  11. data/RI.rdoc +57 -0
  12. data/Rakefile +84 -81
  13. data/TODO.rdoc +59 -0
  14. data/bin/console +7 -0
  15. data/bin/setup +6 -0
  16. data/{bin → exe}/rdoc +11 -2
  17. data/exe/ri +12 -0
  18. data/lib/rdoc/alias.rb +1 -2
  19. data/lib/rdoc/anon_class.rb +3 -2
  20. data/lib/rdoc/any_method.rb +234 -40
  21. data/lib/rdoc/attr.rb +79 -11
  22. data/lib/rdoc/class_module.rb +443 -71
  23. data/lib/rdoc/code_object.rb +216 -20
  24. data/lib/rdoc/code_objects.rb +4 -21
  25. data/lib/rdoc/comment.rb +250 -0
  26. data/lib/rdoc/constant.rb +110 -9
  27. data/lib/rdoc/context/section.rb +232 -0
  28. data/lib/rdoc/context.rb +392 -172
  29. data/lib/rdoc/cross_reference.rb +202 -0
  30. data/lib/rdoc/encoding.rb +83 -28
  31. data/lib/rdoc/erb_partial.rb +19 -0
  32. data/lib/rdoc/erbio.rb +8 -3
  33. data/lib/rdoc/extend.rb +10 -0
  34. data/lib/rdoc/generator/darkfish.rb +507 -84
  35. data/lib/rdoc/generator/json_index.rb +300 -0
  36. data/lib/rdoc/generator/markup.rb +27 -74
  37. data/lib/rdoc/generator/pot/message_extractor.rb +68 -0
  38. data/lib/rdoc/generator/pot/po.rb +84 -0
  39. data/lib/rdoc/generator/pot/po_entry.rb +141 -0
  40. data/lib/rdoc/generator/pot.rb +98 -0
  41. data/lib/rdoc/generator/ri.rb +8 -62
  42. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
  43. data/lib/rdoc/generator/template/darkfish/_head.rhtml +22 -0
  44. data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +19 -0
  45. data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
  46. data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +15 -0
  47. data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +9 -0
  48. data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +15 -0
  49. data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +15 -0
  50. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
  51. data/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +11 -0
  52. data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
  53. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +11 -0
  54. data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +14 -0
  55. data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +11 -0
  56. data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +18 -0
  57. data/lib/rdoc/generator/template/darkfish/class.rhtml +172 -0
  58. data/lib/rdoc/generator/template/darkfish/css/fonts.css +167 -0
  59. data/lib/rdoc/generator/template/darkfish/css/rdoc.css +639 -0
  60. data/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
  61. data/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
  62. data/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
  63. data/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
  64. data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
  65. data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
  66. data/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
  67. data/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
  68. data/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
  69. data/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
  70. data/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
  71. data/lib/rdoc/generator/template/darkfish/index.rhtml +18 -60
  72. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +51 -83
  73. data/lib/rdoc/generator/template/darkfish/js/search.js +110 -0
  74. data/lib/rdoc/generator/template/darkfish/page.rhtml +18 -0
  75. data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +18 -0
  76. data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +62 -0
  77. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +58 -0
  78. data/lib/rdoc/generator/template/json_index/.document +1 -0
  79. data/lib/rdoc/generator/template/json_index/js/navigation.js +105 -0
  80. data/lib/rdoc/generator/template/json_index/js/searcher.js +229 -0
  81. data/lib/rdoc/generator.rb +24 -13
  82. data/lib/rdoc/ghost_method.rb +1 -2
  83. data/lib/rdoc/i18n/locale.rb +102 -0
  84. data/lib/rdoc/i18n/text.rb +126 -0
  85. data/lib/rdoc/i18n.rb +10 -0
  86. data/lib/rdoc/include.rb +5 -95
  87. data/lib/rdoc/known_classes.rb +5 -2
  88. data/lib/rdoc/markdown/entities.rb +2132 -0
  89. data/lib/rdoc/markdown/literals.kpeg +23 -0
  90. data/lib/rdoc/markdown/literals.rb +416 -0
  91. data/lib/rdoc/markdown.kpeg +1237 -0
  92. data/lib/rdoc/markdown.rb +16684 -0
  93. data/lib/rdoc/markup/attr_changer.rb +23 -0
  94. data/lib/rdoc/markup/attr_span.rb +36 -0
  95. data/lib/rdoc/markup/attribute_manager.rb +135 -62
  96. data/lib/rdoc/markup/attributes.rb +71 -0
  97. data/lib/rdoc/markup/blank_line.rb +1 -0
  98. data/lib/rdoc/markup/block_quote.rb +15 -0
  99. data/lib/rdoc/markup/document.rb +96 -9
  100. data/lib/rdoc/markup/formatter.rb +138 -25
  101. data/lib/rdoc/markup/hard_break.rb +32 -0
  102. data/lib/rdoc/markup/heading.rb +61 -2
  103. data/lib/rdoc/markup/include.rb +43 -0
  104. data/lib/rdoc/markup/indented_paragraph.rb +48 -0
  105. data/lib/rdoc/markup/list.rb +25 -4
  106. data/lib/rdoc/markup/list_item.rb +18 -4
  107. data/lib/rdoc/markup/paragraph.rb +15 -0
  108. data/lib/rdoc/markup/parser.rb +180 -88
  109. data/lib/rdoc/markup/pre_process.rb +183 -38
  110. data/lib/rdoc/markup/raw.rb +6 -5
  111. data/lib/rdoc/markup/regexp_handling.rb +41 -0
  112. data/lib/rdoc/markup/rule.rb +1 -0
  113. data/lib/rdoc/markup/table.rb +47 -0
  114. data/lib/rdoc/markup/to_ansi.rb +17 -7
  115. data/lib/rdoc/markup/to_bs.rb +5 -8
  116. data/lib/rdoc/markup/to_html.rb +238 -137
  117. data/lib/rdoc/markup/to_html_crossref.rb +125 -152
  118. data/lib/rdoc/markup/to_html_snippet.rb +285 -0
  119. data/lib/rdoc/markup/to_joined_paragraph.rb +47 -0
  120. data/lib/rdoc/markup/to_label.rb +75 -0
  121. data/lib/rdoc/markup/to_markdown.rb +192 -0
  122. data/lib/rdoc/markup/to_rdoc.rb +85 -15
  123. data/lib/rdoc/markup/to_table_of_contents.rb +89 -0
  124. data/lib/rdoc/markup/to_test.rb +2 -4
  125. data/lib/rdoc/markup/to_tt_only.rb +121 -0
  126. data/lib/rdoc/markup/verbatim.rb +39 -0
  127. data/lib/rdoc/markup.rb +388 -110
  128. data/lib/rdoc/meta_method.rb +1 -2
  129. data/lib/rdoc/method_attr.rb +87 -21
  130. data/lib/rdoc/mixin.rb +121 -0
  131. data/lib/rdoc/normal_class.rb +39 -10
  132. data/lib/rdoc/normal_module.rb +22 -7
  133. data/lib/rdoc/options.rb +613 -73
  134. data/lib/rdoc/parser/c.rb +621 -287
  135. data/lib/rdoc/parser/changelog.rb +335 -0
  136. data/lib/rdoc/parser/markdown.rb +24 -0
  137. data/lib/rdoc/parser/rd.rb +23 -0
  138. data/lib/rdoc/parser/ripper_state_lex.rb +590 -0
  139. data/lib/rdoc/parser/ruby.rb +1368 -762
  140. data/lib/rdoc/parser/ruby_tools.rb +42 -35
  141. data/lib/rdoc/parser/simple.rb +23 -11
  142. data/lib/rdoc/parser/text.rb +12 -0
  143. data/lib/rdoc/parser.rb +162 -89
  144. data/lib/rdoc/rd/block_parser.rb +1056 -0
  145. data/lib/rdoc/rd/block_parser.ry +639 -0
  146. data/lib/rdoc/rd/inline.rb +72 -0
  147. data/lib/rdoc/rd/inline_parser.rb +1208 -0
  148. data/lib/rdoc/rd/inline_parser.ry +593 -0
  149. data/lib/rdoc/rd.rb +100 -0
  150. data/lib/rdoc/rdoc.rb +208 -115
  151. data/lib/rdoc/require.rb +1 -2
  152. data/lib/rdoc/ri/driver.rb +734 -239
  153. data/lib/rdoc/ri/formatter.rb +1 -0
  154. data/lib/rdoc/ri/paths.rb +91 -48
  155. data/lib/rdoc/ri/store.rb +3 -261
  156. data/lib/rdoc/ri/task.rb +71 -0
  157. data/lib/rdoc/ri.rb +5 -2
  158. data/lib/rdoc/rubygems_hook.rb +246 -0
  159. data/lib/rdoc/servlet.rb +451 -0
  160. data/lib/rdoc/single_class.rb +14 -2
  161. data/lib/rdoc/stats/normal.rb +19 -12
  162. data/lib/rdoc/stats/quiet.rb +1 -0
  163. data/lib/rdoc/stats/verbose.rb +1 -0
  164. data/lib/rdoc/stats.rb +262 -104
  165. data/lib/rdoc/store.rb +979 -0
  166. data/lib/rdoc/task.rb +84 -44
  167. data/lib/rdoc/text.rb +117 -72
  168. data/lib/rdoc/token_stream.rb +73 -4
  169. data/lib/rdoc/tom_doc.rb +263 -0
  170. data/lib/rdoc/top_level.rb +111 -261
  171. data/lib/rdoc/version.rb +8 -0
  172. data/lib/rdoc.rb +127 -64
  173. data/man/ri.1 +247 -0
  174. data/rdoc.gemspec +249 -0
  175. metadata +171 -291
  176. data/.autotest +0 -16
  177. data/.document +0 -5
  178. data/History.txt +0 -594
  179. data/LICENSE.txt +0 -57
  180. data/Manifest.txt +0 -158
  181. data/README.txt +0 -45
  182. data/RI.txt +0 -58
  183. data/bin/ri +0 -5
  184. data/lib/rdoc/gauntlet.rb +0 -52
  185. data/lib/rdoc/generator/template/darkfish/classpage.rhtml +0 -296
  186. data/lib/rdoc/generator/template/darkfish/filepage.rhtml +0 -124
  187. data/lib/rdoc/generator/template/darkfish/js/jquery.js +0 -32
  188. data/lib/rdoc/generator/template/darkfish/js/quicksearch.js +0 -114
  189. data/lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js +0 -10
  190. data/lib/rdoc/generator/template/darkfish/rdoc.css +0 -706
  191. data/lib/rdoc/markup/formatter_test_case.rb +0 -689
  192. data/lib/rdoc/markup/inline.rb +0 -137
  193. data/lib/rdoc/markup/text_formatter_test_case.rb +0 -116
  194. data/lib/rdoc/ruby_lex.rb +0 -1291
  195. data/lib/rdoc/ruby_token.rb +0 -416
  196. data/test/README +0 -1
  197. data/test/binary.dat +0 -0
  198. data/test/hidden.zip.txt +0 -1
  199. data/test/test.ja.rdoc +0 -10
  200. data/test/test.ja.txt +0 -8
  201. data/test/test.txt +0 -1
  202. data/test/test_attribute_manager.rb +0 -120
  203. data/test/test_rdoc_alias.rb +0 -13
  204. data/test/test_rdoc_any_method.rb +0 -126
  205. data/test/test_rdoc_attr.rb +0 -61
  206. data/test/test_rdoc_class_module.rb +0 -233
  207. data/test/test_rdoc_code_object.rb +0 -165
  208. data/test/test_rdoc_constant.rb +0 -15
  209. data/test/test_rdoc_context.rb +0 -370
  210. data/test/test_rdoc_encoding.rb +0 -166
  211. data/test/test_rdoc_generator_darkfish.rb +0 -119
  212. data/test/test_rdoc_generator_ri.rb +0 -76
  213. data/test/test_rdoc_include.rb +0 -96
  214. data/test/test_rdoc_markup.rb +0 -37
  215. data/test/test_rdoc_markup_attribute_manager.rb +0 -240
  216. data/test/test_rdoc_markup_document.rb +0 -51
  217. data/test/test_rdoc_markup_paragraph.rb +0 -9
  218. data/test/test_rdoc_markup_parser.rb +0 -1395
  219. data/test/test_rdoc_markup_pre_process.rb +0 -185
  220. data/test/test_rdoc_markup_raw.rb +0 -27
  221. data/test/test_rdoc_markup_to_ansi.rb +0 -328
  222. data/test/test_rdoc_markup_to_bs.rb +0 -341
  223. data/test/test_rdoc_markup_to_html.rb +0 -335
  224. data/test/test_rdoc_markup_to_html_crossref.rb +0 -169
  225. data/test/test_rdoc_markup_to_rdoc.rb +0 -327
  226. data/test/test_rdoc_method_attr.rb +0 -122
  227. data/test/test_rdoc_normal_class.rb +0 -17
  228. data/test/test_rdoc_normal_module.rb +0 -31
  229. data/test/test_rdoc_options.rb +0 -342
  230. data/test/test_rdoc_parser.rb +0 -83
  231. data/test/test_rdoc_parser_c.rb +0 -912
  232. data/test/test_rdoc_parser_ruby.rb +0 -1754
  233. data/test/test_rdoc_parser_simple.rb +0 -99
  234. data/test/test_rdoc_rdoc.rb +0 -164
  235. data/test/test_rdoc_require.rb +0 -25
  236. data/test/test_rdoc_ri_driver.rb +0 -846
  237. data/test/test_rdoc_ri_paths.rb +0 -43
  238. data/test/test_rdoc_ri_store.rb +0 -352
  239. data/test/test_rdoc_ruby_lex.rb +0 -23
  240. data/test/test_rdoc_stats.rb +0 -38
  241. data/test/test_rdoc_task.rb +0 -92
  242. data/test/test_rdoc_text.rb +0 -251
  243. data/test/test_rdoc_top_level.rb +0 -120
  244. data/test/xref_data.rb +0 -62
  245. data/test/xref_test_case.rb +0 -61
  246. data.tar.gz.sig +0 -3
  247. metadata.gz.sig +0 -0
data/History.rdoc ADDED
@@ -0,0 +1,1666 @@
1
+ === 5.1.0 / 2017-02-24
2
+
3
+ * Bug fixes
4
+ * Fix an issue that rdoc fails when running on Windows with RUBYOPT=-U.
5
+ PR #430 by Toshihiko Ichida
6
+
7
+ * Minor enhancements
8
+ * Parse ruby 2.1 <visibility> def. PR #436 by Akira Matsuda.
9
+ * Suppress warnings in eval. PR #440 by Nobuyoshi Nakada.
10
+
11
+ === 5.0.0 / 2016-11-05
12
+
13
+ * Major enhancements
14
+ * Cleanup deprecated code targeted Ruby 1.8
15
+
16
+ * Bug fixes
17
+ * Ensure badge data is included in result of JsonIndex template.
18
+ * Ensure items in the nil section are displayed in HTML output. Issue #399
19
+ by Daniel Svensson.
20
+ * Parse rb_intern_const correctly in C. PR #381 by Sho Hashimoto.
21
+ * Fix broken assets caused by #335 when serving ri. PR #360 by Alex Wood.
22
+ * Don't try to parse svg files. Issue #350 by Sigurd Svela.
23
+
24
+ * Minor enhancements
25
+ * Improve class name expansion/resolution in ri. PR #400 by NARUSE, Yui
26
+ * Improve performance of document generation. PR #397 by Yusuke Endoh.
27
+
28
+ === 4.3.0 / 2016-11-04
29
+
30
+ * Minor enhancements
31
+ * Removed json dependency for Ruby 2.4.0
32
+ * End to support Ruby 1.8.x
33
+
34
+ === 4.2.2 / 2016-02-09
35
+
36
+ * Bug fixes
37
+ * Include lib/rdoc/generator/pot/* in built gem
38
+
39
+
40
+ === 4.2.1 / 2015-12-22
41
+
42
+ * Bug fixes
43
+ * Fixed infinite loop with CR #339 by @nobu
44
+ * Allow rdoc run with --disable-gems #340 by @luizluca
45
+ * Don't store full path in GZipped js files #341 by @voxik
46
+ * Fix relative path names for drive letters #367 by @nobu
47
+ * Fix for valid syntax `class C end` parsing #368 by @nobu
48
+
49
+
50
+ === 4.2.0 / 2014-12-06
51
+
52
+ * Major enhancements
53
+ * RDoc can now produce translation files for use with gettext. See
54
+ RDoc::Generator::POT for a workflow for creating translations of your
55
+ documentation. Pull request #254 by Kouhei Sutou.
56
+
57
+ * Minor enhancements
58
+ * RDoc now allows any single-word macro before a C method implementation.
59
+ Issue #722 by Hanmac.
60
+ * Now :all is a synonym for :private for RDoc::Options#visibility= to match
61
+ the --all command line option. Pull request #276 by Zachary Scott.
62
+ * Running rake for the first time now installs racc. Pull request #285 by
63
+ Kouhei Sutou.
64
+ * Added <code>-h</code> flag to also display help. Issue #300 by Ryan Davis
65
+ * search_index.js is now loaded asynchronously for improved performance.
66
+ * Allow +X::Y+ as typewriter text. Issue #319, pull request #322 by Jeremy
67
+ Evans.
68
+ * Added RDoc::RI::Task for building ri data easily through rake. Pull
69
+ request #332 by Zachary Scott.
70
+ * A gzipped search index is generated for servers configured to use
71
+ precompressed files. Pull request #334 by Zachary Scott.
72
+ * CSS files now live under /css relative to the document root. Pull request
73
+ #335 by Zachary Scott.
74
+ * Improved detection of valid ruby in verbatim sections. Pull request #333
75
+ by Jeremy Evans.
76
+
77
+ * Bug fixes
78
+ * Fixed HTML labels for cross-browser compatibility. This breaks existing
79
+ links but enables cross-browser compatibility. Pull request #330 by Jens
80
+ Will.
81
+ * RDoc handles ASCII-incompatible encodings now. An encoding hint may need
82
+ to be added to the file for RDoc to produce correct output, though.
83
+ Issue #288 by Manuel Meurer.
84
+ * Fixed height recalculation issues when headings are hovered. Issue #289
85
+ by Dietmar H. Büto.
86
+ * RDoc now ignores its own output directories. Pull Request #306 by
87
+ Hsing-Hui Hsu, bug #305 by Ryan Davis.
88
+ * Fixed RDoc::Task no longer uselessly builds documentation when generating
89
+ non-HTML output. Bug #307 by Christina Thompson, pull request #308 by
90
+ Hsing-Hui Hsu
91
+ * Added pointer to font copyright and license information to LEGAL.rdoc.
92
+ Issue #290 by Christian Hofstaedtler.
93
+ * Fixed RDoc::Context#<=> for ruby trunk. Issue #284 by Hanmac, pull
94
+ request #287 by Aaron Patterson
95
+ * Tests no longer create directories inside test/. Pull request #286 by
96
+ Kouhei Sutou.
97
+ * Fixed documentation example in RDoc::Markup. Pull request #292 by Gregory
98
+ Brown.
99
+ * Applied typo fix to RDoc::Markup. Pull request #297 by @montanalow
100
+ * Fixed pretty_print for RDoc::MethodAttr with an alias. Pull request #324
101
+ by Hsing-Hui Hsu.
102
+ * Fixed lexing of %w"". Issue #315 by Thierry Lambert, pull request #323 by
103
+ Jeremy Evans.
104
+ * RDoc::TokenStream now removes nil tokens. Pull request #318 by Calle
105
+ Erlandsson.
106
+ * Fixed footer links to rubyforge and darkfish. Pull request #328 by
107
+ @blackwinter
108
+ * Fixed page-top link. Pull request #329 by @blackwinter
109
+ * Minitest gem activation failures are now ignored during test startup.
110
+ Issue #313 by Vít Ondruch.
111
+ * Fixed error when generating documentation from singleton classes. Issue
112
+ #311 by Vít Ondruch.
113
+ * Splat and keyword params can now be detected for documentation
114
+ completeness. Issue #321 Tom Kadwill.
115
+ * Standalone anchors in markdown documents are no longer escaped. Issue
116
+ #312 by Scott Thompson.
117
+ * Fixed RegExp matching stack overflow on Ruby 1.8.7. Issue #327 by sshao.
118
+
119
+ === 4.1.2 / 2014-09-05
120
+
121
+ * Bug fixes
122
+ * Updated vendored jQuery to 1.6.4. Bug ruby/ruby#711 by @neuralme
123
+
124
+ === 4.1.1 / 2014-01-09
125
+
126
+ * Bug fixes
127
+ * Fixed reporting of undocumented method parameters when including when
128
+ yield and &block are present. Pull request #281 by Victor Bilyk.
129
+ * Fixed merging of rd-style and hash-style comments at the top of a file.
130
+ Bug #266 by Zachary Scott.
131
+ * Fixed Document-attr in the C parser. Bug #271 by Hanmac.
132
+ * Removed duplicated condition in superclass fixup. Pull request #282 by
133
+ Benoit Daloze.
134
+
135
+ === 4.1.0 / 2013-12-26
136
+
137
+ * Notable changes
138
+ * Improved accessibility of HTML output. Accessibility review was provided
139
+ by:
140
+
141
+ Techvision – http://www.techvision.net.in
142
+
143
+ The accessibility consultants in Pune, India
144
+
145
+ * The look of RDoc has been updated.
146
+
147
+ * Minor enhancements
148
+ * RDoc can now link to [], []=, << and >> methods. Pull request #202 by
149
+ Jeremy Evans, Bug # 191 by by Zachary Scott.
150
+ * Added RDoc::Options#output_decoration which controls header labels for
151
+ HTML output. Pull Request #199 by Zachary Scott.
152
+ * Added --template-stylesheets options to RDoc to allow specification of
153
+ alternate stylesheets. Pull request #205 by Zachary Scott.
154
+ * Improved performance of the Markdown and RD parsers. Pull request #217 by
155
+ Ryan Davis.
156
+ * <code>rdoc -v</code> now prints the version instead of enabling verbose
157
+ mode. Pull request #201 by Lee Jarvis.
158
+ * Running <code>rake newb</code> now automatically installs development
159
+ dependencies if the parser files haven't been built. Pull request #235 by
160
+ Kouhei Sutou.
161
+ * Moved old DEVELOPERS file to CONTRIBUTING to match github conventions.
162
+ * TomDoc output now has a "Returns" heading. Issue #234 by Brian Henderson
163
+ * Metaprogrammed methods can now use the :args: directive in addition to the
164
+ :call-seq: directive. Issue #236 by Mike Moore.
165
+ * Sections can be linked to using "@" like labels. If a section and a label
166
+ have the same name the section will be preferred. Issue #233 by Brian
167
+ Henderson.
168
+ * Files that come with a template are hard-linked to save space. Issue #186
169
+ by Vít Ondruch.
170
+
171
+ * Bug fixes
172
+ * Applied typo fixes by @dvsuresh from ruby/ruby@2c5dcdf
173
+ * Restored behavior of --no-pager alias -T. Pull request #223 by ruafozy.
174
+ * Fixed extra whitespace output in the rdoc coverage report. Bug #210 by
175
+ Ryan Davis.
176
+ * RDoc no longer documents its timestamp file when run on an empty
177
+ directory. Bug #212 by Rainer Keller
178
+ * HTML escape method names in the table of contents. Bug #219 by Akinori
179
+ MUSHA.
180
+ * Character literals <code>?h</code> now create a new token type to prevent
181
+ loss of the "?" in output. Bug #220 by Vipul A M.
182
+ * When looking up a method that does not exist, ri escapes the regular
183
+ expression for fallback searches. Bug #227 by Aaron Patterson.
184
+ * The ri generator now writes the class method data after +module_function+.
185
+ Bug #222 by Zachary Scott, Ruby bug #8225 by David Unric.
186
+ * ri now handles missing ri data files. Bug #222 by Zachary Scott, Ruby bug
187
+ #8225 by David Unric.
188
+ * Added TomDoc to the supported markup formats section of rdoc --help.
189
+ Bug #214 by Ryan Davis.
190
+ * Fixed documented? check for classes which indicated incorrect 100%
191
+ coverage. Bug #211 by Ryan Davis.
192
+ * An :enddoc: at the top level stops all further parsing. Bug #213 by Ryan
193
+ Davis.
194
+ * Improved handling of multiline call-seq. Bug #207 by Erik Hollensbe.
195
+ * Fixed text that is missing whitespace for TomDoc. Bug #248 by Noel Cower.
196
+ * The RDoc methods now store the method they are aliased to. Bug #206 by
197
+ Jeremy Stephens.
198
+ * Fixed parsing of multiple methods on the same line. Bug #221 by derula.
199
+ * Fixed missing support for images in markdown. Bug #241, pull request #242
200
+ by Zachary Scott.
201
+ * The markdown image fix also added support for images via an rdoc-image:
202
+ scheme. See RDoc::Markup@Links for details. Issue #93 by Tim Pease.
203
+ * Ignore empty call-seq for methods. Improved deduplication of C methods
204
+ sharing the same C function. This allows the method heading to show
205
+ up correctly for String#== and #===. Bug #244 by Neurogami.
206
+ * RDoc no longer adds "http://" to urls without a scheme. Bug #208 by
207
+ Zachary Scott.
208
+ * Improved the error message in the RDoc server when ri data is missing.
209
+ Bug #243, Pull Request #249 by Tadas Tamošauskas.
210
+ * Support ruby 2.0 hash syntax for keywords. Bug #256 by diogocsc.
211
+ * Prevent \\<tag> from escaping the tag in RDoc markup. (\<tag> still
212
+ escapes the tag.) Bug #251 by Pablo Bianciotto.
213
+ * Fixed lexing of escaped characters in strings which could cause
214
+ duplication of the final characters in source code view. Bug #252 by Mike
215
+ Stok.
216
+ * Disallow invalid tab widths for -w option. Bug reported by Charles
217
+ Hixson.
218
+ * rb_file_const() now adds constants to File::Constants when used outside
219
+ file.c. Fixes missing File::Constants::FNM_* constants in ruby.
220
+ * Fixed handling of :markup: when the file parser is unknown. Issue #262 by
221
+ Brian Henderson, pull request #269 by Rein Henrichs.
222
+ * Regexp options are no longer stripped in HTML output. Bug #259 by Zachary
223
+ Scott, Pull request #265 by Rein Henrichs
224
+
225
+ === 4.0.1 / 2013-03-27
226
+
227
+ * Bug fixes
228
+ * RDoc::Options parser should rescue from OptionParser::ParseError.
229
+ * Updated example of RDoc::Options to include reopening RDoc::Options.
230
+ Pointed out by Michael Granger
231
+ * Moved RubyGems documentation installed message into RDoc hook. For
232
+ RubyGems bug #469 by Jeff Sandberg
233
+ * An Error is now raised when a heredoc is not terminated. Fixes exceptions
234
+ when processing comment blocks. Reported by darix
235
+ * rdoc --quiet --no-ignore-invalid now exits for invalid options. Pull
236
+ request #192 by Jeremy Evans
237
+ * RDoc::Parser::C no longer ignores a (METHOD) cast in rb_define_method.
238
+ Pull request #184 by Carlos Agarie
239
+ * RDoc::Servlet no longer ignores extra directories from -d. Pull request
240
+ #173 by Thomas Leitner
241
+ * Fixed `rdoc --ri-site`. Bug #193 by Michal Papis.
242
+ * RDoc no longer attempts to parse binary files. Bug #189 by postmodern,
243
+ Bug #190 by Christoffer Lervåg, Bug #195 by Aaron Patterson
244
+ * `rdoc --pipe` output now contains <code></code> for markdown compliance.
245
+ * RDoc no longer leaves emacs-style modelines in .txt, .md or .rd files.
246
+ Bug #178 by Zachary Scott
247
+ * RDoc no longer puts raw markup in HTML output for markdown input. Bug
248
+ #204 by Erik Hollensbe
249
+ * Code objects with nodoc are no longer included in the ri store. Bug #177
250
+ by Thomas Leitner.
251
+ * Text#snippet now creates a RDoc::Markup::ToHtmlSnippet correctly.
252
+ * The C parser now de-duplicates call-seq if the same C function is used for
253
+ multiple method names. Bug #203 by Pete Higgins
254
+
255
+ === 4.0.0 / 2013-02-24
256
+
257
+ RDoc 4.0 includes several new features and several breaking changes. The
258
+ changes should not affect users of `rdoc` or `ri`.
259
+
260
+ Notable feature additions are markdown support and an WEBrick servlet that can
261
+ serve HTML from an ri store. (This means that RubyGems 2.0+ no longer needs
262
+ to build HTML documentation when installing gems.)
263
+
264
+ Changes since RDoc 3.12.1:
265
+
266
+ * Breaking changes
267
+ * The default output encoding for RDoc is now UTF-8. Previously RDoc used
268
+ the default external encoding which was determined from your locale.
269
+ Issue #106 by Justin Baker.
270
+ * RDoc::RI::Store is now RDoc::Store so ri data generated by RDoc 4 cannot
271
+ be read by earlier versions of RDoc. RDoc::RI::Store exists as an alias
272
+ of RDoc::Store so ri data from older versions can still be read.
273
+ RDoc::RI::Store will be removed in RDoc 5.
274
+
275
+ Tests that create RDoc::CodeObjects on the fly without wiring them into
276
+ the documentation tree (did not use add_class, add_method, etc.) must be
277
+ updated to use these methods. The documentation tree automatically
278
+ attaches them to the store instance which allows lookups to work
279
+ correctly. Additionally, a new method RDoc::Store#add_file must be used
280
+ instead of RDoc::TopLevel.new. The latter will not be attached to the
281
+ documentation tree.
282
+ * RDoc generators must accept an RDoc::Store and an RDoc::Options in
283
+ initialize. RDoc no longer passes an Array of RDoc::TopLevel objects to
284
+ #generate. Use RDoc::Store#all_files instead.
285
+ * Some markup formatters (RDoc::Markup::To*) now accept an RDoc::Options
286
+ instance as the first argument. Notably, the base class Formatter and
287
+ ToHtml*. (This is not universal due to the difficult at accessing the
288
+ user's options instance deep inside RDoc. A future major release may
289
+ remedy this.)
290
+ * Added new markup nodes and specials that RDoc::Markup::Formatter
291
+ subclasses must handle. If you're using RDoc::Markup::FormatterTestCase
292
+ the new methods you need to add should be readily apparent.
293
+ * Removed RDoc::RI::Paths::SYSDIR and ::SITEDIR. These were hidden
294
+ constants so no breakage is expected. Use RDoc::RI::Paths::system_dir
295
+ and ::site_dir instead.
296
+ * RDoc::RI::Store#modules has been renamed to RDoc::Store#module_names
297
+ to avoid confusion with RDoc::Store#all_modules imported from
298
+ RDoc::TopLevel.
299
+ * RDoc::RDocError has been removed. It was deprecated throughout RDoc 3.
300
+ * ri -f html is no longer supported.
301
+ * Comment definitions in C comments are now only discovered from the first
302
+ line. A colon on a subsequent line won't trigger definition extraction.
303
+ Issue #103, see also
304
+ http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/42942
305
+ * Fixed :stopdoc: for class A::B where A has not been seen. Issue #95 by
306
+ Ryan Davis
307
+ * RDoc::ClassModule#each_ancestor no longer yields itself if there is
308
+ circular ancestry
309
+
310
+ * Major enhancements
311
+ * ri can now show pages (README, etc.)
312
+
313
+ ri rdoc:README
314
+
315
+ Will show the README for the latest version of RDoc. You can specify
316
+ exact gem versions such as "rdoc-4.0:README" or view pages from the
317
+ standard library documentation with "ruby:README".
318
+
319
+ RDoc 3 did not save pages in ri data so you will need to regenerate
320
+ documentation from your gems to use this feature.
321
+ * Added Markdown as a supported format. The markdown format can be set on a
322
+ per-file or per-comment basis with the +:markdown:+ directive like the rd
323
+ and tomdoc formats and on a per-project basis with
324
+ <tt>rdoc --markup markdown --write-options</tt>
325
+ * Removed global state from RDoc. RDoc::Store holds the documentation tree
326
+ and connects the driver to the parsers and generator. This also allows
327
+ documentation parsing and generation for multiple instances, but the rdoc
328
+ command-line tool does not support this.
329
+
330
+ Due to this change RDoc::RDoc.current and RDoc::RDoc.reset no longer
331
+ exist.
332
+
333
+ * Minor enhancements
334
+ * Added --page-dir option to give pretty names for a FAQ, guides, or other
335
+ documentation you write that is not stored in the project root. For
336
+ example, with the following layout:
337
+
338
+ README.txt
339
+ guides/syntax.txt
340
+ guides/conversion.txt
341
+
342
+ Running `rdoc --page-dir guides` will make the files in "guides" appear to
343
+ be at the top level of the project. This means they will appear to exist
344
+ at the top level in HTML output and you can access them with
345
+ `ri your_gem:syntax` and `ri your_gem:conversion`.
346
+ * Added --root for building documentation from outside the source dir.
347
+ * Added current heading and page-top links to HTML headings.
348
+ * Added a ChangeLog parser. It automatically parses files that begin
349
+ with 'ChangeLog'
350
+ * Added a table of contents to the sidebar.
351
+ * RDoc markup format merges adjacent labels in a label or note list into a
352
+ single definition list item for output.
353
+ * RDoc now tracks use of extend. Pull request #118 by Michael Granger.
354
+ * RDoc now tracks methods that use super. Pull request #116 by Erik
355
+ Hollensbe.
356
+ * Added methods ::system_dir, ::site_dir, ::home_dir and ::gem_dir to fetch
357
+ the components of RDoc::RI::Paths.path individually.
358
+ * Added support for rb_file_const.
359
+ * RDoc now processes files in sorted order. Issue #71 by Vít Ondruch
360
+ * RDoc now warns with --verbose when methods are duplicated. Issue #71 by
361
+ Vít Ondruch
362
+ * ri will display documentation for all methods in a class if -a is given.
363
+ Issue #57 by casper
364
+ * The RDoc coverage report will report line information for attributes,
365
+ constants and methods missing documentation. Issue #121 by Zachary Scott
366
+ * RDoc now reports a warning for files that are unreadable due to
367
+ permissions problems.
368
+ * RDoc controls documentation generation for RubyGems 2.0+
369
+
370
+ * Bug fixes
371
+ * Fixed parsing of multibyte files with incomplete characters at byte 1024.
372
+ Ruby bug #6393 by nobu, patch by Nobuyoshi Nakada and Yui NARUSE.
373
+ * Fixed rdoc -E. Ruby Bug #6392 and (modified) patch by Nobuyoshi Nakada
374
+ * Added link handling to Markdown output. Bug #160 by burningTyger.
375
+ * Fixed HEREDOC output for the limited case of a heredoc followed by a line
376
+ end. When a HEREDOC is not followed by a line end RDoc is not currently
377
+ smart enough to restore the source correctly. Bug #162 by Zachary Scott.
378
+ * Fixed parsing of executables with shebang and encoding comments. Bug #161
379
+ by Marcus Stollsteimer
380
+ * RDoc now ignores methods defined on constants instead of creating a fake
381
+ module. Bug #163 by Zachary Scott.
382
+ * Fixed ChangeLog parsing for FFI gem. Bug #165 by Zachary Scott.
383
+ * RDoc now links \#=== methods. Bug #164 by Zachary Scott.
384
+ * Allow [] following argument names for TomDoc. Bug #167 by Ellis Berner.
385
+ * Fixed the RDoc servlet for home and site directories. Bug #170 by Thomas
386
+ Leitner.
387
+ * Fixed references to methods in the RDoc servlet. Bug #171 by Thomas
388
+ Leitner.
389
+ * Fixed debug message when generating the darkfish root page. Pull Request
390
+ #174 by Thomas Leitner.
391
+ * Fixed deletion of attribute ri data when a class was loaded then saved.
392
+ Issue #171 by Thomas Leitner.
393
+ * Fully qualified names for constants declared from the top level are now
394
+ attached to their class or module properly.
395
+ * Fixed table of contents display in HTML output for classes and modules.
396
+ * Incremental ri builds of C files now work. C variable names from previous
397
+ runs are now saved between runs.
398
+ * A word that is directly followed by a multi-word tidy link label no longer
399
+ disappears. (Like <code>text{link}[http://example]</code>)
400
+ * Fixed legacy template support. Pull Request #107 by Justin Baker.
401
+ * An HTML class in a verbatim section no longer triggers ruby parsing.
402
+ Issue #92 by Vijay Dev
403
+ * Improved documentation for setting the default documentation format for
404
+ your ruby project. Issue #94 by Henrik Hodne
405
+ * Fixed handling of LANG in the RDoc::Options tests. Issue #99 by Vít
406
+ Ondruch
407
+ * RDoc no longer quits when given an entry that is not a file or directory.
408
+ Issue #101 by Charles Nutter
409
+ * Fixed bug in syntax-highlighting that would corrupt regular expressions.
410
+ Ruby Bug #6488 by Benny Lyne Amorsen.
411
+ * "class Object" no longer appears in the coverage report if all its methods
412
+ are documented. This suppresses a false positive for libraries that add
413
+ toplevel methods. Pull Request #128 by Zachary Scott.
414
+ * Fixed test_gen_url test name in TestRDocMarkupToHtml. Pull Request #130
415
+ by Zachary Scott.
416
+ * Comment-defined methods ahead of define_method are now discovered. Issue
417
+ #133 by eclectic923
418
+ * Fixed detection of define_method documentation. Issue #138 by Marvin
419
+ Gülker.
420
+ * Fixed lexing of character syntax (<code>?z</code>). Reported by Xavier
421
+ Noria.
422
+ * Add license to gem spec. Issue #144 by pivotalcommon
423
+ * Fixed comment selection for classes. Pull request #146 by pioz
424
+ * Fixed parsing of <code>def self.&() end</code>. Issue #148 by Michael
425
+ Lucy
426
+ * Generated RD parser files are now included in the gem. Issue #145 by
427
+ Marvin Gülker
428
+ * Class and module aliases now create new classes to avoid duplicate names
429
+ in the class list. Issue #143 by Richard Schneeman, Rails Issue #2839
430
+ * RDoc::Markup::Parser now correctly matches indentation of lists when
431
+ multibyte characters are used in the list labels. Issue #140 by
432
+ burningTyger
433
+ * Fixed mangling of email addresses that look like labels. Issue #129 by
434
+ Tobias Koch
435
+ * Classes and modules in a C file may now be created in any order. Issue
436
+ #124 by Su Zhang
437
+ * A metaprogrammed method supports the :args: directive. Issue #100
438
+ * A metaprogrammed method supports the :yields: directive.
439
+ * RDoc will now look for directives up to the end of the line. For example,
440
+ class B < A; end # :nodoc:
441
+ will now hide documentation of B. Issue #125 by Zachary Scott
442
+ * Fixed tokenization of % when it is not followed by a $-string type
443
+ * Fixed display of __END__ in documentation examples in HTML output
444
+ * Fixed tokenization of reserved words used as new-style hash keys
445
+ * RDoc now handles class << $gvar by ignoring the body
446
+ * Fixed parsing of class A:: B.
447
+ * Worked around bug in RDoc::RubyLex where tokens won't be reinterpreted
448
+ after unget_tk.
449
+ * Fixed class << ::Foo writing documentation to /Foo.html
450
+ * Fixed class ::A referencing itself from inside its own namespace.
451
+
452
+ Changes since RDoc 4.0.0.rc.2:
453
+
454
+ * Bug fix
455
+ * Templates now use the correct encoding when generating pages. Issue #183
456
+ by Vít Ondruch
457
+
458
+ === 4.0.0.rc.2 / 2013-02-05
459
+
460
+ * Minor enhancements
461
+ * Added current heading and page-top links to HTML headings.
462
+
463
+ * Bug fixes
464
+ * Fixed an XSS exploit in darkfish.js. This could lead to cookie disclosure
465
+ to third parties. See CVE-2013-0256[rdoc-ref:CVE-2013-0256.rdoc] for full
466
+ details including a patch you can apply to generated RDoc documentation.
467
+ * Fixed parsing of multibyte files with incomplete characters at byte 1024.
468
+ Ruby bug #6393 by nobu, patch by Nobuyoshi Nakada and Yui NARUSE.
469
+ * Fixed rdoc -E. Ruby Bug #6392 and (modified) patch by Nobuyoshi Nakada
470
+ * Added link handling to Markdown output. Bug #160 by burningTyger.
471
+ * Fixed HEREDOC output for the limited case of a heredoc followed by a line
472
+ end. When a HEREDOC is not followed by a line end RDoc is not currently
473
+ smart enough to restore the source correctly. Bug #162 by Zachary Scott.
474
+ * Fixed parsing of executables with shebang and encoding comments. Bug #161
475
+ by Marcus Stollsteimer
476
+ * RDoc now ignores methods defined on constants instead of creating a fake
477
+ module. Bug #163 by Zachary Scott.
478
+ * Fixed ChangeLog parsing for FFI gem. Bug #165 by Zachary Scott.
479
+ * RDoc now links \#=== methods. Bug #164 by Zachary Scott.
480
+ * Allow [] following argument names for TomDoc. Bug #167 by Ellis Berner.
481
+ * Fixed the RDoc servlet for home and site directories. Bug #170 by Thomas
482
+ Leitner.
483
+ * Fixed references to methods in the RDoc servlet. Bug #171 by Thomas
484
+ Leitner.
485
+ * Fixed debug message when generating the darkfish root page. Pull Request
486
+ #174 by Thomas Leitner.
487
+ * Fixed deletion of attribute ri data when a class was loaded then saved.
488
+ Issue #171 by Thomas Leitner.
489
+
490
+ === 4.0.0.preview2.1 / 2012-12-14
491
+
492
+ * Minor enhancements
493
+ * Added --page-dir option to give pretty names for a FAQ, guides, or other
494
+ documentation you write that is not stored in the project root. For
495
+ example, with the following layout:
496
+
497
+ README.txt
498
+ guides/syntax.txt
499
+ guides/conversion.txt
500
+
501
+ Running `rdoc --page-dir guides` will make the files in "guides" appear to
502
+ be at the top level of the project. This means they will appear to exist
503
+ at the top level in HTML output and you can access them with
504
+ `ri your_gem:syntax` and `ri your_gem:conversion`.
505
+
506
+ * Bug fixes
507
+ * Fully qualified names for constants declared from the top level are now
508
+ attached to their class or module properly.
509
+ * Fixed table of contents display in HTML output for classes and modules.
510
+ * Incremental ri builds of C files now work. C variable names from previous
511
+ runs are now saved between runs.
512
+
513
+ === 4.0.0.preview2 / 2012-12-01
514
+
515
+ * Breaking changes
516
+ * The default output encoding for RDoc is now UTF-8. Previously RDoc used
517
+ the default external encoding which was determined from your locale.
518
+ Issue #106 by Justin Baker.
519
+ * RDoc::RI::Store is now RDoc::Store so ri data generated by RDoc 4 cannot
520
+ be read by earlier versions of RDoc. RDoc::RI::Store exists as an alias
521
+ of RDoc::Store so ri data from older versions can still be read.
522
+ RDoc::RI::Store will be removed in RDoc 5.
523
+
524
+ Tests that create RDoc::CodeObjects on the fly without wiring them into
525
+ the documentation tree (did not use add_class, add_method, etc.) must be
526
+ updated to use these methods. The documentation tree automatically
527
+ attaches them to the store instance which allows lookups to work
528
+ correctly. Additionally, a new method RDoc::Store#add_file must be used
529
+ instead of RDoc::TopLevel.new. The latter will not be attached to the
530
+ documentation tree.
531
+ * RDoc generators must accept an RDoc::Store and an RDoc::Options in
532
+ initialize. RDoc no longer passes an Array of RDoc::TopLevel objects to
533
+ #generate. Use RDoc::Store#all_files instead.
534
+ * Some markup formatters (RDoc::Markup::To*) now accept an RDoc::Options
535
+ instance as the first argument. Notably, the base class Formatter and
536
+ ToHtml*. (This is not universal due to the difficult at accessing the
537
+ user's options instance deep inside RDoc. A future major release may
538
+ remedy this.)
539
+ * Added new markup nodes and specials that RDoc::Markup::Formatter
540
+ subclasses must handle. If you're using RDoc::Markup::FormatterTestCase
541
+ the new methods you need to add should be readily apparent.
542
+ * Removed RDoc::RI::Paths::SYSDIR and ::SITEDIR. These were hidden
543
+ constants so no breakage is expected. Use RDoc::RI::Paths::system_dir
544
+ and ::site_dir instead.
545
+ * RDoc::RI::Store#modules has been renamed to RDoc::Store#module_names
546
+ to avoid confusion with RDoc::Store#all_modules imported from
547
+ RDoc::TopLevel.
548
+ * RDoc::RDocError has been removed. It was deprecated throughout RDoc 3.
549
+ * ri -f html is no longer supported.
550
+ * Comment definitions in C comments are now only discovered from the first
551
+ line. A colon on a subsequent line won't trigger definition extraction.
552
+ Issue #103, see also
553
+ http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/42942
554
+ * Fixed :stopdoc: for class A::B where A has not been seen. Issue #95 by
555
+ Ryan Davis
556
+ * RDoc::ClassModule#each_ancestor no longer yields itself if there is
557
+ circular ancestry
558
+
559
+ * Major enhancements
560
+ * ri can now show pages (README, etc.)
561
+
562
+ ri rdoc:README
563
+
564
+ Will show the README for the latest version of RDoc. You can specify
565
+ exact gem versions such as "rdoc-4.0:README" or view pages from the
566
+ standard library documentation with "ruby:README".
567
+
568
+ RDoc 3 did not save pages in ri data so you will need to regenerate
569
+ documentation from your gems to use this feature.
570
+ * Added Markdown as a supported format. The markdown format can be set on a
571
+ per-file or per-comment basis with the +:markdown:+ directive like the rd
572
+ and tomdoc formats and on a per-project basis with
573
+ <tt>rdoc --markup markdown --write-options</tt>
574
+ * Removed global state from RDoc. RDoc::Store holds the documentation tree
575
+ and connects the driver to the parsers and generator. This also allows
576
+ documentation parsing and generation for multiple instances, but the rdoc
577
+ command-line tool does not support this.
578
+
579
+ Due to this change RDoc::RDoc.current and RDoc::RDoc.reset no longer
580
+ exist.
581
+
582
+ * Minor enhancements
583
+ * Added --root for building documentation from outside the source dir.
584
+ * Added a ChangeLog parser. It automatically parses files that begin
585
+ with 'ChangeLog'
586
+ * Added a table of contents to the sidebar.
587
+ * RDoc markup format merges adjacent labels in a label or note list into a
588
+ single definition list item for output.
589
+ * RDoc now tracks use of extend. Pull request #118 by Michael Granger.
590
+ * RDoc now tracks methods that use super. Pull request #116 by Erik
591
+ Hollensbe.
592
+ * Added methods ::system_dir, ::site_dir, ::home_dir and ::gem_dir to fetch
593
+ the components of RDoc::RI::Paths.path individually.
594
+ * Added support for rb_file_const.
595
+ * RDoc now processes files in sorted order. Issue #71 by Vít Ondruch
596
+ * RDoc now warns with --verbose when methods are duplicated. Issue #71 by
597
+ Vít Ondruch
598
+ * ri will display documentation for all methods in a class if -a is given.
599
+ Issue #57 by casper
600
+ * The RDoc coverage report will report line information for attributes,
601
+ constants and methods missing documentation. Issue #121 by Zachary Scott
602
+ * RDoc now reports a warning for files that are unreadable due to
603
+ permissions problems.
604
+ * RDoc controls documentation generation for RubyGems 2.0+
605
+
606
+ * Bug fixes
607
+ * A word that is directly followed by a multi-word tidy link label no longer
608
+ disappears. (Like <code>text{link}[http://example]</code>)
609
+ * Fixed legacy template support. Pull Request #107 by Justin Baker.
610
+ * An HTML class in a verbatim section no longer triggers ruby parsing.
611
+ Issue #92 by Vijay Dev
612
+ * Improved documentation for setting the default documentation format for
613
+ your ruby project. Issue #94 by Henrik Hodne
614
+ * Fixed handling of LANG in the RDoc::Options tests. Issue #99 by Vít
615
+ Ondruch
616
+ * RDoc no longer quits when given an entry that is not a file or directory.
617
+ Issue #101 by Charles Nutter
618
+ * Fixed bug in syntax-highlighting that would corrupt regular expressions.
619
+ Ruby Bug #6488 by Benny Lyne Amorsen.
620
+ * "class Object" no longer appears in the coverage report if all its methods
621
+ are documented. This suppresses a false positive for libraries that add
622
+ toplevel methods. Pull Request #128 by Zachary Scott.
623
+ * Fixed test_gen_url test name in TestRDocMarkupToHtml. Pull Request #130
624
+ by Zachary Scott.
625
+ * Comment-defined methods ahead of define_method are now discovered. Issue
626
+ #133 by eclectic923
627
+ * Fixed detection of define_method documentation. Issue #138 by Marvin
628
+ Gülker.
629
+ * Fixed lexing of character syntax (<code>?z</code>). Reported by Xavier
630
+ Noria.
631
+ * Add license to gem spec. Issue #144 by pivotalcommon
632
+ * Fixed comment selection for classes. Pull request #146 by pioz
633
+ * Fixed parsing of <code>def self.&() end</code>. Issue #148 by Michael
634
+ Lucy
635
+ * Generated RD parser files are now included in the gem. Issue #145 by
636
+ Marvin Gülker
637
+ * Class and module aliases now create new classes to avoid duplicate names
638
+ in the class list. Issue #143 by Richard Schneeman, Rails Issue #2839
639
+ * RDoc::Markup::Parser now correctly matches indentation of lists when
640
+ multibyte characters are used in the list labels. Issue #140 by
641
+ burningTyger
642
+ * Fixed mangling of email addresses that look like labels. Issue #129 by
643
+ Tobias Koch
644
+ * Classes and modules in a C file may now be created in any order. Issue
645
+ #124 by Su Zhang
646
+ * A metaprogrammed method supports the :args: directive. Issue #100
647
+ * A metaprogrammed method supports the :yields: directive.
648
+ * RDoc will now look for directives up to the end of the line. For example,
649
+ class B < A; end # :nodoc:
650
+ will now hide documentation of B. Issue #125 by Zachary Scott
651
+ * Fixed tokenization of % when it is not followed by a $-string type
652
+ * Fixed display of __END__ in documentation examples in HTML output
653
+ * Fixed tokenization of reserved words used as new-style hash keys
654
+ * RDoc now handles class << $gvar by ignoring the body
655
+ * Fixed parsing of class A:: B.
656
+ * Worked around bug in RDoc::RubyLex where tokens won't be reinterpreted
657
+ after unget_tk.
658
+ * Fixed class << ::Foo writing documentation to /Foo.html
659
+ * Fixed class ::A referencing itself from inside its own namespace.
660
+
661
+ === 3.12.2 / 2013-02-24
662
+
663
+ * Bug fixes
664
+ * Fixed bug in syntax-highlighting that would corrupt regular expressions.
665
+ Ruby Bug #6488 by Benny Lyne Amorsen.
666
+ * Fixed lexing of character syntax (<code>?x</code>). Reported by Xavier
667
+ Noria.
668
+ * Fixed tokenization of % when it is not followed by a $-string type
669
+ * Fixed display of __END__ in documentation examples in HTML output
670
+ * Fixed tokenization of reserved words used as new-style hash keys
671
+ * Fixed HEREDOC output for the limited case of a heredoc followed by a line
672
+ end. When a HEREDOC is not followed by a line end RDoc is not currently
673
+ smart enough to restore the source correctly. Bug #162 by Zachary Scott.
674
+
675
+ === 3.12.1 / 2013-02-05
676
+
677
+ * Bug fixes
678
+ * Fixed an XSS exploit in darkfish.js. This could lead to cookie disclosure
679
+ to third parties. See CVE-2013-0256[rdoc-ref:CVE-2013-0256.rdoc] for full
680
+ details including a patch you can apply to generated RDoc documentation.
681
+ * Ensured that rd parser files are generated before checking the manifest.
682
+
683
+ === 3.12 / 2011-12-15
684
+
685
+ * Minor enhancements
686
+ * Added DEVELOPERS document which contains an overview of how RDoc works and
687
+ how to add new features to RDoc.
688
+ * Improved title for HTML output to include <code>--title</code> in the
689
+ title element.
690
+ * <code>rdoc --pipe</code> now understands <code>--markup</code>.
691
+ * RDoc now supports IRC-scheme hyperlinks. Issue #83 by trans.
692
+
693
+ * Bug fixes
694
+ * Fixed title on HTML output for pages.
695
+ * Fixed parsing of non-indented HEREDOC.
696
+ * Fixed parsing of <code>%w[]</code> and other % literals. Issue #84 by
697
+ Erik Hollensbe
698
+ * Fixed arrow replacement in HTML output munging the spaceship operator.
699
+ Issue #85 by eclectic923.
700
+ * Verbatim sections with ERB that match the ruby code whitelist are no
701
+ longer syntax-highlighted. Issue #86 by eclectic923
702
+ * Line endings on windows are normalized immediately after reading with
703
+ binmode. Issue #87 by Usa Nakamura
704
+ * RDoc better understands directives for comments. Comment directives can
705
+ now be found anywhere in multi-line comments. Issue #90 by Ryan Davis
706
+ * Tidy links to methods show the label again. Issue #88 by Simon Chiang
707
+ * RDoc::Parser::C can now find comments directly above
708
+ +rb_define_class_under+. Issue #89 by Enrico
709
+ * In rdoc, backspace and ansi formatters, labels and notes without bodies
710
+ are now shown.
711
+ * In rdoc, backspace and ansi formatters, whitespace between label or note
712
+ and the colon is now stripped.
713
+
714
+ === 3.11 / 2011-10-17
715
+
716
+ * Bug fixes
717
+ * Avoid parsing TAGS files included in gems. Issue #81 by Santiago
718
+ Pastorino.
719
+
720
+ === 3.10 / 2011-10-08
721
+
722
+ * Major enhancements
723
+ * RDoc HTML output has been improved:
724
+ * The search from Володя Колесников's (Vladimir Kolesnikov) SDoc has been
725
+ integrated.
726
+
727
+ The search index generation is a reusable component through
728
+ RDoc::Generator::JsonIndex
729
+ * The table of contents is now a separate page and now shows links to
730
+ headings and sections inside a page or class.
731
+ * Class pages no longer show the namespace and no longer have file info
732
+ pages.
733
+ * HTML output is HTML 5.
734
+ * Static files can be copied into RDoc using --copy-files
735
+ * RDoc supports additional documentation formats:
736
+ * TomDoc 1.0.0-rc1
737
+ * RD format
738
+
739
+ The default markup can be set via the <tt>--markup</tt> option.
740
+
741
+ The format of documentation in a particular file can be specified by the
742
+ +:markup:+ directive. If the +:markup:+ directive is in the first comment
743
+ it is used as the default for the entire file. For other comments it
744
+ overrides the default markup format.
745
+
746
+ The markup format can be set for rake tasks using RDoc::Task#markup
747
+ * RDoc can save and load an options file.
748
+
749
+ To create an options file that defaults to using TomDoc markup run:
750
+
751
+ rdoc --markup tomdoc --write-options
752
+
753
+ This will create a .rdoc_options file. Check it in to your VCS and
754
+ package it with your gem. RDoc will automatically load this file and
755
+ combine it with the user's options.
756
+
757
+ Some options are not saved. See RDoc::Options@Saved+Options for full
758
+ details.
759
+
760
+ * Minor enhancements
761
+ * RDoc autoloads everything. You only need to require 'rdoc' now.
762
+ * HTML headings now have ids matching their titles.
763
+
764
+ = Hello!
765
+
766
+ Is rendered as
767
+
768
+ <h1 id="label-Hello%21">Hello!</h1>
769
+
770
+ * Labels for classes or methods can be linked-to by adding an <tt>@</tt>
771
+ following the class or method reference. For example,
772
+ <tt>RDoc::Markup@Links</tt>
773
+
774
+ See RDoc::Markup@Links for further details.
775
+ * For HTML output RDoc uses +SomeClass.method_name+ and
776
+ +SomeClass#method_name+ for remote methods and attributes and
777
+ +::method_name+ and +#method_name+ for local methods.
778
+ * RDoc makes an effort to syntax-highlight ruby code in verbatim sections.
779
+ See RDoc::Markup@Paragraphs+and+Verbatim
780
+ * Added RDoc::TopLevel#text? and RDoc::Parser::Text to indicate a
781
+ parsed file contains no ruby constructs.
782
+ * Added <tt>rdoc-label</tt> link scheme which allows bidirectional links.
783
+ See RDoc::Markup for details.
784
+ * Image paths at HTTPS URLs will now be turned into +<img>+ tags. Pull
785
+ Request #60 by James Mead
786
+ * Added RDoc::Comment which encapsulates comment-handling functionality.
787
+ * Added RDoc::Markup::PreProcess::post_process to allow arbitrary comment
788
+ munging.
789
+ * RDoc::RDoc::current is set for the entire RDoc run.
790
+ * Split rdoc/markup/inline into individual files for its component classes.
791
+ * Moved token stream HTML markup out of RDoc::AnyMethod#markup_code into
792
+ RDoc::TokenStream::to_html
793
+ * "Top" link in section headers is no longer inside the heading element.
794
+ * RDoc avoids printing some warnings unless run with `rdoc --verbose`. For
795
+ Rails issue #1646.
796
+ * Finishing a paragraph with two or more spaces will result in a line break.
797
+ This feature is experimental and may be modified or removed.
798
+
799
+ * Bug fixes
800
+ * Markup defined by RDoc::Markup#add_special inside a <tt><tt></tt> is no
801
+ longer converted.
802
+ * Performance of RDoc::RubyLex has been improved. Ruby Bug #5202 by Ryan
803
+ Melton.
804
+ * Add US-ASCII magic comments to work with <tt>ruby -Ku</tt>. Issue #63 by
805
+ Travis D. Warlick, Jr.
806
+ * Clicking a link in the method description now works. Issue #61 by Alan
807
+ Hogan.
808
+ * Fixed RDoc::Markup::Parser for CRLF line endings. Issue #67 by Marvin
809
+ Gülker.
810
+ * Fixed lexing of percent strings like %r{#}. Issue #68 by eclectic923.
811
+ * The C parser now understands classes defined with
812
+ +rb_struct_define_without_accessor+ (like Range). Pull Request #73 by Dan
813
+ Bernier
814
+ * Fixed lexing of <code>a b <<-HEREDOC</code>. Issue #75 by John Mair.
815
+ * Added LEGAL.rdoc with references to licenses in other files. Issue #78 by
816
+ Dmitry Jemerov.
817
+ * Block parameters are displayed in Darkfish output again. Issue #76 by
818
+ Andrea Singh.
819
+ * The method parameter coverage report no longer includes parameter default
820
+ values. Issue #77 by Jake Goulding.
821
+ * The module for an include is not looked up until parsed all the files are
822
+ parsed. Unless your project includes nonexistent modules this avoids
823
+ worst-case behavior (<tt>O(n!)</tt>) of RDoc::Include#module.
824
+
825
+ === 3.9.5 / 2013-02-05
826
+
827
+ * Bug fixes
828
+ * Fixed an XSS exploit in darkfish.js. This could lead to cookie disclosure
829
+ to third parties. See CVE-2013-0256.rdoc for full details including a
830
+ patch you can apply to generated RDoc documentation.
831
+
832
+ === 3.9.4 / 2011-08-26
833
+
834
+ * Bug fixes
835
+ * Applied typo and grammar fixes from Luke Gruber. Ruby bug #5203
836
+
837
+ === 3.9.3 / 2011-08-23
838
+
839
+ * Bug fixes
840
+ * Add US-ASCII magic comments to work with <tt>ruby -Ku</tt>. Issue #63 by
841
+ Travis D. Warlick, Jr.
842
+ * Image paths at HTTPS URLs are now turned into +<img>+ tags. Pull
843
+ Request #60 by James Mead
844
+ * Markup defined by RDoc::Markup#add_special inside a <tt><tt></tt> is no
845
+ longer converted.
846
+
847
+ === 3.9.2 / 2011-08-11
848
+
849
+ * Bug fix
850
+ * Loosened TIDYLINK regexp to allow any content in the link section like:
851
+ <tt>{foo}[rdoc-ref:SomeClass]</tt>
852
+ * In HTML output headings are capped at <tt><h6></tt> again
853
+
854
+ === 3.9.1 / 2011-07-31
855
+
856
+ * Bug fixes
857
+ * Fix RDoc::Markup parser for a header followed by a non-text token. Issue
858
+ #56 by Adam Tait
859
+ * Fix RDoc::Markup::ToHtmlCrossref#gen_url for non-<tt>rdoc-ref</tt> links.
860
+ * Fix bug report URL when rdoc crashes.
861
+
862
+ === 3.9 / 2011-07-30
863
+
864
+ * Minor enhancements
865
+ * RDoc::Parser::C now supports :doc: and :nodoc: for class comments
866
+ * Added the <tt>rdoc-ref:</tt> link scheme which links to a named reference.
867
+ <tt>rdoc-ref:</tt> can resolve references to classes, modules, methods,
868
+ files, etc. This can be used to create cross-generator named links unlike
869
+ the <tt>link:</tt> scheme which is dependent upon the exact file name.
870
+ Issue #53 by Simon Chiang
871
+ * Pulled RDoc::CrossReference out of RDoc::Markup::ToHtmlCrossref.
872
+ Cross-references can now be created easily for non-HTML formatters.
873
+ * Bug fixes
874
+ * `ri []` and other special methods now work properly. Issue #52 by
875
+ ddebernardy.
876
+ * `ri` now has space between class comments from multiple files.
877
+ * :stopdoc: no longer creates Object references. Issue #55 by Simon Chiang
878
+ * :nodoc: works on class aliases now. Issue #51 by Steven G. Harms
879
+ * Remove tokenizer restriction on header lengths for verbatim sections.
880
+ Issue #49 by trans
881
+
882
+ === 3.8 / 2011-06-29
883
+
884
+ * Minor enhancements
885
+ * RDoc::Parser::C can now discover methods on ENV and ARGF.
886
+ * RDoc::Parser::C now knows about rb_cSocket and rb_mDL.
887
+ * Bug fixes
888
+ * Updating Object in an ri data store with new data now removes methods,
889
+ includes, constants and aliases.
890
+
891
+ === 3.7 / 2011-06-27
892
+
893
+ * Minor enhancements
894
+ * New directive :category: which allows methods to be grouped into sections
895
+ more cleanly. See RDoc::Markup for details.
896
+ * Document-class for RDoc::Parser::C now supports Foo::CONST as well as
897
+ CONST.
898
+ * ri method output is now a comma-separated list when displayed
899
+ interactively. Pull Request #39 by Benoit Daloze.
900
+ * RDoc::ClassModule#merge now prefers the argument's information over the
901
+ receiver's (it now behaves like Hash#merge! instead of a backwards
902
+ Hash#merge!).
903
+ * RDoc::Markup#convert now accepts an RDoc::Markup::Document instance
904
+ * RDoc now owns the code for generating RDoc and ri data when gems install
905
+ * Added RDoc::RDoc::reset
906
+ * Added RDoc::CodeObject#file_name
907
+ * Bug fixes
908
+ * ri no longer crashes when attempting to complete a plain [.
909
+ * ri data now tracks which file information came from so it can process
910
+ removals and changes to:
911
+ * Classes and Modules
912
+ * Methods
913
+ * Attributes
914
+ * Includes
915
+ * Constants
916
+ You will need to rebuild your ri data for it to update properly. Issue
917
+ #21 by Sven Riedel
918
+ * Signal and SignalException no longer clobber each other
919
+ * RDoc::Parser::C no longer creates classes when processing aliases.
920
+ * RDoc::Text#strip_stars handles Document-method for methods with =, ! and ?
921
+ now.
922
+ * RDoc::Parser::C now allows .cpp files to be used with the "in" comment on
923
+ rb_define_method. Bug #35 by Hanmac.
924
+ * RDoc::Parser::Ruby no longer eats content when =begin/=end documentation
925
+ blocks are followed by a documentable item. Issue #41 by mfn.
926
+ * RDoc::Markup::Formatter and subclasses now allow an optional +markup+
927
+ parameter for adding custom markup. The example in
928
+ RDoc::Markup::Formatter will now work. Issue #38 by tsilen.
929
+ * RDoc::Parser::C can now distinguish between class methods and instance
930
+ methods in Document-method. Issue #36 by Vincent Batts.
931
+ * RDoc now encodes file names in the output encoding. Issue #33 by Perry
932
+ Smith.
933
+ * ri data generation for method aliases no longer duplicates the class in
934
+ #full_name
935
+
936
+ === 3.6.1 / 2011-05-15
937
+
938
+ * Bug fixes
939
+ * Fix infinite loop created when re-encountering BasicObject.
940
+ * RDoc::Context#each_ancestor is now provided for duck-typing.
941
+ * rb_path2class() can now be used to discover the parent class in
942
+ rb_define_class_under.
943
+
944
+ === 3.6 / 2011-05-13
945
+
946
+ * Major Enhancements
947
+ * Interactive ri is now the default when no names are given.
948
+ * Minor Enhancements
949
+ * RDoc::RDoc#generate was added to allow multiple generators to be used with
950
+ a set of parsed file info.
951
+ * RDoc::Options#finish can be called multiple times now.
952
+ * `ri -i` only shows one level of namespace when completing class names.
953
+ * Added `ri --list` for explicit listing. `ri -l F G` will list all classes
954
+ or modules starting with F or G
955
+ * Bug fixes
956
+ * Remove windows-specific test for test_check_files, it is too hard to do.
957
+ Ruby commit r30811 by Usaku Nakamura.
958
+ * Remove unnecessary (and wrong) platform-dependent hacks. Ruby commit
959
+ r30829 by Usaku Nakamura.
960
+ * Completing via Array#[ in `ri -i` no longer crashes. Ruby Bug #3167
961
+ * Completing IO::o in `ri -i` now returns results. Ruby Bug #3167
962
+ * RDoc::Parser::C ignores prototypes better. Pull Request #34 by Pete
963
+ Higgins.
964
+ * private_class_method and public_class_method are now parsed correctly for
965
+ inherited methods. Issue #16 by gitsucks.
966
+ * The doc directive now forces documentation even when the method is marked
967
+ private or protected.
968
+
969
+ === 3.5.3 / 2010-02-06
970
+
971
+ * Bug fixes
972
+ * When including a file perform a lossy force-transcoding to the output
973
+ encoding instead of crashing to preserve as much content as possible.
974
+ Ruby Bug #4376 by Yui NARUSE.
975
+ * Work around inconsistent encoding result from String#sub!, String#gsub!.
976
+ Related to Ruby Bug #4376.
977
+ * Work around inconsistent encoding result from String#[]=. Related to Ruby
978
+ Bug #4376.
979
+ * When Darkfish fails the file being generated is now reported.
980
+
981
+ === 3.5.2 / 2010-02-04
982
+
983
+ * Deprecations
984
+ * RDoc::Context::Section#sequence is now deprecated. Use
985
+ RDoc::Context::Section#aref instead.
986
+
987
+ * Bug fixes
988
+ * Fixed syntax highlighting CSS class generation. Reported by Daniel
989
+ Bretoi.
990
+ * Fixed ri for methods with aliases. Pull Request #15 by Sven Riedel.
991
+ * Added windows-specific test for test_check_files.
992
+ * Darkfish now supports sections. Template and generator author see
993
+ RDoc::Context#each_section to add section support. RubyForge Bug #26883
994
+ by Jeff Hodges.
995
+ * Fixed post-install message for Ruby 1.9.2 users.
996
+ * Set required ruby version to >= 1.8.7.
997
+
998
+ === 3.5.1 / 2010-01-30
999
+
1000
+ * Bug fixes
1001
+ * Fixed some typos. Pull request #13 by R.T. Lechow.
1002
+ * Ensure an RDoc::Stats is created in #parse_files. Fixes documentation for
1003
+ railties which has no files. Reported by Aaron Patterson
1004
+
1005
+ === 3.5 / 2010-01-29
1006
+
1007
+ * Minor enhancements
1008
+ * RDoc::Parser::C looks for rb_scan_args and fills in RDoc::AnyMethod#params
1009
+ appropriately. This may provide useful information if the author did not
1010
+ provide a call-seq.
1011
+ * RDoc::Parser::C now records the function name for methods implemented in
1012
+ C.
1013
+ * RDoc now records file and byte offset information for methods.
1014
+ * Bug fixes
1015
+ * Locations of module aliases are now recorded.
1016
+ * RDoc::Parser::C finds method bodies better now.
1017
+ * Fixed further locations where output encoding was not preserved. Bug #11
1018
+ by Vít Ondruch, RubyForge bug #28791 by Dzmitry Prakapenka.
1019
+ * Fixed display of numeric lists on the index page and file pages. Bug #12
1020
+ by tobijk.
1021
+ * Skip TestRDocOptions#test_check_files on windows until a windows-specific
1022
+ test can be created. RubyForge bug #28821 by Usaku Nakamura.
1023
+ * Fixed line-height of headings in method and alias descriptions. RubyForge
1024
+ Bug #2770 by Adam Avilla
1025
+ * Relaxed RDoc::Parser::Ruby#remove_private_comments to consume more dashes
1026
+ as older versions once did. Bug #7 by Claus Folke Brobak.
1027
+
1028
+ === 3.4 / 2010-01-06
1029
+
1030
+ * Minor enhancements
1031
+ * RDoc::RDoc#document may now be called with an RDoc::Options instance.
1032
+ * Bug fixes
1033
+ * Added skips to Encoding tests running on 1.8.
1034
+ * Fixed warnings
1035
+
1036
+ === 3.3 / 2010-01-03
1037
+
1038
+ * Minor enhancements
1039
+ * The coverage report can now report undocumented method parameters
1040
+ including methods defined in C.
1041
+
1042
+ <kbd>rdoc -C</kbd> gives a standard report, <kbd>rdoc -C1</kbd> includes
1043
+ method parameters. Method parameters are considered documented if they're
1044
+ marked-up with <tt>+</tt>, <tt><code></tt> or <code><tt></code>.
1045
+ * The C parser now uses <tt>*args</tt> instead of <tt>...</tt> if no
1046
+ <tt>call-seq</tt> was provided to give names to the arguments.
1047
+ * Bug fixes
1048
+ * The C parser now records the file location of aliases, attributes,
1049
+ constants and methods allowing -C to work on C files.
1050
+ * Darkfish now handles dots in call-seq allowing <tt>ary.insert(index,
1051
+ obj...)</tt> to display correctly. Patch #6 by KUBO Takehiro.
1052
+ * Improved processing of meta-programmed methods when followed by unparseable
1053
+ syntax. RubyForge patch #28653 by Aidan Cully.
1054
+ * rdoc now touches the flag file when it create the output directory.
1055
+ Prevents the "isn't an RDoc directory" error if rdoc crashes.
1056
+ * RDoc now properly converts to the expected output encoding. RubyForge bug
1057
+ #28791 by Dzmitry Prakapenka.
1058
+ * Restored parsing of block comments. RubyForge bug #28668 by Stefano Crocco.
1059
+ * Metaprogrammed methods defined with blocks no longer confuse the ruby
1060
+ parser. RubyForge bug #28370 by Erik Hollensbe.
1061
+ * ri no longer displays all methods in the inheritance chain.
1062
+
1063
+ === 3.2 / 2010-12-29
1064
+
1065
+ * Minor enhancements
1066
+ * RDoc generator authors may now suppress updating the output dir (creating
1067
+ a created.rid file) by setting RDoc::Options#update_output_dir to false.
1068
+ * RDoc::Task has been refactored to ease creating subclasses.
1069
+ * Bug fixes
1070
+ * RDoc's gitignore now ignores .DS_Store files. Pull Request #3 by Shane
1071
+ Becker.
1072
+
1073
+ === 3.1 / 2010-12-28
1074
+
1075
+ RDoc has moved to github. Releases after 3.1 reference github unless
1076
+ otherwise noted.
1077
+
1078
+ * Minor enhancements
1079
+ * RDoc::Task now features a #generator option to choose an alternate
1080
+ generator. Pull Request #2 by Erik Hollensbe.
1081
+ * Enhanced test for RDoc::Parser::binary? RubyForge patch #28538 by Eito
1082
+ Katagiri.
1083
+ * Generator list in --help is no longer static. Generator description comes
1084
+ from the generator's DESCRIPTION constant.
1085
+ * Documentation summary is now displayed with dynamic width.
1086
+ * Bug fixes
1087
+ * Strip encoding comment from input to avoid overriding file comment.
1088
+ RubyForge Bug #22113 by James Gray.
1089
+ * Restore call-seq parsing behavior when the call-seq is the only comment.
1090
+ RubyForge Bug #26290 by Sylvain Joyeux.
1091
+ * Coverage report no longer crashes for constant aliases. Pull Request #1
1092
+ by Andy Lindeman.
1093
+ * RDoc no longer loses ghost methods when followed by certain tokens.
1094
+ RubyForge bug #27793 by Aaron Patterson.
1095
+ * RDoc no longer crashes in ri if HOME is not set. Ruby Bug #4202 by
1096
+ Shyouhei Urabe.
1097
+ * ri no longer crashes with HTML format output. RubyForge bug #28675 by
1098
+ 7rans.
1099
+ * RDoc::Markup::ToHtml#gen_url now initializes #from_path to ''.
1100
+ Additionally, #from_path is now settable. RubyForge bug #27838 by Claus
1101
+ Folke Brobak.
1102
+ * Comments in the C parser are now normalized before being combined.
1103
+ RubyForge patch #28646 by Sven Herzberg.
1104
+ * RDoc::Parser::C no longer requires a comment and finds more method bodies.
1105
+ RubyForge patch #28643 by Sven Herzberg.
1106
+ * Darkfish now has a "Class/Module Index" instead of a "Class Index".
1107
+ RubyForge patch #28364 by James Tucker.
1108
+ * RDoc::Parser::Ruby now parses negative numbers correctly. RubyForge patch
1109
+ #28544 by Eito Katagiri.
1110
+
1111
+ === 3.0.1 / 2010-12-19
1112
+
1113
+ * Bug fix
1114
+ * RDoc no longer has a Perl parser.
1115
+
1116
+ === 3.0 / 2010-12-19
1117
+
1118
+ Special thanks to Thierry Lambert for massive improvements to RDoc.
1119
+
1120
+ * Major enhancements
1121
+ * Ruby 1.8.6 is no longer supported by RDoc.
1122
+ * RDoc now converts input files to a single encoding specified by
1123
+ <tt>--encoding</tt>. See RDoc::RDoc and RDoc::Options#encoding.
1124
+ <tt>--encoding</tt> is now preferred over <tt>--charset</tt>
1125
+ * RDoc now supports a <tt>--coverage-report</tt> flag (also <tt>-C</tt> and
1126
+ <tt>--dcov</tt>) that outputs a report on items lacking documentation.
1127
+ * Templates (<tt>rdoc -T</tt>) are now checked for existence in
1128
+ RDoc::Options. Generator authors can now use RDoc::Options#template_dir
1129
+ which is the full path to the template directory.
1130
+ * Added support for class aliases. Patch by Thierry Lambert.
1131
+ * Improved merging of classes and modules across multiple files including
1132
+ more accurate documentation statistics. Patch by Thierry Lambert.
1133
+ * Improved handling of method aliases. Patch by Thierry Lambert.
1134
+ * Improved handling of visibility of RDoc code objects. Patch by Thierry
1135
+ Lambert.
1136
+ * RDoc::Attr#type is now RDoc::Attr#definition. Patch by Thierry Lambert.
1137
+ * Removed TimeConstantMethods
1138
+ * RDoc now calls ::new instead of ::for on generators.
1139
+ * Minor enhancements
1140
+ * Added rdoc arguments <tt>--dry-run</tt>, <tt>--all</tt>,
1141
+ <tt>--visibility</tt>, <tt>--force-output</tt>, <tt>--hyperlink-all</tt>.
1142
+ Patch by Thierry Lambert.
1143
+ * RDoc::Markup::FormatterTestCase has been expanded. Patch by Thierry
1144
+ Lambert.
1145
+ * RDoc::Markup::TextFormatterTestCase has been extracted from RDoc tests.
1146
+ Patch by Thierry Lambert.
1147
+ * Various RDoc::Parser::Ruby enhancements. Patch by Thierry Lambert.
1148
+ * Various RDoc::Markup::Parser enhancements. Patch by Thierry Lambert.
1149
+ * RDoc::Parser::binary? is more robust now that it uses Encoding.
1150
+ * Deprecated rdoc arguments are now explicitly mentioned in rdoc command
1151
+ output. Patch by Thierry Lambert.
1152
+ * Constant values are formatted more accurately. Patch by Thierry Lambert.
1153
+ * Enhanced call-seq parsing in RDoc::Parser::C. Patch by Thierry Lambert.
1154
+ * RDoc no longer uses kw, cmt, re or str classes for embedded source code
1155
+ snippets. Patch by Thierry Lambert.
1156
+ * RDoc directives may now be escaped with a leading '\\'. Patch by Thierry
1157
+ Lambert.
1158
+ * RDoc note lists (<tt>label::</tt>) now generate a table with class
1159
+ "rdoc-list". Patch by Thierry Lambert.
1160
+ * RDoc markup documentation has been moved to RDoc::Markup including notes
1161
+ on how to document source code.
1162
+ * An RDoc::Require is now always listed at the file level. Patch by Thierry
1163
+ Lambert.
1164
+ * RDoc::CodeObjects now know which file they were defined in.
1165
+ * RDoc::Options calls ::setup_options on the generator class specified by
1166
+ <tt>--format</tt>. See RDoc::Options::setup_generator.
1167
+ * rdoc gives an error when multiple formats are given.
1168
+ * Files with erb inside will no longer trip RDoc::Parser::binary?
1169
+ * Last <tt>--title</tt> wins. Patch by Thierry Lambert.
1170
+ * Better block params handling. Patch by Thierry Lambert.
1171
+ * Moved rdoc/tokenstream.rb to rdoc/token_stream.rb.
1172
+ * Moved rdoc/markup/preprocess.rb to rdoc/markup/pre_process.rb.
1173
+ * Removed "':' not followed by operator or identifier" warning for new Hash
1174
+ syntax.
1175
+ * rb_attr() is now supported for attributes.
1176
+ * RDoc::Parser::C now supports yields, doc, and args directives like
1177
+ RDoc::Parser::Ruby.
1178
+ * Moved RDoc::Parser::PerlPOD to the rdoc-perl_pod gem.
1179
+ * Bug fixes
1180
+ * RDoc::Generator tests no longer require any installed RDoc on Ruby 1.9
1181
+ * Load existing cache before generating ri. Ruby r27749 by NAKAMURA Usaku.
1182
+ * RDoc now handles BOM. Ruby r28062 by Nobuyoshi Nakada.
1183
+ * Use proper XML encoding for darkfish classpage. Ruby r28083 by NARUSE,
1184
+ Yui.
1185
+ * Fix ri output when special characters are inside html tags. Patch by Tomo
1186
+ Kazahaya, Ruby Bug #3512.
1187
+ * Don't bother checking if the pager exists, it's already done. Ruby r28842
1188
+ by NAKAMURA Usaku.
1189
+ * RDoc::Parser::Ruby now ignores non-constant-named singleton classes. Ruby
1190
+ r29140 by Nobuyoshi Nakada. Ruby Bug #3759.
1191
+ * RDoc::Parser::Ruby call args no longer include assignment. Ruby r29141 by
1192
+ Nobuyoshi Nakada. Ruby Bug #3759
1193
+ * Handle $HOME being unset in ri. Ruby r29272 by Nobuyoshi Nakada.
1194
+ * uniq ancestors and modules too. Ruby r29312 by Nobuyoshi Nakada.
1195
+ * RDoc now knows about Encoding by default. Ruby r29356 by Nobuyoshi
1196
+ Nakada.
1197
+ * ri now defaults to the backspace formatter when piped. Use RI environment
1198
+ variable or options to override. Ruby r28455 by Yusuke Endoh.
1199
+ * __send__ and friends no longer get their underscores removed. Patch by
1200
+ Thierry Lambert.
1201
+ * The C parser now makes new public when promoting initialize.
1202
+ * Fix crash in #markup_code for TkUnknownChar.
1203
+ * Fix crash in RDoc::Parser::C when aliasing methods with Regexp special
1204
+ characters.
1205
+ * Fix crash when various operators are used as a name as in
1206
+ <tt>alias * compose</tt>.
1207
+ * Fix warning with some dynamic use of <tt>attr_*</tt>
1208
+ * Methods added to true, false and nil are now documented.
1209
+ * Remove warning for methods defined on globals.
1210
+
1211
+ === 2.5.11 / 2010-08-20
1212
+
1213
+ * Minor Enhancements
1214
+ * Alias comments are now discovered by the C parser. Reported by Jeremy
1215
+ Evans.
1216
+ * Removed --all option which is unused in RDoc. Use the nodoc or
1217
+ stopdoc/startdoc directives to suppress documentation instead.
1218
+
1219
+ === 2.5.10 / 2010-08-17
1220
+
1221
+ * Minor Enhancements
1222
+ * Support rb_singleton_class(). Reported by Jeremy Evans.
1223
+ * Support rb_define_private_method() on rb_singleton_class(). Reported by
1224
+ Jeremy Evans.
1225
+
1226
+ * Bug Fixes
1227
+ * Treat non-ASCII RDoc files as text. Bug #28391 by Kouhei Sutou.
1228
+ * Fix potential test failures due to ivar collision. Bug #28390 by Kouhei
1229
+ Sutou.
1230
+ * Added duck-typed #aref for RDoc::Attr to RDoc::AnyMethod. Bug #28375 by
1231
+ Erik Hollensbe
1232
+ * Fixed method references in HTML output when show_hash is false.
1233
+ * Fixed comments with '.' in call-seq in C sources. Reported by Jeremy
1234
+ Evans.
1235
+ * RDoc now understands singleton aliases. Reported by Jeremy Evans.
1236
+
1237
+ === 2.5.9 / 2010-07-06
1238
+
1239
+ * Bug Fixes
1240
+ * Look up pager correctly.
1241
+ * Fixed handling of bullets in verbatim sections. Partial patch by
1242
+ Juha-Jarmo Heinonen.
1243
+
1244
+ === 2.5.8 / 2010-04-27
1245
+
1246
+ *NOTE*:
1247
+
1248
+ RDoc 2.5 did not save method parameters, so you should upgrade your rdoc-data
1249
+ gem to a version >= 2.5.3.
1250
+
1251
+ To have ri data for core and stdlib you'll need to:
1252
+
1253
+ gem install rdoc-data
1254
+
1255
+ then run:
1256
+
1257
+ rdoc-data --install
1258
+
1259
+ To have ri data for you gems you'll also need to run:
1260
+
1261
+ gem rdoc --all --overwrite
1262
+
1263
+ If you don't want to rebuild the rdoc for `gem server`, add --no-rdoc.
1264
+
1265
+ * Bug Fixes
1266
+ * ri no longer complains about nonexistent pagers.
1267
+ * Fixed failing test
1268
+
1269
+ === 2.5.7 / 2010-04-22
1270
+
1271
+ * Minor Enhancements
1272
+ * Unrecognized RDoc directives can now be registered by a plugin for
1273
+ handling. See RDoc::Markup::PreProcess.
1274
+ * Added RDoc::Markup::Raw to allow other markup engines to dump raw content
1275
+ into RDoc.
1276
+ * Bug Fixes
1277
+ * rdoc -p no longer means --pipe if files are also given.
1278
+ * RDoc now knows about BasicObject by default. Ruby Bug #1318 by Ambrus Zsbán
1279
+
1280
+ === 2.5.6 / 2010-04-22
1281
+
1282
+ * Minor Enhancements
1283
+ * Unrecognized RDoc directives are added as metadata to the object they get
1284
+ attached to.
1285
+
1286
+ ##
1287
+ # :my_new_directive: my cool value
1288
+
1289
+ Results in a 'my_new_directive' metadata key with value 'my cool value' on
1290
+ the RDoc::CodeObject it is for
1291
+ * Bug Fixes
1292
+ * RDoc no longer prints out "invalid options:" when there were no invalid
1293
+ options.
1294
+ * Fixed link size on Darkfish file pages
1295
+
1296
+ === 2.5.5 / 2010-04-19
1297
+
1298
+ * 1 Minor Enhancement
1299
+ * Use #binread in RDoc::Markup::PreProcess. Patch from ruby trunk.
1300
+ * 3 Bug Fixes
1301
+ * Fixed indentation of method-description lists in Darkfish. Bug #28081 by
1302
+ Theresa Dwinnell.
1303
+ * Fixed loading RDoc::AnyMethod aliases to no longer infinitely loop. Bug
1304
+ #28107 by Sven Riedel
1305
+ * Fixed handling of ignored invalid options to continue after the invalid
1306
+ option.
1307
+
1308
+ === 2.5.4 / 2010-04-18
1309
+
1310
+ * 2 Minor Enhancements
1311
+ * Methods will now be cross-referenced when preceded with ::. Ruby Bug
1312
+ #3169 by Marc-Andre Lafortune.
1313
+ * Methods now have human readable fragment identifiers for HTML output.
1314
+ (#method-i-gsub vs #M000005). Ruby Bug #3023 by Marc-Andre Lafortune.
1315
+ * 1 Bug Fixes
1316
+ * RDoc::Parser::Ruby now handles <code>while begin a; b end # ...</code>.
1317
+ Ruby Bug #3160 by Yusuke Endoh.
1318
+
1319
+ === 2.5.3 / 2010-04-10
1320
+
1321
+ * 1 Minor Enhancement
1322
+ * RDoc::Parser::Simple and the include directive remove coding: comment from
1323
+ first line
1324
+ * 2 Bug Fixes
1325
+ * Fixed loading of created.rid when regenerating documentation. Ruby bug
1326
+ #3121 by Yusuke Endoh.
1327
+ * Compare times as Integers as created.rid doesn't store fractional times.
1328
+
1329
+ === 2.5.2 / 2010-04-09
1330
+
1331
+ * 1 Minor Enhancement
1332
+ * Imported various changes by Nobu from ruby trunk.
1333
+ * 2 Bug Fixes
1334
+ * RDoc parses files without extensions as text files again.
1335
+ * RDoc::Parser::Ruby parses %{ strings correctly again.
1336
+
1337
+ === 2.5.1 / 2010-04-06
1338
+
1339
+ * 1 Minor Enhancement
1340
+ * RDoc::Parser::C now supports the include directive for classes and
1341
+ modules.
1342
+ * 6 Bug Fixes
1343
+ * RDoc::AnyMethod params now get saved in ri data.
1344
+ * ri now displays method arguments correctly.
1345
+ * RDoc::Markup::Parser allows no space between = and header text like rdoc
1346
+ 2.4 and earlier.
1347
+ * RDoc::Parser::C's "in" directive now looks in the current directory.
1348
+ * RDoc::Task's rerdoc task no longer deletes the doc directory twice.
1349
+ * rdoc --force-update now works correctly. Patch by Nobu Nokada
1350
+
1351
+ === 2.5 / 2010-03-31
1352
+
1353
+ * 9 Major Enhancements
1354
+ * Darkfish now has a "Home" button
1355
+ * ri no longer displays the value of a constant. There's no easy way to
1356
+ make them presentable. Use irb or ruby -e instead. Ruby Bug #549.
1357
+ * New ri data format now uses Marshal and pre-builds caches
1358
+ * No support for old ri data format, too hard to maintain
1359
+ * To upgrade your core ri documentation, install the rdoc-data gem and run
1360
+ rdoc-data
1361
+ * RDoc now displays how well you've documented your library
1362
+ * New recursive-descent parser for RDoc::Markup. See RDoc::Markup::Parser
1363
+ * Updated ruby_lex and ruby_token
1364
+ * Removed threading support, RDoc is not thread-safe
1365
+ * Removed many unsupported options to rdoc
1366
+ * Future versions of RDoc will not support Ruby 1.8.6. Bugs filed for
1367
+ 1.8.6-only issues will be (largely) rejected.
1368
+
1369
+ * 17 Minor Enhancements
1370
+ * Source Parsing
1371
+ * RDoc now supports module aliasing via constant assignment.
1372
+ * RDoc now tracks superclasses correctly. Fixes File < IO for core docs.
1373
+ * RDoc now ignores methods inside methods.
1374
+ * RDoc now ignores Marshal and other binray files.
1375
+ * Removed "Skipping require of dynamic string" warning.
1376
+ * C parser now handles Document-method better. Bug #27329.
1377
+ * API enhancements for writing parsers like the Ruby parser, see
1378
+ RDoc::Parser::RubyTools
1379
+ * ri
1380
+ * Uses pager over less and more for Debian. Ruby Bug #1171.
1381
+ * ri will use the RI_PAGER environment variable to find a pager.
1382
+ * ri data generator now supports SIGINFO (^T)
1383
+ * When rdoc is in debug mode, ^C now prints a backtrace
1384
+ * RDoc::Markup::AttributeManager no longer uses global state.
1385
+ * RDoc::RDoc no longer passes around options. Patch #27167.
1386
+ * Darkfish won't generate a file if its template is missing. Patch #25857.
1387
+ * Improved some wording for the RDoc main page. Patch #27264, #27268.
1388
+ * Removed diagram generation support (to return in the future).
1389
+ * Removed external support for RDoc::Task.
1390
+
1391
+ * 12 Bug Fixes
1392
+ * The :attr: directives now use the name given to create an attribute. See
1393
+ RDoc::Parser::Ruby#parse_meta_attr.
1394
+ * Fix crossrefs on paths with '-'. Ruby Bug #883.
1395
+ * Fix ruby parser for alias with = in the name. Bug #27522.
1396
+ * Images are no longer executable. Bug #27156.
1397
+ * --op is no longer overridden by --ri. Bug #27054.
1398
+ * :method: now works when at the end of a class. Bug #26910.
1399
+ * Preserve ellipsis from call-seq in Darkfish. Patch #26974.
1400
+ * Emacs-style <tt>coding:</tt> is handled properly. Patch #27388.
1401
+ * RDoc::RubyLex now parses UTF-8 identifiers. Bug #26946, #26947.
1402
+ * Fixed namespace lookup rules. Bug #26161.
1403
+ * Worked around bug in Selenium where they hide a .jar in a .txt file.
1404
+ Filed Selenium bug #27789.
1405
+ * Alias comments are no longer hidden. Reported by Adam Avilla.
1406
+
1407
+ === 2.4.3 / 2009-04-01
1408
+
1409
+ * 2 Bug Fixes
1410
+ * Corrected patch for file links
1411
+ * Corrected display of file popup
1412
+
1413
+ === 2.4.2 / 2009-03-25
1414
+
1415
+ * 2 Minor Enhancements
1416
+ * Added --pipe for turning RDoc on stdin into HTML
1417
+ * Added rdoc/task.rb containing a replacement for rake/rdoctask.rb. Use
1418
+ RDoc::Task now instead of Rake::RDocTask.
1419
+
1420
+ * 10 Bug Fixes
1421
+ * Writing the ri cache file to the proper directory. Bug #24459 by Lars
1422
+ Christensen.
1423
+ * Possible fix for Dir::[] and Pathname interaction on 1.9. Bug #24650 by
1424
+ tiburon.
1425
+ * Fixed scanning constants for if/end, etc. pairs. Bug #24609 by Ryan
1426
+ Davis.
1427
+ * Fixed private methods in the C parser. Bug #24599 by Aaron Patterson.
1428
+ * Fixed display of markup on RDoc main page. Bug #24168 by rhubarb.
1429
+ * Fixed display of \\ character in documentation proceeding words.
1430
+ Bug #22112 by James Gray. See RDoc for details.
1431
+ * Fixed parsing and display of arg params for some corner cases. Bug #21113
1432
+ by Csiszár Attila.
1433
+ * Fixed links in Files box. Patch #24403 by Eric Wong.
1434
+ * Toplevel methods now appear in Object. Bug #22677 by Ryan Davis.
1435
+ * Added back --promiscuous which didn't do anything you cared about. Why
1436
+ did you enable it? Nobody looked at that page! Oh, it warns, too.
1437
+
1438
+ === 2.4.1 / 2009-02-26
1439
+
1440
+ * 1 Minor Enhancements
1441
+ * Added :attr:, :attr_reader:, :attr_writer:, :attr_accessor: directives.
1442
+ Replaces --accessor. See RDoc::Parser::Ruby for details.
1443
+
1444
+ * 3 Bug Fixes
1445
+ * Don't complain when exiting normally. Bug by Matt Neuburg.
1446
+ * Restore --inline-source that warns
1447
+ * Fixed links to files in Darkfish output
1448
+
1449
+ === 2.4.0 / 2009-02-24
1450
+
1451
+ * 9 Minor Enhancements
1452
+ * `ri -f html` is now XHTML-happy
1453
+ * Clarified RDoc::Markup link syntax. Bug #23517 by Eric Armstrong.
1454
+ * Number of threads to parse with is now configurable
1455
+ * Darkfish can now use alternate templates from $LOAD_PATH via -T
1456
+ * Removed F95 parser in favor of the rdoc-f95 gem
1457
+ * Moved HTML and XML generators to unmaintained
1458
+ * No gem will be provided as it's too difficult to make them work
1459
+ * Removed options --one-file, --style=, --inline-source, --promiscuous,
1460
+ --op-name
1461
+ * Removed support for --accessor, use regular documentation or
1462
+ the method directive instead. See RDoc::Parser::Ruby
1463
+ * Removed --ri-system as it is unused by Ruby's makefiles
1464
+ * Added method list to index.html
1465
+
1466
+ * 6 Bug Fixes
1467
+ * A class marked nodoc no longer appears in the index. Bug #23751 by
1468
+ Clifford Heath.
1469
+ * Fix 1.9 compatibility issues. Bug #23815 by paddor.
1470
+ * Darkfish now respects --charset
1471
+ * RDoc no longer attempts to be lazy when building HTML. This is a
1472
+ workaround. Bug #23893 by Stefano Crocco.
1473
+ * RDoc doesn't crash with def (blah).foo() end
1474
+ * RDoc doesn't crash with #define functions
1475
+
1476
+ === 2.3.0 / 2009-01-28
1477
+
1478
+ * 3 Major Enhancements
1479
+ * Michael Granger's Darkfish generator is now the default for HTML output
1480
+ * Various rdoc generation speedups by Hongli Lai. Patches #22555, #22556,
1481
+ #22557, #22562, #22565.
1482
+ * rdoc/discover.rb files are loaded automatically from installed gems
1483
+
1484
+ * 8 Minor Enhancements
1485
+ * Added a space after the commas in ri class method lists. RubyForge
1486
+ enhancement #22182.
1487
+ * Improved ri --interactive
1488
+ * Generators can now override generated file locations
1489
+ * Moved unmaintained CHM generator to it's own package
1490
+ * Moved unmaintained extra HTML templates to their own package
1491
+ * Removed experimental texinfo generator
1492
+ * Converted to minitest
1493
+ * Known classes and modules list outputs once per line now for grep
1494
+
1495
+ * 11 Bug Fixes
1496
+ * Fix missing superclass in ri output
1497
+ * Fix an RDoc crash when told to parse an empty file
1498
+ * Ignore nonexistent files instead of crashing
1499
+ * .txt and .rdoc files are always considered text. Patch #22897 by Aaron
1500
+ Patterson.
1501
+ * When merging ri data with a nonexistent directory, RDoc no longer crashes
1502
+ * Fix visibility of methods in XML output. Issue by Yehuda Katz.
1503
+ * Fixed relative link generation
1504
+ * Fix crash, RDoc now ignores comments above local variable assignments in
1505
+ modules
1506
+ * RDoc now only accepts adjacent comments for rb_define_module and
1507
+ rb_define_class
1508
+ * C file RDoc is no longer included in token stream
1509
+ * Scan all gem paths to match gem name for ri output
1510
+
1511
+ === 2.2.1 / 2008-09-24
1512
+ This version provides some minor fixes and enhancements to 2.2.0 intended
1513
+ to polish RDoc for Ruby 1.9.1.
1514
+
1515
+ * 3 Minor Enhancements
1516
+ * Support for parsing RDoc from SWIG. Ruby patch #10742 by Gonzalo
1517
+ Garramuno, #13993 by Steven Jenkins.
1518
+ * Simple support for Perl POD documentation. Patch by Hugh Sasse.
1519
+ * Changed the default character set of RDoc's output from iso-8859-1 to
1520
+ utf-8.
1521
+
1522
+ * 9 Bug Fixes
1523
+ * Explicitly set the html template's text color, so that the generated
1524
+ documentation will display correctly on browsers with custom text and
1525
+ background color settings (patch by Luther Thompson).
1526
+ * Ensure that RDoc correctly will associate an alias and a method, even
1527
+ if it encounters the alias first because the alias lives in a different
1528
+ file.
1529
+ * Fix the parsing of multiline constants (patch by Chris Alfeld and
1530
+ Joel VanderWerf)
1531
+ * Make --exclude usuable. Ruby patch #11671 by Trans.
1532
+ * Detect inline C functions. Ruby Bug #11993 by Florian Frank.
1533
+ * Fix an issue in which RDoc might not document a class'
1534
+ superclass correctly if the class was defined in multiple files and
1535
+ depending on the order in which RDoc processed the files. This should
1536
+ ensure that the child class -> parent class relationship is correct in
1537
+ ri documentation, allowing ri to lookup inherited methods (i.e., File.read).
1538
+ * Stop ri from crashing when it looks for a completely bogus method (i.e.,
1539
+ File#reada). Now, ri exits with a helpful error message.
1540
+ * Fixed missing display of constant values in ri.
1541
+ * Fixed display of constants in ri's html output.
1542
+
1543
+ === 2.2.0 / 2008-09-19
1544
+ This version includes some significant enhancements to ri. See RI.txt for
1545
+ documentation about ri.
1546
+
1547
+ * 5 Major Enhancements
1548
+ * More extensive unit tests (special thanks to Chris Lowis for contributing
1549
+ a test).
1550
+ * Made ri twice as fast for the most common use case of displaying
1551
+ information for a class or a fully-qualified method
1552
+ (i.e., ri Array#flatten, after ri has created a cache the first time that
1553
+ it runs).
1554
+ * Made ri many times faster when searching for an unqualified method (i.e.,
1555
+ ri read, again after the first such search has populated ri's cache)
1556
+ * Changed ri to do regular expression searches for unqualified methods;
1557
+ now, a regular expression for a method can be passed to ri on the
1558
+ command-line.
1559
+ * Added an interactive mode to ri (patch by Daniel Choi). Now, when ri
1560
+ is given a -i argument, it will allow the user to disambiguate
1561
+ unqualified methods if more than one is present and also will allow a
1562
+ user to get information for a class' method.
1563
+
1564
+ * 8 Minor Enhancements
1565
+ * RDoc now adds the package title to the web pages that it generates
1566
+ for files and classes/modules, which helps them appear better in
1567
+ search engine results.
1568
+ * RDoc now automatically generates cross-reference links for classes and
1569
+ methods specified relative to the global namespace (i.e., ::A::B::C#method).
1570
+ * All built-in templates now output valid, strict XHTML.
1571
+ * The documentation is slightly better organized (the markup details were
1572
+ merged into the RDoc module's documentation).
1573
+ * Improved rdoc's HTML generation speed by about 20% (on Windows, the
1574
+ boost seems larger).
1575
+ * Provided an ri command-line option to control its caching behavior.
1576
+ * Improved RDoc's documentation. Added RI.txt to document ri.
1577
+ * Allow HTML templates distributed as gems to be loaded with the -T option,
1578
+ just like the standard templates in rdoc/generator/html (so an HTML
1579
+ template lib/new_template.rb in a gem can be used with rdoc -T new_template)
1580
+
1581
+ * 25 Bug fixes:
1582
+ * Fixed prototype detection in C parser. Can process ruby 1.8 C files
1583
+ again.
1584
+ * Fixed the main page for frameless template. Patch by Marcin Raczkowski.
1585
+ * Fixed the main page for frame templates. Now, if no main page is
1586
+ specified, RDoc will default to the README.
1587
+ * Fixed missing stylesheet in generated chm. Patch by Gordon Thiesfeld.
1588
+ * Fixed the parsing of module names starting with '::'. Patch by
1589
+ Giuseppe Bilotta.
1590
+ * Fixed a case where RDoc first would encounter Foo::Bar and then would
1591
+ encounter class Foo. Previously, RDoc erroneously would have considered
1592
+ that both a Foo class and a Foo module existed.
1593
+ * Fix a class where RDoc would not generate correct cross-reference links
1594
+ to a class contained within a module of the same name (i.e. RDoc::RDoc)
1595
+ * Prevented RDoc from trying to parse binary files, which would produce
1596
+ garbage output.
1597
+ * RDoc now correctly converts ' characters to apostrophes, opening single
1598
+ quotes, and closing single quotes in most cases (smart single quotes).
1599
+ * RDoc now correctly converts " characters to opening double quotes and
1600
+ and closing double quotes in most cases (smart double quotes).
1601
+ * (c) correctly is converted into the copyright symbol.
1602
+ * '&' characters in text now correctly are translated to HTML character codes.
1603
+ * Fixed missing stylesheet in generated chm. Patch by Gordon Thiesfeld.
1604
+ * Fixed broken method links in the built-in templates.
1605
+ * RDoc properly links to files and classes in the one page HTML template.
1606
+ * The kilmer and hefss templates properly syntax highlight when inlining
1607
+ source code.
1608
+ * The kilmer and hefss template class pages properly display methods again.
1609
+ * Fixed broken class, file, and method links in the frameless template.
1610
+ * Fixed the clipping of source code in the html and frameless templates when
1611
+ the source code cannot fit into the window; a scrollbar now will allow
1612
+ all of the source code to be viewed.
1613
+ * Fixed the missing constant descriptions in the html and frameless
1614
+ templates.
1615
+ * Fixed the ri command-line options that customize the directories to be
1616
+ searched for documentation.
1617
+ * Fixed the XML generator. Patch by Anthony Durity.
1618
+ * Stopped the XML template from generating invalid XML due to malformed
1619
+ embedded ruby.
1620
+ * Adding missing information about a class' constants to the XML template.
1621
+ * Fixed the horizontal rule markup (---) so that it correctly adds a
1622
+ horizontal rule rather than suppressing all text that follows.
1623
+
1624
+ === 2.1.0 / 2008-07-20
1625
+
1626
+ * 3 Major Enhancements:
1627
+ * RDoc now knows about meta-programmed methods, see RDoc::Parser::Ruby
1628
+ * Reorganized parsers under RDoc::Parser base class
1629
+ * ri now walks the ancestors of a class looking for a method e.g. ri
1630
+ File#read displays documentation for IO#read (may require regeneration of
1631
+ ri data)
1632
+ * 5 Minor Enhancements:
1633
+ * Allow links to files
1634
+ * Default options now taken from RDOCOPT environment variable
1635
+ * Class method documentation can be found at toplevel now (def X.foo)
1636
+ * Allow HTML templates distributed as gems to be loaded with the -T option,
1637
+ just like the standard templates in rdoc/generator/html (so an HTML
1638
+ template lib/new_template.rb in a gem can be used with rdoc -T new_template)
1639
+ * `rdoc -v` prints out files, classes, modules and methods as it goes
1640
+ * 11 Bug Fixes:
1641
+ * `ri Foo.bar` now looks for class methods also
1642
+ * Sections work in the default template again
1643
+ * Doesn't warn about :foo:: list item being an unrecognized directive
1644
+ * RDoc no longer converts characters inside tt tags
1645
+ * Fixed "uninitialized constant RDoc::Markup::ToHtml::HTML"
1646
+ * Fixed generation of relative links
1647
+ * Fixed various diagram generation issues
1648
+ * Fixed templates broken by switch to erb
1649
+ * Fixed issue with <!-- --> style comments
1650
+ * Lowercase words are no longer rdoc'd as methods without leading #, as
1651
+ described in the documentation
1652
+ * RDoc now correctly sets superclasses if they were originally unknown
1653
+
1654
+ === 2.0.0 / 2008-04-10
1655
+
1656
+ * 3 Major Enhancements:
1657
+ * Renamespaced everything RDoc under the RDoc module.
1658
+ * New `ri` implementation.
1659
+ * Reads from a cache in ~/.ri/ for enhanced speed.
1660
+ * RubyGems aware, only searches latest gem versions.
1661
+ * Now up to over 100 tests and 200 assertions.
1662
+ * 4 Minor Enhancements:
1663
+ * Switched to an ERb-based TemplatePage, see RDoc::TemplatePage.
1664
+ * Class/module ri now displays attribute and constant comments.
1665
+ * Cross-references can be disabled with a leading \.
1666
+ * Relaxed parsing for some RDoc inline markup.