Logo
Explore Help
Sign In
1berry/ruby
1
0
Fork 0
You've already forked ruby
Code Issues Packages Projects Releases Wiki Activity
ruby/lib/cgi/util.rb

8 lines
304 B
Ruby
Raw Permalink Normal View History

Added migration wrapper for cgi.rb and cgi/util.rb
2025-05-08 20:01:09 +09:00
# frozen_string_literal: true
require "cgi/escape"
Fix uplevel for `cgi` under bundler Since there is `bundled_gems.rb` it is not always one. Fixes the following: ```sh $ ruby -w -rbundler/inline -e "gemfile {}; require 'cgi'" /home/earlopain/.rbenv/versions/ruby-dev/lib/ruby/3.5.0+0/bundled_gems.rb:59: warning: 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. ``` into: ```sh $ ruby -w -rbundler/inline -e "gemfile {}; require 'cgi'" -e:1: warning: 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. ```
2025-05-14 19:56:21 +02:00
warn <<-WARNING, uplevel: Gem::BUNDLED_GEMS.uplevel if $VERBOSE
Added migration wrapper for cgi.rb and cgi/util.rb
2025-05-08 20:01:09 +09:00
CGI::Util is removed from Ruby 3.5. Please use cgi/escape instead for CGI.escape and CGI.unescape features.
Added warning for CGI.parse
2025-06-04 12:47:09 +09:00
If you are using CGI.parse, please install and use the cgi gem instead.
Added migration wrapper for cgi.rb and cgi/util.rb
2025-05-08 20:01:09 +09:00
WARNING
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 1114ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API