ruby/lib/cgi/util.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
304 B
Ruby

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