diff options
| author | Yasuo Honda <yasuo.honda@gmail.com> | 2025-11-12 00:58:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-11 07:58:44 -0800 |
| commit | 50c97e1c7807724a87341302b20c3c3bcb46e1db (patch) | |
| tree | aec5bfdfa202cd5ddd55d86b3689edacc6fa5f2b | |
| parent | 1577db908671be93db8277501445c5fc2c6052fc (diff) | |
Update Ruby version to 4.0 for the cgi warnings (#15141)
This commit updates the Ruby version in the error message to follow the commit in Ruby master branch.
https://github.com/ruby/ruby/commit/6d81969b475262aba251e99b518181bdf7c5a523
| -rw-r--r-- | lib/cgi.rb | 2 | ||||
| -rw-r--r-- | lib/cgi/util.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index b041c1bed1..bb306d2e06 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -2,6 +2,6 @@ require "cgi/escape" warn <<-WARNING, uplevel: Gem::BUNDLED_GEMS.uplevel if $VERBOSE -CGI library is removed from Ruby 3.5. Please use cgi/escape instead for CGI.escape and CGI.unescape features. +CGI library is removed from Ruby 4.0. Please use cgi/escape instead for CGI.escape and CGI.unescape features. If you need to use the full features of CGI library, Please install cgi gem. WARNING diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb index 389a04acd2..50a2e91665 100644 --- a/lib/cgi/util.rb +++ b/lib/cgi/util.rb @@ -2,6 +2,6 @@ require "cgi/escape" warn <<-WARNING, uplevel: Gem::BUNDLED_GEMS.uplevel if $VERBOSE -CGI::Util is removed from Ruby 3.5. Please use cgi/escape instead for CGI.escape and CGI.unescape features. +CGI::Util is removed from Ruby 4.0. Please use cgi/escape instead for CGI.escape and CGI.unescape features. If you are using CGI.parse, please install and use the cgi gem instead. WARNING |
