lib/rubygems_plugin.rb in rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.60 vs lib/rubygems_plugin.rb in rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.61

- old
+ new

@@ -115,8 +115,18 @@ end def https?(uri) uri.scheme.downcase == 'https' end - + + unless self.method_defined? no_proxy? then + def no_proxy? host + host = host.downcase + get_no_proxy_from_env.each do |pattern| + pattern = pattern.downcase + return true if host[-pattern.length, pattern.length ] == pattern + end + return false + end + end end end