diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-06-13 10:57:04 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-06-13 12:55:15 +0900 |
commit | 64c421db20f391a893d53cc098ec2dbbe9d45962 (patch) | |
tree | a2b72d734a2d69231b014ac09dfbf9931f029b19 | |
parent | 22a7f6b6c257e2ceb10a1f2ef304d6e94b5b9b2b (diff) |
[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.
```
https://github.com/rubygems/rubygems/commit/a23a951004
-rw-r--r-- | spec/bundler/bundler/friendly_errors_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/bundler/bundler/friendly_errors_spec.rb b/spec/bundler/bundler/friendly_errors_spec.rb index e0310344fd..d6a9d4813d 100644 --- a/spec/bundler/bundler/friendly_errors_spec.rb +++ b/spec/bundler/bundler/friendly_errors_spec.rb @@ -2,7 +2,8 @@ require "bundler" require "bundler/friendly_errors" -require "cgi" +require "cgi/escape" +require "cgi/util" unless defined?(CGI::EscapeExt) RSpec.describe Bundler, "friendly errors" do context "with invalid YAML in .gemrc" do |