lib/proxifier.rb in proxifier-fork-1.0.4 vs lib/proxifier.rb in proxifier-fork-1.1.0

- old
+ new

@@ -1,16 +1,19 @@ +# frozen_string_literal: true + require "uri" -require "uri/socks" +require_relative "uri/socks" -module Proxifier - require "proxifier/version" +require_relative "proxifier/version" - autoload :HTTPProxy, "proxifier/proxies/http" - autoload :SOCKSProxy, "proxifier/proxies/socks" - autoload :SOCKS5Proxy, "proxifier/proxies/socks" - autoload :SOCKS4Proxy, "proxifier/proxies/socks4" - autoload :SOCKS4AProxy, "proxifier/proxies/socks4a" +require_relative "proxifier/proxy" +require_relative "proxifier/proxies/http" +require_relative "proxifier/proxies/socks" +require_relative "proxifier/proxies/socks" +require_relative "proxifier/proxies/socks4" +require_relative "proxifier/proxies/socks4a" +module Proxifier def self.Proxy(url, options = {}) url = URI.parse(url) raise(ArgumentError, "proxy url has no scheme") unless url.scheme begin