[#62904] [ruby-trunk - Feature #9894] [Open] [RFC] README.EXT: document rb_gc_register_mark_object — normalperson@...
Issue #9894 has been reported by Eric Wong.
3 messages
2014/06/02
[#63321] [ANN] ElixirConf 2014 - Don't Miss Jos辿 Valim and Dave Thomas — Jim Freeze <jimfreeze@...>
Just a few more weeks until ElixirConf 2014!
6 messages
2014/06/24
[ruby-core:63381] [ruby-trunk - Bug #9987] [Third Party's Issue] method Net::HTTP methods private
From:
nobu@...
Date:
2014-06-27 22:58:22 UTC
List:
ruby-core #63381
Issue #9987 has been updated by Nobuyoshi Nakada.
Description updated
Status changed from Open to Third Party's Issue
Why is it private?
Who does it?
----------------------------------------
Bug #9987: method Net::HTTP methods private
https://bugs.ruby-lang.org/issues/9987#change-47425
* Author: Douglas Feitosa
* Status: Third Party's Issue
* Priority: Normal
* Assignee:
* Category: lib
* Target version: current: 2.2.0
* ruby -v: 2.1.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~ruby
def HTTP.start(address, *arg, &block) # :yield: +http+
arg.pop if opt = Hash.try_convert(arg[-1])
port, p_addr, p_port, p_user, p_pass = *arg
port = https_default_port if !port && opt && opt[:use_ssl]
http = new(address, port, p_addr, p_port, p_user, p_pass)
if opt
if opt[:use_ssl]
opt = {verify_mode: OpenSSL::SSL::VERIFY_PEER}.update(opt)
end
http.methods.grep(/\A(\w+)=\z/) do |meth|
key = $1.to_sym
opt.key?(key) or next
http.__send__(meth, opt[key])
end
end
http.start(&block)
end
~~~
method 'methods' in http(Net::HTTP) private when running in rake task.
--
https://bugs.ruby-lang.org/