mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use cgi/util if that uses like CGI.escape methods
This commit is contained in:
parent
bf3be2723a
commit
a88c5b501c
4 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require_relative "base"
|
require_relative "base"
|
||||||
require "cgi"
|
require "cgi/util"
|
||||||
|
|
||||||
module Bundler
|
module Bundler
|
||||||
class Fetcher
|
class Fetcher
|
||||||
|
|
|
@ -102,7 +102,7 @@ module Bundler
|
||||||
def issues_url(exception)
|
def issues_url(exception)
|
||||||
message = exception.message.lines.first.tr(":", " ").chomp
|
message = exception.message.lines.first.tr(":", " ").chomp
|
||||||
message = message.split("-").first if exception.is_a?(Errno)
|
message = message.split("-").first if exception.is_a?(Errno)
|
||||||
require "cgi"
|
require "cgi/util"
|
||||||
"https://github.com/rubygems/rubygems/search?q=" \
|
"https://github.com/rubygems/rubygems/search?q=" \
|
||||||
"#{CGI.escape(message)}&type=Issues"
|
"#{CGI.escape(message)}&type=Issues"
|
||||||
end
|
end
|
||||||
|
|
|
@ -17,7 +17,7 @@ class Gem::UriFormatter
|
||||||
# Creates a new URI formatter for +uri+.
|
# Creates a new URI formatter for +uri+.
|
||||||
|
|
||||||
def initialize(uri)
|
def initialize(uri)
|
||||||
require "cgi"
|
require "cgi/util"
|
||||||
|
|
||||||
@uri = uri
|
@uri = uri
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require "cgi"
|
require "cgi/util"
|
||||||
|
|
||||||
module Prism
|
module Prism
|
||||||
# This visitor provides the ability to call Node#to_dot, which converts a
|
# This visitor provides the ability to call Node#to_dot, which converts a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue