Skip to content

Commit a88c5b5

Browse files
committed
Use cgi/util if that uses like CGI.escape methods
1 parent bf3be27 commit a88c5b5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/bundler/fetcher/dependency.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require_relative "base"
4-
require "cgi"
4+
require "cgi/util"
55

66
module Bundler
77
class Fetcher

lib/bundler/friendly_errors.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def serialized_exception_for(e)
102102
def issues_url(exception)
103103
message = exception.message.lines.first.tr(":", " ").chomp
104104
message = message.split("-").first if exception.is_a?(Errno)
105-
require "cgi"
105+
require "cgi/util"
106106
"https://github.com/rubygems/rubygems/search?q=" \
107107
"#{CGI.escape(message)}&type=Issues"
108108
end

lib/rubygems/uri_formatter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Gem::UriFormatter
1717
# Creates a new URI formatter for +uri+.
1818

1919
def initialize(uri)
20-
require "cgi"
20+
require "cgi/util"
2121

2222
@uri = uri
2323
end

prism/templates/lib/prism/dot_visitor.rb.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "cgi"
1+
require "cgi/util"
22

33
module Prism
44
# This visitor provides the ability to call Node#to_dot, which converts a

0 commit comments

Comments
 (0)