-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby - stop using an obsolete method of Net::HTTP #8408
Ruby - stop using an obsolete method of Net::HTTP #8408
Conversation
@@ -120,16 +120,16 @@ def latest | |||
end | |||
end | |||
|
|||
def net_http | |||
def net_http_start(address, &block) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I write about this in the CHANGE.log as this method is exposed to public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might worth mentioning, but frankly, I don't think this was ever intended to be a public API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution, I'll merge as soon as CI is green!
https://docs.ruby-lang.org/en/2.7.0/Net/HTTP.html#method-c-Proxy Net::HTTP::Proxy is an obsolete method, so replaced it with Net::HTTP.new as the doc above says
f1a69e0
to
2ab56e1
Compare
Thank you! |
https://docs.ruby-lang.org/en/2.7.0/Net/HTTP.html#method-c-Proxy Net::HTTP::Proxy is an obsolete method, so replaced it with Net::HTTP.new as the doc above says
Description
Net::HTTP::Proxy
is an obsolete method, so replaced it withNet::HTTP.new
as the doc says -> https://docs.ruby-lang.org/en/2.7.0/Net/HTTP.html#method-c-ProxyMotivation and Context
To keep the code up to date.
Types of changes
Checklist