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

ruby-changes:15627

From: jeg2 <ko1@a...>
Date: Thu, 29 Apr 2010 03:51:52 +0900 (JST)
Subject: [ruby-changes:15627] Ruby:r27537 (trunk): * lib/xmlrpc/utils.rb: Fixing an incompatibility with

jeg2	2010-04-29 03:51:35 +0900 (Thu, 29 Apr 2010)

  New Revision: 27537

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27537

  Log:
    * lib/xmlrpc/utils.rb: Fixing an incompatibility with
      reflection methods returning Symbols.  Patch by
      HD Moore.  [ruby-core:29821]

  Modified files:
    trunk/ChangeLog
    trunk/lib/xmlrpc/utils.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27536)
+++ ChangeLog	(revision 27537)
@@ -1,3 +1,9 @@
+Thu Apr 29 03:50:49 2010  James Edward Gray II  <jeg2@r...>
+
+	* lib/xmlrpc/utils.rb: Fixing an incompatibility with
+	  reflection methods returning Symbols.  Patch by
+	  HD Moore.  [ruby-core:29821]
+
 Wed Apr 28 23:53:15 2010  Yusuke Endoh  <mame@t...>
 
 	* lib/thwait.rb: revise rdoc.  a patch from Roger Pack in
Index: lib/xmlrpc/utils.rb
===================================================================
--- lib/xmlrpc/utils.rb	(revision 27536)
+++ lib/xmlrpc/utils.rb	(revision 27537)
@@ -112,7 +112,7 @@
     def get_methods(obj, delim=".")
       prefix = @prefix + delim
       @methods.collect { |name, meth, sig, help|
-        [prefix + name, obj.method(meth).to_proc, sig, help]
+        [prefix + name.to_s, obj.method(meth).to_proc, sig, help]
       }
     end
 
@@ -132,7 +132,7 @@
     def get_methods(obj, delim=".")
       prefix = @prefix + delim
       obj.class.public_instance_methods(false).collect { |name|
-        [prefix + name, obj.method(name).to_proc, nil, nil]
+        [prefix + name.to_s, obj.method(name).to_proc, nil, nil]
       }
     end
   end

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

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