Commit f546a86
authored
Only load from
# Description
In Ruby 3.5 most of the cgi gem will be removed. Only the various
escape/unescape methods will be retained by default.
But:
* On Ruby 3.5, `cgi/escape` is enough
* Earlier versions need `cgi/util` since the unescape methods don't work
otherwise.
I tested this down to Ruby 2.0.
https://bugs.ruby-lang.org/issues/21258
# Completed Tasks
- [x] I have read the [Contributing Guide][contrib].
- [x] The pull request is complete (implemented / written).
- [x] Git commits have been cleaned up (squash WIP / revert commits).
- [ ] I wrote tests and ran `bundle exec rake` locally (if code is
attached to PR).
[contrib]: https://github.com/lsegal/yard/blob/main/CONTRIBUTING.mdcgi what is required for Ruby 3.5 (#1616)2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
0 commit comments