Sha256: 1682f6d4a7433ce7448d4c71fcbab3d041266c5881f6c4a1335c56c8299678a9
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
# encoding: utf-8 module ProxyPacRb # ProxyPac class ProxyPac private attr_reader :path public def initialize(path) @path = path end def content fail end private def read_proxy_pac(path) uri = Addressable::URI.parse(path) uri.path = ::File.expand_path(uri.path) if uri.host.nil? ENV.delete 'HTTP_PROXY' ENV.delete 'HTTPS_PROXY' ENV.delete 'http_proxy' ENV.delete 'https_proxy' open(uri, proxy: false).read end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proxy_pac_rb-0.3.8 | lib/proxy_pac_rb/proxy_pac.rb |
proxy_pac_rb-0.3.7 | lib/proxy_pac_rb/proxy_pac.rb |