From 08652f825410d0690831151decd2d84ea207f976 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Feb 2026 15:33:34 +0900 Subject: Added instruction to use 'gem "cgi"' or Bundler --- lib/cgi.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cgi.rb b/lib/cgi.rb index bb306d2e06..0c403bd19c 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -3,5 +3,7 @@ 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. + +If you need to use the full features of CGI library, please add 'gem "cgi"' to your script +or use Bundler to ensure you are using the cgi gem instead of this file. WARNING -- cgit v1.2.3