summaryrefslogtreecommitdiff
path: root/lib/bundler/friendly_errors.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2025-04-24 10:04:38 +0900
committerHiroshi SHIBATA <[email protected]>2025-04-24 12:15:11 +0900
commita88c5b501ccc0187ac6a6db48d69bc408c50b40d ()
treeb4b1127b6c13d62f6bcfa75c66fa61d38beddae7 /lib/bundler/friendly_errors.rb
parentbf3be2723ab888037c1d47114ffcde85b87155ee (diff)
Use cgi/util if that uses like CGI.escape methods
-rw-r--r--lib/bundler/friendly_errors.rb2
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ module Bundler
def issues_url(exception)
message = exception.message.lines.first.tr(":", " ").chomp
message = message.split("-").first if exception.is_a?(Errno)
- require "cgi"
"https://.com/rubygems/rubygems/search?q=" \
"#{CGI.escape(message)}&type=Issues"
end