-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Description
An annoying warning is raised by URI.encode
(which is an alias of URI.escape
) on Ruby 2.7+
docusign_esign-3.0.0/lib/docusign_esign/client/api_client.rb:262: warning: URI.escape is obsolete
Here is an article explaining why. TL;DR it's been obsolete for 10 years now but since Ruby 2.7, the warning is now displayed even when not running in verbose mode.
It's pretty annoying as it can quickly ruin one's logs.
As suggested per the stdlib doc, we could use CGI.escape
instead.
This method is obsolete and should not be used. Instead, use CGI.escape, URI.encode_www_form or URI.encode_www_form_component depending on your specific use case.