Add partial support for ruby 3 / 3.1 - #527
Conversation
This has been detected by my gem's tests
|
I don't think I think using |
|
I think the bigger question is whether any of these should keep |
|
This correctly identifies all thirteen One thing worth flagging on the replacement, though: CGI.escape("sp ace") # => "sp+ace"
Fog::OpenStack.escape("sp ace") # => "sp%20ace"So
object_name = container ? "#{container}/#{name}" : name
The gem already has a helper for exactly this — Fog::OpenStack.escape(object_name, '/')I have opened #554 taking that approach, with specs covering the space and separator cases. It is built on the call sites you identified here — happy to close mine if you would rather update this one instead. |
This basically replaces all
URI.encodeoccurences withCGI.escapeAs the maintainer of activestorage-openstack. this has made my test suite pass both on ruby
3.0and3.1so the change should be enough for the storage componentIt would be much appreciated if a release is made with this PR merged 🙏🏼
Fixes #522