mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/code_objects.rb: Remove debugging Kernel#p. Patch by Lincoln Stoll
<lstoll at lstoll.net> * lib/rdoc/generator/html.rb: Fully qualify AllReferences. Patch by Lincoln Stoll <lstoll at lstoll.net> * lib/rdoc/ri/writer.rb: Fix 1.8 backwards compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
31b604a3f3
commit
0d3f9dbfe1
4 changed files with 16 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
Sun Mar 9 09:52:00 2008 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rdoc/code_objects.rb: Remove debugging Kernel#p. Patch by
|
||||
Lincoln Stoll <lstoll at lstoll.net>
|
||||
* lib/rdoc/generator/html.rb: Fully qualify AllReferences. Patch by
|
||||
Lincoln Stoll <lstoll at lstoll.net>
|
||||
* lib/rdoc/ri/writer.rb: Fix 1.8 backwards compatibility.
|
||||
|
||||
Sat Mar 8 18:50:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (isdirsep): backslash is valid path separator on cygwin too.
|
||||
|
|
|
@ -410,8 +410,8 @@ module RDoc
|
|||
end
|
||||
if result && method
|
||||
if !result.respond_to?(:find_local_symbol)
|
||||
p result.name
|
||||
p method
|
||||
#p result.name
|
||||
#p method
|
||||
fail
|
||||
end
|
||||
result = result.find_local_symbol(method)
|
||||
|
|
|
@ -247,7 +247,7 @@ class RDoc::Generator::HTML
|
|||
@main_page = @options.main_page
|
||||
@main_page_ref = nil
|
||||
if @main_page
|
||||
@main_page_ref = AllReferences[@main_page]
|
||||
@main_page_ref = RDoc::Generator::AllReferences[@main_page]
|
||||
if @main_page_ref then
|
||||
@main_page_path = @main_page_ref.path
|
||||
else
|
||||
|
|
|
@ -12,7 +12,11 @@ class RDoc::RI::Writer
|
|||
# form (where punctuation is replaced by %xx)
|
||||
|
||||
def self.internal_to_external(name)
|
||||
name.gsub(/\W/) { "%%%02x" % $&[0].ord }
|
||||
if ''.respond_to? :ord then
|
||||
name.gsub(/\W/) { "%%%02x" % $&[0].ord }
|
||||
else
|
||||
name.gsub(/\W/) { "%%%02x" % $&[0] }
|
||||
end
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue