Previously, the method #proxy_from_env checked the existence of URI::Generic#find_proxy by using respond_to?(:find_proxy); this method was introduced in Ruby 2.0.0.
Since the latest Faraday requires Ruby 2.6, as specified in faraday.gemspec, there is no need for #proxy_from_env to handle the case where URI::Generic#find_proxy doesn't exist.
Additional Notes
I recommend reviewing this pull request changes with "Hide whitespace."
Description
Previously, the method
#proxy_from_env
checked the existence ofURI::Generic#find_proxy
by usingrespond_to?(:find_proxy)
; this method was introduced in Ruby 2.0.0.Since the latest Faraday requires Ruby 2.6, as specified in
faraday.gemspec
, there is no need for#proxy_from_env
to handle the case whereURI::Generic#find_proxy
doesn't exist.Additional Notes
I recommend reviewing this pull request changes with "Hide whitespace."