rdoc 2.4.3 → 2.5

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 (139) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.autotest +3 -1
  3. data/History.txt +68 -0
  4. data/LICENSE.txt +57 -0
  5. data/Manifest.txt +37 -19
  6. data/README.txt +2 -12
  7. data/Rakefile +12 -12
  8. data/bin/rdoc +4 -4
  9. data/lib/rdoc.rb +32 -9
  10. data/lib/rdoc/alias.rb +2 -2
  11. data/lib/rdoc/any_method.rb +108 -16
  12. data/lib/rdoc/attr.rb +87 -1
  13. data/lib/rdoc/class_module.rb +131 -5
  14. data/lib/rdoc/code_object.rb +28 -5
  15. data/lib/rdoc/constant.rb +22 -0
  16. data/lib/rdoc/context.rb +80 -37
  17. data/lib/rdoc/gauntlet.rb +48 -0
  18. data/lib/rdoc/generator/darkfish.rb +25 -23
  19. data/lib/rdoc/generator/markup.rb +6 -29
  20. data/lib/rdoc/generator/ri.rb +39 -189
  21. data/lib/rdoc/generator/template/darkfish/classpage.rhtml +17 -1
  22. data/lib/rdoc/generator/template/darkfish/filepage.rhtml +10 -0
  23. data/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
  24. data/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
  25. data/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
  26. data/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
  27. data/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
  28. data/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
  29. data/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
  30. data/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
  31. data/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
  32. data/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
  33. data/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
  34. data/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
  35. data/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
  36. data/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
  37. data/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
  38. data/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
  39. data/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
  40. data/lib/rdoc/generator/template/darkfish/index.rhtml +2 -2
  41. data/lib/rdoc/generator/template/darkfish/rdoc.css +38 -33
  42. data/lib/rdoc/include.rb +22 -0
  43. data/lib/rdoc/markup.rb +10 -262
  44. data/lib/rdoc/markup/attribute_manager.rb +57 -50
  45. data/lib/rdoc/markup/blank_line.rb +19 -0
  46. data/lib/rdoc/markup/document.rb +72 -0
  47. data/lib/rdoc/markup/formatter.rb +118 -0
  48. data/lib/rdoc/markup/formatter_test_case.rb +341 -0
  49. data/lib/rdoc/markup/heading.rb +17 -0
  50. data/lib/rdoc/markup/inline.rb +6 -5
  51. data/lib/rdoc/markup/list.rb +78 -0
  52. data/lib/rdoc/markup/list_item.rb +83 -0
  53. data/lib/rdoc/markup/paragraph.rb +66 -0
  54. data/lib/rdoc/markup/parser.rb +528 -0
  55. data/lib/rdoc/markup/rule.rb +17 -0
  56. data/lib/rdoc/markup/to_ansi.rb +72 -0
  57. data/lib/rdoc/markup/to_bs.rb +74 -0
  58. data/lib/rdoc/markup/to_html.rb +106 -172
  59. data/lib/rdoc/markup/to_html_crossref.rb +10 -4
  60. data/lib/rdoc/markup/to_rdoc.rb +243 -0
  61. data/lib/rdoc/markup/to_test.rb +27 -16
  62. data/lib/rdoc/markup/verbatim.rb +42 -0
  63. data/lib/rdoc/normal_class.rb +38 -1
  64. data/lib/rdoc/normal_module.rb +38 -8
  65. data/lib/rdoc/options.rb +39 -151
  66. data/lib/rdoc/parser.rb +36 -18
  67. data/lib/rdoc/parser/c.rb +102 -109
  68. data/lib/rdoc/parser/ruby.rb +359 -1662
  69. data/lib/rdoc/parser/ruby_tools.rb +157 -0
  70. data/lib/rdoc/parser/simple.rb +0 -2
  71. data/lib/rdoc/rdoc.rb +142 -82
  72. data/lib/rdoc/ri.rb +10 -0
  73. data/lib/rdoc/ri/driver.rb +674 -444
  74. data/lib/rdoc/ri/formatter.rb +2 -651
  75. data/lib/rdoc/ri/paths.rb +70 -45
  76. data/lib/rdoc/ri/store.rb +248 -0
  77. data/lib/rdoc/ruby_lex.rb +1284 -0
  78. data/lib/rdoc/ruby_token.rb +416 -0
  79. data/lib/rdoc/single_class.rb +5 -0
  80. data/lib/rdoc/stats.rb +152 -83
  81. data/lib/rdoc/task.rb +27 -49
  82. data/lib/rdoc/text.rb +130 -0
  83. data/lib/rdoc/tokenstream.rb +28 -9
  84. data/lib/rdoc/top_level.rb +49 -43
  85. data/test/hidden.zip.txt +1 -0
  86. data/test/test_attribute_manager.rb +9 -16
  87. data/test/test_rdoc_any_method.rb +23 -0
  88. data/test/test_rdoc_attr.rb +40 -0
  89. data/test/test_rdoc_class_module.rb +100 -0
  90. data/test/test_rdoc_code_object.rb +18 -2
  91. data/test/test_rdoc_context.rb +41 -0
  92. data/test/test_rdoc_generator_ri.rb +56 -0
  93. data/test/test_rdoc_markup.rb +21 -610
  94. data/test/test_rdoc_markup_attribute_manager.rb +14 -17
  95. data/test/test_rdoc_markup_document.rb +51 -0
  96. data/test/test_rdoc_markup_paragraph.rb +27 -0
  97. data/test/test_rdoc_markup_parser.rb +1327 -0
  98. data/test/test_rdoc_markup_to_ansi.rb +426 -0
  99. data/test/test_rdoc_markup_to_bs.rb +443 -0
  100. data/test/test_rdoc_markup_to_html.rb +183 -18
  101. data/test/test_rdoc_markup_to_html_crossref.rb +1 -3
  102. data/test/test_rdoc_markup_to_rdoc.rb +426 -0
  103. data/test/test_rdoc_normal_class.rb +17 -0
  104. data/test/test_rdoc_normal_module.rb +6 -6
  105. data/test/test_rdoc_options.rb +41 -0
  106. data/test/test_rdoc_parser.rb +66 -13
  107. data/test/test_rdoc_parser_c.rb +93 -38
  108. data/test/test_rdoc_parser_perl.rb +2 -3
  109. data/test/test_rdoc_parser_ruby.rb +291 -28
  110. data/test/test_rdoc_parser_simple.rb +48 -0
  111. data/test/test_rdoc_rdoc.rb +66 -0
  112. data/test/test_rdoc_ri_driver.rb +752 -38
  113. data/test/test_rdoc_ri_paths.rb +39 -0
  114. data/test/test_rdoc_ri_store.rb +309 -0
  115. data/test/test_rdoc_text.rb +157 -0
  116. data/test/test_rdoc_top_level.rb +35 -9
  117. data/test/xref_data.rb +9 -1
  118. data/test/xref_test_case.rb +8 -3
  119. metadata +110 -38
  120. metadata.gz.sig +0 -0
  121. data/lib/rdoc/cache.rb +0 -41
  122. data/lib/rdoc/diagram.rb +0 -340
  123. data/lib/rdoc/dot.rb +0 -249
  124. data/lib/rdoc/markup/fragments.rb +0 -377
  125. data/lib/rdoc/markup/lines.rb +0 -156
  126. data/lib/rdoc/markup/to_flow.rb +0 -211
  127. data/lib/rdoc/markup/to_latex.rb +0 -328
  128. data/lib/rdoc/markup/to_texinfo.rb +0 -73
  129. data/lib/rdoc/ri/cache.rb +0 -187
  130. data/lib/rdoc/ri/descriptions.rb +0 -156
  131. data/lib/rdoc/ri/display.rb +0 -340
  132. data/lib/rdoc/ri/reader.rb +0 -106
  133. data/lib/rdoc/ri/util.rb +0 -79
  134. data/lib/rdoc/ri/writer.rb +0 -68
  135. data/test/test_rdoc_ri_attribute_formatter.rb +0 -44
  136. data/test/test_rdoc_ri_default_display.rb +0 -302
  137. data/test/test_rdoc_ri_formatter.rb +0 -320
  138. data/test/test_rdoc_ri_html_formatter.rb +0 -141
  139. data/test/test_rdoc_ri_overstrike_formatter.rb +0 -71
data.tar.gz.sig CHANGED
Binary file
data/.autotest CHANGED
@@ -1,5 +1,7 @@
1
1
  # vim: filetype=ruby
2
2
 
3
+ require 'autotest/restart'
4
+
3
5
  Autotest.add_hook :initialize do |at|
4
6
  at.testlib = 'minitest/unit' if at.respond_to? :testlib=
5
7
 
@@ -8,7 +10,7 @@ Autotest.add_hook :initialize do |at|
8
10
  f = s.sub(/^test#{sep}/, '').sub(/\.rb$/, '').split(sep)
9
11
  f = f.map { |path| path.split(/_|(\d+)/).map { |seg| seg.capitalize }.join }
10
12
  f = f.map { |path| path =~ /^Test/ ? path : "Test#{path}" }
11
- f.join('::').sub 'Rdoc', 'RDoc'
13
+ f.join('::').sub('Rdoc', 'RDoc').sub('Ri', 'RI')
12
14
  end
13
15
  end
14
16
 
@@ -1,3 +1,71 @@
1
+ === 2.5 / 2010-03-31
2
+
3
+ *NOTE*:
4
+
5
+ You'll need to:
6
+
7
+ gem install rdoc-data
8
+
9
+ then run:
10
+
11
+ rdoc-data
12
+
13
+ to have ri data for core and stdlib like Array or Kernel or Date.
14
+
15
+ * 9 Major Enhancements
16
+ * Darkfish now has a "Home" button
17
+ * ri no longer displays the value of a constant. There's no easy way to
18
+ make them presentable. Use irb or ruby -e instead. Ruby Bug #549.
19
+ * New ri data format now uses Marshal and pre-builds caches
20
+ * No support for old ri data format, too hard to maintain
21
+ * To upgrade your core ri documentation, install the rdoc-data gem and run
22
+ rdoc-data
23
+ * RDoc now displays how well you've documented your library
24
+ * New recursive-descent parser for RDoc::Markup. See RDoc::Markup::Parser
25
+ * Updated ruby_lex and ruby_token
26
+ * Removed threading support, RDoc is not thread-safe
27
+ * Removed many unsupported options to rdoc
28
+ * Future versions of RDoc will not support Ruby 1.8.6. Bugs filed for
29
+ 1.8.6-only issues will be (largely) rejected.
30
+
31
+ * 17 Minor Enhancements
32
+ * Source Parsing
33
+ * RDoc now supports module aliasing via constant assignment.
34
+ * RDoc now tracks superclasses correctly. Fixes File < IO for core docs.
35
+ * RDoc now ignores methods inside methods.
36
+ * RDoc now ignores Marshal and other binray files.
37
+ * Removed "Skipping require of dynamic string" warning.
38
+ * C parser now handles Document-method better. Bug #27329.
39
+ * API enhancements for writing parsers like the Ruby parser, see
40
+ RDoc::Parser::RubyTools
41
+ * ri
42
+ * Uses pager over less and more for Debian. Ruby Bug #1171.
43
+ * ri will use the RI_PAGER environment variable to find a pager.
44
+ * ri data generator now supports SIGINFO (^T)
45
+ * When rdoc is in debug mode, ^C now prints a backtrace
46
+ * RDoc::Markup::AttributeManager no longer uses global state.
47
+ * RDoc::RDoc no longer passes around options. Patch #27167.
48
+ * Darkfish won't generate a file if its template is missing. Patch #25857.
49
+ * Improved some wording for the RDoc main page. Patch #27264, #27268.
50
+ * Removed diagram generation support (to return in the future).
51
+ * Removed external support for RDoc::Task.
52
+
53
+ * 12 Bug Fixes
54
+ * The :attr: directives now use the name given to create an attribute. See
55
+ RDoc::Parser::Ruby#parse_meta_attr.
56
+ * Fix crossrefs on paths with '-'. Ruby Bug #883.
57
+ * Fix ruby parser for alias with = in the name. Bug #27522.
58
+ * Images are no longer executable. Bug #27156.
59
+ * --op is no longer overridden by --ri. Bug #27054.
60
+ * :method: now works when at the end of a class. Bug #26910.
61
+ * Preserve elipsis from call-seq in Darkfish. Patch #26974.
62
+ * Emacs-style <tt>coding:</tt> is handled properly. Patch #27388.
63
+ * RDoc::RubyLex now parses UTF-8 identifiers. Bug #26946, #26947.
64
+ * Fixed namespace lookup rules. Bug #26161.
65
+ * Worked around bug in Selenium where they hide a .jar in a .txt file.
66
+ Filed Selenium bug #27789.
67
+ * Alias comments are no longer hidden. Reported by Adam Avilla.
68
+
1
69
  === 2.4.3 / 2009-04-01
2
70
 
3
71
  * 2 Bug Fixes
@@ -0,0 +1,57 @@
1
+ RDoc is copyrighted free software.
2
+
3
+ You can redistribute it and/or modify it under either the terms of the GPL
4
+ version 2 (see the file GPL), or the conditions below:
5
+
6
+ 1. You may make and give away verbatim copies of the source form of the
7
+ software without restriction, provided that you duplicate all of the
8
+ original copyright notices and associated disclaimers.
9
+
10
+ 2. You may modify your copy of the software in any way, provided that
11
+ you do at least ONE of the following:
12
+
13
+ a) place your modifications in the Public Domain or otherwise
14
+ make them Freely Available, such as by posting said
15
+ modifications to Usenet or an equivalent medium, or by allowing
16
+ the author to include your modifications in the software.
17
+
18
+ b) use the modified software only within your corporation or
19
+ organization.
20
+
21
+ c) give non-standard binaries non-standard names, with
22
+ instructions on where to get the original software distribution.
23
+
24
+ d) make other distribution arrangements with the author.
25
+
26
+ 3. You may distribute the software in object code or binary form,
27
+ provided that you do at least ONE of the following:
28
+
29
+ a) distribute the binaries and library files of the software,
30
+ together with instructions (in the manual page or equivalent)
31
+ on where to get the original distribution.
32
+
33
+ b) accompany the distribution with the machine-readable source of
34
+ the software.
35
+
36
+ c) give non-standard binaries non-standard names, with
37
+ instructions on where to get the original software distribution.
38
+
39
+ d) make other distribution arrangements with the author.
40
+
41
+ 4. You may modify and include the part of the software into any other
42
+ software (possibly commercial). But some files in the distribution
43
+ are not written by the author, so that they are not under these terms.
44
+
45
+ For the list of those files and their copying conditions, see the
46
+ file LEGAL.
47
+
48
+ 5. The scripts and library files supplied as input to or produced as
49
+ output from the software do not automatically fall under the
50
+ copyright of the software, but belong to whomever generated them,
51
+ and may be sold commercially, and may be aggregated with this
52
+ software.
53
+
54
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
55
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
56
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
57
+ PURPOSE.
@@ -1,6 +1,7 @@
1
1
  .autotest
2
2
  .document
3
3
  History.txt
4
+ LICENSE.txt
4
5
  Manifest.txt
5
6
  README.txt
6
7
  RI.txt
@@ -12,14 +13,12 @@ lib/rdoc/alias.rb
12
13
  lib/rdoc/anon_class.rb
13
14
  lib/rdoc/any_method.rb
14
15
  lib/rdoc/attr.rb
15
- lib/rdoc/cache.rb
16
16
  lib/rdoc/class_module.rb
17
17
  lib/rdoc/code_object.rb
18
18
  lib/rdoc/code_objects.rb
19
19
  lib/rdoc/constant.rb
20
20
  lib/rdoc/context.rb
21
- lib/rdoc/diagram.rb
22
- lib/rdoc/dot.rb
21
+ lib/rdoc/gauntlet.rb
23
22
  lib/rdoc/generator.rb
24
23
  lib/rdoc/generator/darkfish.rb
25
24
  lib/rdoc/generator/markup.rb
@@ -58,17 +57,25 @@ lib/rdoc/include.rb
58
57
  lib/rdoc/known_classes.rb
59
58
  lib/rdoc/markup.rb
60
59
  lib/rdoc/markup/attribute_manager.rb
60
+ lib/rdoc/markup/blank_line.rb
61
+ lib/rdoc/markup/document.rb
61
62
  lib/rdoc/markup/formatter.rb
62
- lib/rdoc/markup/fragments.rb
63
+ lib/rdoc/markup/formatter_test_case.rb
64
+ lib/rdoc/markup/heading.rb
63
65
  lib/rdoc/markup/inline.rb
64
- lib/rdoc/markup/lines.rb
66
+ lib/rdoc/markup/list.rb
67
+ lib/rdoc/markup/list_item.rb
68
+ lib/rdoc/markup/paragraph.rb
69
+ lib/rdoc/markup/parser.rb
65
70
  lib/rdoc/markup/preprocess.rb
66
- lib/rdoc/markup/to_flow.rb
71
+ lib/rdoc/markup/rule.rb
72
+ lib/rdoc/markup/to_ansi.rb
73
+ lib/rdoc/markup/to_bs.rb
67
74
  lib/rdoc/markup/to_html.rb
68
75
  lib/rdoc/markup/to_html_crossref.rb
69
- lib/rdoc/markup/to_latex.rb
76
+ lib/rdoc/markup/to_rdoc.rb
70
77
  lib/rdoc/markup/to_test.rb
71
- lib/rdoc/markup/to_texinfo.rb
78
+ lib/rdoc/markup/verbatim.rb
72
79
  lib/rdoc/meta_method.rb
73
80
  lib/rdoc/normal_class.rb
74
81
  lib/rdoc/normal_module.rb
@@ -77,50 +84,61 @@ lib/rdoc/parser.rb
77
84
  lib/rdoc/parser/c.rb
78
85
  lib/rdoc/parser/perl.rb
79
86
  lib/rdoc/parser/ruby.rb
87
+ lib/rdoc/parser/ruby_tools.rb
80
88
  lib/rdoc/parser/simple.rb
81
89
  lib/rdoc/rdoc.rb
82
90
  lib/rdoc/require.rb
83
91
  lib/rdoc/ri.rb
84
- lib/rdoc/ri/cache.rb
85
- lib/rdoc/ri/descriptions.rb
86
- lib/rdoc/ri/display.rb
87
92
  lib/rdoc/ri/driver.rb
88
93
  lib/rdoc/ri/formatter.rb
89
94
  lib/rdoc/ri/paths.rb
90
- lib/rdoc/ri/reader.rb
91
- lib/rdoc/ri/util.rb
92
- lib/rdoc/ri/writer.rb
95
+ lib/rdoc/ri/store.rb
96
+ lib/rdoc/ruby_lex.rb
97
+ lib/rdoc/ruby_token.rb
93
98
  lib/rdoc/single_class.rb
94
99
  lib/rdoc/stats.rb
95
100
  lib/rdoc/task.rb
101
+ lib/rdoc/text.rb
96
102
  lib/rdoc/tokenstream.rb
97
103
  lib/rdoc/top_level.rb
98
104
  test/binary.dat
105
+ test/hidden.zip.txt
99
106
  test/test.ja.rdoc
100
107
  test/test.ja.txt
101
108
  test/test_attribute_manager.rb
102
109
  test/test_rdoc_any_method.rb
110
+ test/test_rdoc_attr.rb
111
+ test/test_rdoc_class_module.rb
103
112
  test/test_rdoc_code_object.rb
104
113
  test/test_rdoc_constant.rb
105
114
  test/test_rdoc_context.rb
115
+ test/test_rdoc_generator_ri.rb
106
116
  test/test_rdoc_include.rb
107
117
  test/test_rdoc_markup.rb
108
118
  test/test_rdoc_markup_attribute_manager.rb
119
+ test/test_rdoc_markup_document.rb
120
+ test/test_rdoc_markup_paragraph.rb
121
+ test/test_rdoc_markup_parser.rb
122
+ test/test_rdoc_markup_to_ansi.rb
123
+ test/test_rdoc_markup_to_bs.rb
109
124
  test/test_rdoc_markup_to_html.rb
110
125
  test/test_rdoc_markup_to_html_crossref.rb
126
+ test/test_rdoc_markup_to_rdoc.rb
127
+ test/test_rdoc_normal_class.rb
111
128
  test/test_rdoc_normal_module.rb
129
+ test/test_rdoc_options.rb
112
130
  test/test_rdoc_parser.rb
113
131
  test/test_rdoc_parser_c.rb
114
132
  test/test_rdoc_parser_perl.rb
115
133
  test/test_rdoc_parser_ruby.rb
134
+ test/test_rdoc_parser_simple.rb
135
+ test/test_rdoc_rdoc.rb
116
136
  test/test_rdoc_require.rb
117
- test/test_rdoc_ri_attribute_formatter.rb
118
- test/test_rdoc_ri_default_display.rb
119
137
  test/test_rdoc_ri_driver.rb
120
- test/test_rdoc_ri_formatter.rb
121
- test/test_rdoc_ri_html_formatter.rb
122
- test/test_rdoc_ri_overstrike_formatter.rb
138
+ test/test_rdoc_ri_paths.rb
139
+ test/test_rdoc_ri_store.rb
123
140
  test/test_rdoc_task.rb
141
+ test/test_rdoc_text.rb
124
142
  test/test_rdoc_top_level.rb
125
143
  test/xref_data.rb
126
144
  test/xref_test_case.rb
data/README.txt CHANGED
@@ -24,16 +24,6 @@ See RDoc for a description of RDoc's markup and basic use.
24
24
 
25
25
  == BUGS:
26
26
 
27
- The markup engine has lots of little bugs. In particular:
28
- * Escaping does not work for all markup.
29
- * Typesetting is not always correct.
30
- * Some output formats (ri, for example) do not correctly handle all of the
31
- markup.
32
-
33
- RDoc has some subtle bugs processing classes that are split across multiple
34
- files (bugs that may or may not manifest depending on the order in which
35
- the files are encountered). This issue can be tracked here[http://rubyforge.org/tracker/index.php?func=detail&aid=22135&group_id=627&atid=2475].
36
-
37
27
  If you find a bug, please report it at the RDoc project's
38
28
  tracker[http://rubyforge.org/tracker/?group_id=627] on RubyForge:
39
29
 
@@ -43,5 +33,5 @@ RDoc is Copyright (c) 2001-2003 Dave Thomas, The Pragmatic Programmers.
43
33
  Portions (c) 2007-2009 Eric Hodel. Portions copyright others, see individual
44
34
  files for details.
45
35
 
46
- It is free software, and may be redistributed under the terms specified in the
47
- README file of the Ruby distribution.
36
+ It is free software, and may be redistributed under the terms specified in
37
+ LICENSE.txt.
data/Rakefile CHANGED
@@ -1,21 +1,21 @@
1
1
  require 'hoe'
2
+ $:.unshift 'lib'
3
+ require 'rdoc/rdoc'
2
4
 
3
5
  $rdoc_rakefile = true
4
6
 
5
- $:.unshift 'lib'
6
- require 'rdoc'
7
+ Hoe.spec 'rdoc' do
8
+ developer 'Eric Hodel', 'drbrain@segment7.net'
9
+ developer 'Dave Thomas', ''
10
+ developer 'Phil Hagelberg', 'technomancy@gmail.com'
11
+ developer 'Tony Strauss', 'tony.strauss@designingpatterns.com'
7
12
 
8
- Hoe.new "rdoc", RDoc::VERSION do |rdoc|
9
- rdoc.developer 'Eric Hodel', 'drbrain@segment7.net'
10
- rdoc.developer 'Dave Thomas', ''
11
- rdoc.developer 'Phil Hagelberg', 'technomancy@gmail.com'
12
- rdoc.developer 'Tony Strauss', 'tony.strauss@designingpatterns.com'
13
- rdoc.remote_rdoc_dir = ''
14
- rdoc.testlib = :minitest
13
+ self.remote_rdoc_dir = ''
14
+ self.testlib = :minitest
15
15
 
16
- rdoc.extra_dev_deps << ['minitest', '~> 1.3']
17
- rdoc.spec_extras['required_rubygems_version'] = '>= 1.3'
18
- rdoc.spec_extras['homepage'] = 'http://rdoc.rubyforge.org'
16
+ extra_dev_deps << ['minitest', '~> 1.3']
17
+ spec_extras['required_rubygems_version'] = '>= 1.3'
18
+ spec_extras['homepage'] = 'http://rdoc.rubyforge.org'
19
19
  end
20
20
 
21
21
  # These tasks expect to have the following directory structure:
data/bin/rdoc CHANGED
@@ -13,10 +13,6 @@ require 'rdoc/rdoc'
13
13
  begin
14
14
  r = RDoc::RDoc.new
15
15
  r.document ARGV
16
- rescue Interrupt
17
- $stderr.puts
18
- $stderr.puts "Interrupted"
19
- exit 1
20
16
  rescue SystemExit
21
17
  raise
22
18
  rescue Exception => e
@@ -24,12 +20,16 @@ rescue Exception => e
24
20
  $stderr.puts e.message
25
21
  $stderr.puts "#{e.backtrace.join "\n\t"}"
26
22
  $stderr.puts
23
+ elsif Interrupt === e then
24
+ $stderr.puts
25
+ $stderr.puts 'Interrupted'
27
26
  else
28
27
  $stderr.puts "uh-oh! RDoc had a problem:"
29
28
  $stderr.puts e.message
30
29
  $stderr.puts
31
30
  $stderr.puts "run with --debug for full backtrace"
32
31
  end
32
+
33
33
  exit 1
34
34
  end
35
35
 
@@ -19,7 +19,8 @@ $DEBUG_RDOC = nil
19
19
  #
20
20
  # * If you want to use RDoc to create documentation for your Ruby source files,
21
21
  # read on.
22
- # * If you want to include extensions written in C, see RDoc::Parser::C
22
+ # * If you want to generate documentation for extensions written in C, see
23
+ # RDoc::Parser::C
23
24
  # * If you want to drive RDoc programmatically, see RDoc::RDoc.
24
25
  # * If you want to use the library to format text blocks into HTML, have a look
25
26
  # at RDoc::Markup.
@@ -33,6 +34,7 @@ $DEBUG_RDOC = nil
33
34
  # % rdoc [options] [names...]
34
35
  #
35
36
  # For an up-to-date option summary, type
37
+ #
36
38
  # % rdoc --help
37
39
  #
38
40
  # A typical use might be to generate documentation for a package of Ruby
@@ -72,7 +74,7 @@ $DEBUG_RDOC = nil
72
74
  # always will override those in +RDOCOPT+.
73
75
  #
74
76
  # Run:
75
- #
77
+ #
76
78
  # rdoc --help
77
79
  #
78
80
  # for full details on rdoc's options.
@@ -219,7 +221,7 @@ $DEBUG_RDOC = nil
219
221
  # [<tt>\<b>text...</b></tt>] displays word in a *bold* font
220
222
  # [<tt>\<em>text...</em></tt>] displays word in an _emphasized_ font
221
223
  # [<tt>\<i>text...</i></tt>] displays word in an <i>italicized</i> font
222
- # [<tt>\<tt>text...\</tt></tt>] displays word in a +code+ font
224
+ # [<tt>\<tt>text...\</tt></tt>] displays word in a +code+ font
223
225
  #
224
226
  # Unlike conventional Wiki markup, general markup can cross line
225
227
  # boundaries. You can turn off the interpretation of markup by
@@ -330,6 +332,8 @@ $DEBUG_RDOC = nil
330
332
  # last. If you don't specify a +:startdoc:+ by the end of the container,
331
333
  # disables documentation for the entire class or module.
332
334
  #
335
+ # Further directives can be found in RDoc::Parser::Ruby and RDoc::Parser::C
336
+ #
333
337
  # == Other stuff
334
338
  #
335
339
  # RDoc is currently being maintained by Eric Hodel <drbrain@segment7.net>
@@ -342,9 +346,6 @@ $DEBUG_RDOC = nil
342
346
  # work of Keiju ISHITSUKA of Nippon Rational Inc, who produced the Ruby
343
347
  # parser for irb and the rtags package.
344
348
  #
345
- # * Code to diagram classes and modules was written by Sergey A Yanovitsky
346
- # (Jah) of Enticla.
347
- #
348
349
  # * Charset patch from MoonWolf.
349
350
  #
350
351
  # * Rich Kilmer wrote the kilmer.rb output template.
@@ -370,12 +371,19 @@ module RDoc
370
371
 
371
372
  class Error < RuntimeError; end
372
373
 
373
- RDocError = Error # :nodoc:
374
+ def self.const_missing const_name # :nodoc:
375
+ if const_name.to_s == 'RDocError' then
376
+ warn "RDoc::RDocError is deprecated"
377
+ return Error
378
+ end
379
+
380
+ super
381
+ end
374
382
 
375
383
  ##
376
384
  # RDoc version you are using
377
385
 
378
- VERSION = '2.4.3'
386
+ VERSION = '2.5'
379
387
 
380
388
  ##
381
389
  # Name of the dotfile that contains the description of files to be processed
@@ -383,14 +391,29 @@ module RDoc
383
391
 
384
392
  DOT_DOC_FILENAME = ".document"
385
393
 
394
+ ##
395
+ # General RDoc modifiers
396
+
386
397
  GENERAL_MODIFIERS = %w[nodoc].freeze
387
398
 
399
+ ##
400
+ # RDoc modifiers for classes
401
+
388
402
  CLASS_MODIFIERS = GENERAL_MODIFIERS
389
403
 
390
- ATTR_MODIFIERS = GENERAL_MODIFIERS
404
+ ##
405
+ # RDoc modifiers for attributes
406
+
407
+ ATTR_MODIFIERS = GENERAL_MODIFIERS
408
+
409
+ ##
410
+ # RDoc modifiers for constants
391
411
 
392
412
  CONSTANT_MODIFIERS = GENERAL_MODIFIERS
393
413
 
414
+ ##
415
+ # RDoc modifiers for methods
416
+
394
417
  METHOD_MODIFIERS = GENERAL_MODIFIERS +
395
418
  %w[arg args yield yields notnew not-new not_new doc]
396
419