Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Lazily load CGI
Browse files Browse the repository at this point in the history
Since cgi is now a default gem on ruby 2.7, we're getting some
unintended activations of the new default gem inside our specs.
  • Loading branch information
deivid-rodriguez committed Nov 27, 2019
1 parent 2a5378c commit 085fb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/friendly_errors.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require "cgi"
require_relative "vendored_thor"

module Bundler
Expand Down Expand Up @@ -114,6 +113,7 @@ def request_issue_report_for(e)
def issues_url(exception)
message = exception.message.lines.first.tr(":", " ").chomp
message = message.split("-").first if exception.is_a?(Errno)
require "cgi"
"https://github.com/bundler/bundler/search?q=" \
"#{CGI.escape(message)}&type=Issues"
end
Expand Down

0 comments on commit 085fb8d

Please sign in to comment.