* 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
@ -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>
|
Sat Mar 8 18:50:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* file.c (isdirsep): backslash is valid path separator on cygwin too.
|
* file.c (isdirsep): backslash is valid path separator on cygwin too.
|
||||||
|
@ -410,8 +410,8 @@ module RDoc
|
|||||||
end
|
end
|
||||||
if result && method
|
if result && method
|
||||||
if !result.respond_to?(:find_local_symbol)
|
if !result.respond_to?(:find_local_symbol)
|
||||||
p result.name
|
#p result.name
|
||||||
p method
|
#p method
|
||||||
fail
|
fail
|
||||||
end
|
end
|
||||||
result = result.find_local_symbol(method)
|
result = result.find_local_symbol(method)
|
||||||
|
@ -247,7 +247,7 @@ class RDoc::Generator::HTML
|
|||||||
@main_page = @options.main_page
|
@main_page = @options.main_page
|
||||||
@main_page_ref = nil
|
@main_page_ref = nil
|
||||||
if @main_page
|
if @main_page
|
||||||
@main_page_ref = AllReferences[@main_page]
|
@main_page_ref = RDoc::Generator::AllReferences[@main_page]
|
||||||
if @main_page_ref then
|
if @main_page_ref then
|
||||||
@main_page_path = @main_page_ref.path
|
@main_page_path = @main_page_ref.path
|
||||||
else
|
else
|
||||||
|
@ -12,7 +12,11 @@ class RDoc::RI::Writer
|
|||||||
# form (where punctuation is replaced by %xx)
|
# form (where punctuation is replaced by %xx)
|
||||||
|
|
||||||
def self.internal_to_external(name)
|
def self.internal_to_external(name)
|
||||||
|
if ''.respond_to? :ord then
|
||||||
name.gsub(/\W/) { "%%%02x" % $&[0].ord }
|
name.gsub(/\W/) { "%%%02x" % $&[0].ord }
|
||||||
|
else
|
||||||
|
name.gsub(/\W/) { "%%%02x" % $&[0] }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Loading…
x
Reference in New Issue
Block a user