Skip to content

Commit 64c421d

Browse files
committed
[rubygems/rubygems] Surpressing warning for CGI library of Ruby 3.5+
``` ❯ bin/rspec ./spec/bundler/friendly_errors_spec.rb /Users/hsbt/Documents/github.com/rubygems/rubygems/bundler/spec/bundler/friendly_errors_spec.rb:5: 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. ``` ruby/rubygems@a23a951004
1 parent 22a7f6b commit 64c421d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spec/bundler/bundler/friendly_errors_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
require "bundler"
44
require "bundler/friendly_errors"
5-
require "cgi"
5+
require "cgi/escape"
6+
require "cgi/util" unless defined?(CGI::EscapeExt)
67

78
RSpec.describe Bundler, "friendly errors" do
89
context "with invalid YAML in .gemrc" do

0 commit comments

Comments
 (0)