ruby/lib/cgi.rb
Yasuo Honda 50c97e1c78
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.

6d81969b47
2025-11-11 07:58:44 -08:00

8 lines
311 B
Ruby

# frozen_string_literal: true
require "cgi/escape"
warn <<-WARNING, uplevel: Gem::BUNDLED_GEMS.uplevel if $VERBOSE
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