Added migration wrapper for cgi.rb and cgi/util.rb

This commit is contained in:
Hiroshi SHIBATA 2025-05-08 20:01:09 +09:00
parent ce6c1778fb
commit 5aade8a84a
Notes: git 2025-05-09 05:27:41 +00:00
2 changed files with 13 additions and 0 deletions

7
lib/cgi.rb Normal file
View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
require "cgi/escape"
warn <<-WARNING, uplevel: 1 if $VERBOSE
CGI library is removed from Ruby 3.5. 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

6
lib/cgi/util.rb Normal file
View File

@ -0,0 +1,6 @@
# frozen_string_literal: true
require "cgi/escape"
warn <<-WARNING, uplevel: 1 if $VERBOSE
CGI::Util is removed from Ruby 3.5. Please use cgi/escape instead for CGI.escape and CGI.unescape features.
WARNING