algorithmia-ruby
algorithmia-ruby copied to clipboard
File saving in ruby 2.7 is showing "warning: URI.escape is obsolete"
The actual problem seems to be URI.encode, which is an alias for URI.escape. I think this could be changed to just CGI.encode the file name in lines 51 and 70 of lib/algorithmia/data_directory. I'll research further and open a PR as soon as possible, but could use some feedback on this if possible.