[前][次][番号順一覧][スレッド一覧]

ruby-changes:4243

From: ko1@a...
Date: Sun, 9 Mar 2008 09:59:39 +0900 (JST)
Subject: [ruby-changes:4243] drbrain - Ruby:r15733 (trunk): * lib/rdoc/code_objects.rb: Remove debugging Kernel#p. Patch by Lincoln Stoll

drbrain	2008-03-09 09:59:23 +0900 (Sun, 09 Mar 2008)

  New Revision: 15733

  Modified files:
    trunk/ChangeLog
    trunk/lib/rdoc/code_objects.rb
    trunk/lib/rdoc/generator/html.rb
    trunk/lib/rdoc/ri/writer.rb

  Log:
    * 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.
    


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rdoc/generator/html.rb?r1=15733&r2=15732&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15733&r2=15732&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rdoc/ri/writer.rb?r1=15733&r2=15732&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rdoc/code_objects.rb?r1=15733&r2=15732&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 15732)
+++ ChangeLog	(revision 15733)
@@ -1,3 +1,11 @@
+Sun Mar  9 09:52:00 2008  Eric Hodel  <drbrain@s...>
+
+	* 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@r...>
 
 	* file.c (isdirsep): backslash is valid path separator on cygwin too.
Index: lib/rdoc/code_objects.rb
===================================================================
--- lib/rdoc/code_objects.rb	(revision 15732)
+++ lib/rdoc/code_objects.rb	(revision 15733)
@@ -410,8 +410,8 @@
       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)
Index: lib/rdoc/generator/html.rb
===================================================================
--- lib/rdoc/generator/html.rb	(revision 15732)
+++ lib/rdoc/generator/html.rb	(revision 15733)
@@ -247,7 +247,7 @@
     @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
Index: lib/rdoc/ri/writer.rb
===================================================================
--- lib/rdoc/ri/writer.rb	(revision 15732)
+++ lib/rdoc/ri/writer.rb	(revision 15733)
@@ -12,7 +12,11 @@
   # 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
 
   ##

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]