1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/xmlrpc/utils.rb: Patch by Nobuhiro IMAI fixes the following

problem: Default value modification on
  Module#public_instance_methods (false -> true) breaks
  s.add_handler(XMLRPC::iPIMethods("sample"), MyHandler.new) style
  security protection.

* lib/xmlrpc/client.rb: Aliased XMLRPC::Client#new2 as
  XMLRPC::Client#new_from_uri, and #new3 as #new_from_hash.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mneumann 2005-06-19 15:47:31 +00:00
parent 716f1d3cbe
commit 4110c8936a
3 changed files with 26 additions and 4 deletions

View file

@ -131,7 +131,7 @@ module XMLRPC
def get_methods(obj, delim=".")
prefix = @prefix + delim
obj.class.public_instance_methods.collect { |name|
obj.class.public_instance_methods(false).collect { |name|
[prefix + name, obj.method(name).to_proc, nil, nil]
}
end