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

ruby-changes:9341

From: yugui <ko1@a...>
Date: Fri, 19 Dec 2008 20:37:56 +0900 (JST)
Subject: [ruby-changes:9341] Ruby:r20879 (ruby_1_9_1): merges r20854 from trunk into ruby_1_9_1.

yugui	2008-12-19 20:37:33 +0900 (Fri, 19 Dec 2008)

  New Revision: 20879

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

  Log:
    merges r20854 from trunk into ruby_1_9_1.
    * lib/xmlrpc/server.rb:  Restricting method inspection to show only
      non-inherited public methods.  [ruby-core:20603]
    * lib/xmlrpc/server.rb:  Fixing method inspection so it doesn't
      trigger XMLRPC::FaultException when used.  [ruby-core:20604]

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/lib/xmlrpc/server.rb

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 20878)
+++ ruby_1_9_1/ChangeLog	(revision 20879)
@@ -1,3 +1,11 @@
+Thu Dec 18 08:15:04 2008  James Edward Gray II  <jeg2@r...>
+
+	* lib/xmlrpc/server.rb:  Restricting method inspection to show only
+	  non-inherited public methods.  [ruby-core:20603]
+
+	* lib/xmlrpc/server.rb:  Fixing method inspection so it doesn't 
+	  trigger XMLRPC::FaultException when used.  [ruby-core:20604]
+
 Wed Dec 17 19:39:44 2008  Tanaka Akira  <akr@f...>
 
 	* ext/socket/socket.c (unix_recv_io): relax msg_controllen error
Index: ruby_1_9_1/lib/xmlrpc/server.rb
===================================================================
--- ruby_1_9_1/lib/xmlrpc/server.rb	(revision 20878)
+++ ruby_1_9_1/lib/xmlrpc/server.rb	(revision 20879)
@@ -267,7 +267,9 @@
         if obj.kind_of? Proc
           methods << name
         else
-          obj.methods.each {|meth| methods << name + meth}
+          obj.class.public_instance_methods(false).each do |meth|
+            methods << "#{name}#{meth}"
+          end
         end
       end
       methods

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

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