From cf6116150c43ffa8cce7c4d0696bb54a2c8e49a8 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 23 Apr 2012 13:48:36 +0000 Subject: autoload in module scope. * lib/net/http.rb (Net::OpenSSL): get rid of autoload in global scope not to make tests confused. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 7343762564..e0b0dea2bf 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -21,9 +21,9 @@ require 'net/protocol' require 'uri' -autoload :OpenSSL, 'openssl' module Net #:nodoc: + autoload :OpenSSL, 'openssl' # :stopdoc: class HTTPBadResponse < StandardError; end -- cgit v1.2.3