diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-04-24 10:04:38 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-04-24 12:15:11 +0900 |
commit | a88c5b501ccc0187ac6a6db48d69bc408c50b40d () | |
tree | b4b1127b6c13d62f6bcfa75c66fa61d38beddae7 | |
parent | bf3be2723ab888037c1d47114ffcde85b87155ee (diff) |
Use cgi/util if that uses like CGI.escape methods
-rw-r--r-- | lib/bundler/fetcher/dependency.rb | 2 | ||||
-rw-r--r-- | lib/bundler/friendly_errors.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/uri_formatter.rb | 2 | ||||
-rw-r--r-- | prism/templates/lib/prism/dot_visitor.rb.erb | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ # frozen_string_literal: true require_relative "base" -require "cgi" module Bundler class Fetcher @@ -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 @@ -17,7 +17,7 @@ class Gem::UriFormatter # Creates a new URI formatter for +uri+. def initialize(uri) - require "cgi" @uri = uri end @@ -1,4 +1,4 @@ -require "cgi" module Prism # This visitor provides the ability to call Node#to_dot, which converts a |