Skip to content

Only load what is required from cgi - #1623

Merged
iMacTia merged 2 commits into
lostisland:mainfrom
Earlopain:cgi-ruby-3.5
May 12, 2025
Merged

iMacTia merged 2 commits into
lostisland:mainfrom
Earlopain:cgi-ruby-3.5

Conversation

@Earlopain

Copy link
Copy Markdown
Contributor

Description

In Ruby 3.5 most of the cgi gem will be removed. Only the various escape/unescape methods will be retained by default.

On older versions, require "cgi/util" is needed because the unescape* methods don't work otherwise.

Additional Notes

https://bugs.ruby-lang.org/issues/21258

In Ruby 3.5 most of the `cgi` gem will be removed. Only the various escape/unescape methods will be retained by default.

On older versions, `require "cgi/util"` is needed because the unescape* methods don't work otherwise.

https://bugs.ruby-lang.org/issues/21258

@iMacTia iMacTia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is passing on all 3.0+ Ruby versions, including 3.5.0.dev, thank you 🙇 !

@iMacTia
iMacTia merged commit bbaa093 into lostisland:main May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants