lib/google/ads/google_ads/config.rb in google-ads-googleads-8.1.0 vs lib/google/ads/google_ads/config.rb in google-ads-googleads-9.0.0

- old
+ new

@@ -73,9 +73,14 @@ def configure(&block) yield self end def http_proxy=(uri) + if uri.nil? + ENV["http_proxy"] = nil + return + end + u = URI.parse(uri) if u.scheme != "http" && u.scheme != "https" raise ArgumentError, "#{uri} has invalid scheme #{u.scheme}, should be http or https" end