fog / fog-openstack

Fog for OpenStack Platform
MIT License
68 stars 130 forks source link

Add partial support for ruby 3 / 3.1 #527

Open chaadow opened 1 year ago

chaadow commented 1 year ago

This basically replaces all URI.encode occurences with CGI.escape

As the maintainer of activestorage-openstack. this has made my test suite pass both on ruby 3.0 and 3.1 so the change should be enough for the storage component

It would be much appreciated if a release is made with this PR merged 🙏🏼

Fixes #522

maciejpankanin commented 1 year ago

I don't think CGI.escape is a good choice here since we need URL escaping. See https://stackoverflow.com/a/13059657/7998769.

I think using addressable gem would be safer.

geemus commented 3 months ago

I think the bigger question is whether any of these should keep / or not (ie it looks like some names might include this, which probably shouldn't be escaped but CGI would escape it). Can anyone speak more authoritatively on whether we should be concerned about this?