Skip to content

Commit 9b7c6ca

Browse files
committed
2.4.3
1 parent ad8d95a commit 9b7c6ca

23 files changed

+989
-436
lines changed

History.txt

+31
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
=== 2.4.3 / 2009-04-01
2+
3+
* 2 Bug Fixes
4+
* Corrected patch for file links
5+
* Corrected display of file popup
6+
7+
=== 2.4.2 / 2009-03-25
8+
9+
* 2 Minor Enhancements
10+
* Added --pipe for turning RDoc on stdin into HTML
11+
* Added rdoc/task.rb containing a replacement for rake/rdoctask.rb. Use
12+
RDoc::Task now instead of Rake::RDocTask.
13+
14+
* 10 Bug Fixes
15+
* Writing the ri cache file to the proper directory. Bug #24459 by Lars
16+
Christensen.
17+
* Possible fix for Dir::[] and Pathname interaction on 1.9. Bug #24650 by
18+
tiburon.
19+
* Fixed scanning constants for if/end, etc. pairs. Bug #24609 by Ryan
20+
Davis.
21+
* Fixed private methods in the C parser. Bug #24599 by Aaron Patterson.
22+
* Fixed display of markup on RDoc main page. Bug #24168 by rhubarb.
23+
* Fixed display of \\ character in documentation proceeding words.
24+
Bug #22112 by James Gray. See RDoc for details.
25+
* Fixed parsing and display of arg params for some corner cases. Bug #21113
26+
by Csiszár Attila.
27+
* Fixed links in Files box. Patch #24403 by Eric Wong.
28+
* Toplevel methods now appear in Object. Bug #22677 by Ryan Davis.
29+
* Added back --promiscuous which didn't do anything you cared about. Why
30+
did you enable it? Nobody looked at that page! Oh, it warns, too.
31+
132
=== 2.4.1 / 2009-02-26
233

334
* 1 Minor Enhancements

Manifest.txt

+2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ lib/rdoc/ri/util.rb
9292
lib/rdoc/ri/writer.rb
9393
lib/rdoc/single_class.rb
9494
lib/rdoc/stats.rb
95+
lib/rdoc/task.rb
9596
lib/rdoc/tokenstream.rb
9697
lib/rdoc/top_level.rb
9798
test/binary.dat
@@ -119,6 +120,7 @@ test/test_rdoc_ri_driver.rb
119120
test/test_rdoc_ri_formatter.rb
120121
test/test_rdoc_ri_html_formatter.rb
121122
test/test_rdoc_ri_overstrike_formatter.rb
123+
test/test_rdoc_task.rb
122124
test/test_rdoc_top_level.rb
123125
test/xref_data.rb
124126
test/xref_test_case.rb

Rakefile

+2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ Hoe.new "rdoc", RDoc::VERSION do |rdoc|
1111
rdoc.developer 'Phil Hagelberg', '[email protected]'
1212
rdoc.developer 'Tony Strauss', '[email protected]'
1313
rdoc.remote_rdoc_dir = ''
14+
rdoc.testlib = :minitest
1415

1516
rdoc.extra_dev_deps << ['minitest', '~> 1.3']
1617
rdoc.spec_extras['required_rubygems_version'] = '>= 1.3'
18+
rdoc.spec_extras['homepage'] = 'http://rdoc.rubyforge.org'
1719
end
1820

1921
# These tasks expect to have the following directory structure:

lib/rdoc.rb

+17-24
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
# recursively for C and Ruby source files only.
6262
#
6363
# == \Options
64+
#
6465
# rdoc can be passed a variety of command-line options. In addition,
6566
# options can be specified via the +RDOCOPT+ environment variable, which
6667
# functions similarly to the +RUBYOPT+ environment variable.
@@ -70,28 +71,15 @@
7071
# will make rdoc default to inline method source code. Command-line options
7172
# always will override those in +RDOCOPT+.
7273
#
73-
# Run
74+
# Run:
7475
#
75-
# % rdoc --help
76+
# rdoc --help
7677
#
7778
# for full details on rdoc's options.
7879
#
79-
# Here are some of the most commonly used options.
80-
# [-d, --diagram]
81-
# Generate diagrams showing modules and
82-
# classes. You need dot V1.8.6 or later to
83-
# use the --diagram option correctly. Dot is
84-
# available from http://graphviz.org
85-
#
86-
# [-S, --inline-source]
87-
# Show method source code inline, rather than via a popup link.
88-
#
89-
# [-T, --template=NAME]
90-
# Set the template used when generating output.
91-
#
9280
# == Documenting Source Code
9381
#
94-
# Comment blocks can be written fairly naturally, either using +#+ on
82+
# Comment blocks can be written fairly naturally, either using <tt>#</tt> on
9583
# successive lines of the comment, or by including the comment in
9684
# a =begin/=end block. If you use the latter form, the =begin line must be
9785
# flagged with an RDoc tag:
@@ -150,6 +138,11 @@
150138
# +:yields:+ is an example of a documentation directive. These appear
151139
# immediately after the start of the document element they are modifying.
152140
#
141+
# RDoc automatically cross-references words with underscores or camel-case.
142+
# To suppress cross-references, prefix the word with a \\ character. To
143+
# include special characters like "\\n", you'll need to use two \\
144+
# characters like "\\\\\\n".
145+
#
153146
# == \Markup
154147
#
155148
# * The markup engine looks for a document's natural left margin. This is
@@ -216,17 +209,17 @@
216209
#
217210
# Word-based markup uses flag characters around individual words:
218211
#
219-
# [\*word*] displays word in a *bold* font
220-
# [\_word_] displays word in an _emphasized_ font
221-
# [\+word+] displays word in a +code+ font
212+
# [<tt>\*word*</tt>] displays word in a *bold* font
213+
# [<tt>\_word_</tt>] displays word in an _emphasized_ font
214+
# [<tt>\+word+</tt>] displays word in a +code+ font
222215
#
223216
# General markup affects text between a start delimiter and and end
224217
# delimiter. Not surprisingly, these delimiters look like HTML markup.
225218
#
226-
# [\<b>text...</b>] displays word in a *bold* font
227-
# [\<em>text...</em>] displays word in an _emphasized_ font
228-
# [\<i>text...</i>] displays word in an <i>italicized</i> font
229-
# [\<tt>text...</tt>] displays word in a +code+ font
219+
# [<tt>\<b>text...</b></tt>] displays word in a *bold* font
220+
# [<tt>\<em>text...</em></tt>] displays word in an _emphasized_ font
221+
# [<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
230223
#
231224
# Unlike conventional Wiki markup, general markup can cross line
232225
# boundaries. You can turn off the interpretation of markup by
@@ -382,7 +375,7 @@ class Error < RuntimeError; end
382375
##
383376
# RDoc version you are using
384377

385-
VERSION = "2.4.1"
378+
VERSION = '2.4.3'
386379

387380
##
388381
# Name of the dotfile that contains the description of files to be processed

lib/rdoc/context.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def add_include(include)
361361

362362
def add_method(method)
363363
method.visibility = @visibility
364-
add_to(@method_list, method)
364+
add_to @method_list, method
365365

366366
unmatched_alias_list = @unmatched_alias_lists[method.name]
367367
if unmatched_alias_list then

lib/rdoc/generator/darkfish.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def write_style_sheet
155155

156156
FileUtils.cp @template_dir + 'rdoc.css', '.', options
157157

158-
Dir[@template_dir + "{js,images}/**/*"].each do |path|
158+
Dir[(@template_dir + "{js,images}/**/*").to_s].each do |path|
159159
next if File.directory? path
160160
next if path =~ /#{File::SEPARATOR}\./
161161

lib/rdoc/generator/template/darkfish/classpage.rhtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div class="section-body">
2929
<ul>
3030
<% klass.in_files.each do |tl| %>
31-
<li><a href="<%= rel_prefix %>/<%= h tl.absolute_name %>.html?TB_iframe=true&amp;height=550&amp;width=785"
31+
<li><a href="<%= rel_prefix %>/<%= h tl.path %>?TB_iframe=true&amp;height=550&amp;width=785"
3232
class="thickbox" title="<%= h tl.absolute_name %>"><%= h tl.absolute_name %></a></li>
3333
<% end %>
3434
</ul>

lib/rdoc/generator/template/darkfish/filepage.rhtml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<% if file.parser == RDoc::Parser::Simple %>
2424
<body class="file">
25-
<div id="metadata">
25+
<div id="metadata">
2626
<div id="project-metadata">
2727
<% simple_files = @files.select { |f| f.parser == RDoc::Parser::Simple } %>
2828
<% unless simple_files.empty? then %>
@@ -98,7 +98,9 @@
9898
href="<%= file.cvs_url %>"><%= file.cvs_url %></a></dd>
9999
<% end %>
100100
</dl>
101+
</div>
101102

103+
<div id="documentation">
102104
<% if file.comment %>
103105
<div class="description">
104106
<h2>Description</h2>

lib/rdoc/markup/attribute_manager.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def flow(str)
227227

228228
unmask_protected_sequences
229229

230-
return split_into_flow
230+
split_into_flow
231231
end
232232

233233
##
@@ -304,7 +304,7 @@ def split_into_flow
304304
# and reset to all attributes off
305305
res << change_attribute(current_attr, 0) if current_attr != 0
306306

307-
return res
307+
res
308308
end
309309

310310
end

lib/rdoc/markup/to_html_crossref.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ def handle_special_CROSSREF(special)
121121

122122
ref = @context.find_symbol lookup unless ref
123123

124-
out = if lookup =~ /^\\/ then
124+
out = if lookup == '\\' then
125+
lookup
126+
elsif lookup =~ /^\\/ then
125127
$'
126128
elsif ref and ref.document_self then
127129
"<a href=\"#{ref.as_href(@from_path)}\">#{name}</a>"

0 commit comments

Comments
 (0)