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.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
311 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 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
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 126ms Template: 2ms
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