ruby-changes:54180
From: naruse <ko1@a...>
Date: Fri, 14 Dec 2018 18:44:24 +0900 (JST)
Subject: [ruby-changes:54180] naruse:r66401 (trunk): Move autoload to toplevel
naruse 2018-12-14 18:44:20 +0900 (Fri, 14 Dec 2018) New Revision: 66401 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66401 Log: Move autoload to toplevel So that classes which uses Net::HTTP with https can use OpenSSL namespace for example exception classes like OpenSSL::SSL::SSLError. Modified files: trunk/lib/net/http.rb Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 66400) +++ lib/net/http.rb (revision 66401) @@ -22,9 +22,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L22 require_relative 'protocol' require 'uri' +autoload :OpenSSL, 'openssl' module Net #:nodoc: - autoload :OpenSSL, 'openssl' # :stopdoc: class HTTPBadResponse < StandardError; end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/