ruby-changes:44324
From: akr <ko1@a...>
Date: Wed, 12 Oct 2016 01:42:08 +0900 (JST)
Subject: [ruby-changes:44324] akr:r56397 (trunk): forgot to replace two occurences of ENV.
akr 2016-10-12 01:42:05 +0900 (Wed, 12 Oct 2016) New Revision: 56397 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56397 Log: forgot to replace two occurences of ENV. Modified files: trunk/lib/uri/generic.rb Index: lib/uri/generic.rb =================================================================== --- lib/uri/generic.rb (revision 56396) +++ lib/uri/generic.rb (revision 56397) @@ -1547,7 +1547,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/generic.rb#L1547 end name = 'no_proxy' - if no_proxy = ENV[name] || ENV[name.upcase] + if no_proxy = env[name] || env[name.upcase] no_proxy.scan(/(?!\.)([^:,\s]+)(?::(\d+))?/) {|host, port| if (!port || self.port == port.to_i) if /(\A|\.)#{Regexp.quote host}\z/i =~ self.host -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/