We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90c90ad + 64f026c commit 7feb3c7Copy full SHA for 7feb3c7
2 files changed
bundler/spec/install/gems/dependency_api_fallback_spec.rb
@@ -12,9 +12,6 @@
12
13
require_relative "../../support/artifice/endpoint_timeout"
14
15
- # mustermann depends on URI::RFC2396_PARSER behavior
16
- URI.parser = URI::RFC2396_PARSER if URI.respond_to?(:parser=)
17
-
18
require "rackup/server"
19
20
@t = Thread.new do
@@ -36,8 +33,6 @@
36
33
Artifice.deactivate
37
34
@t.kill
38
35
@t.join
39
40
- URI.parser = URI::DEFAULT_PARSER if URI.respond_to?(:parser=)
41
end
42
43
it "times out and falls back on the modern index" do
lib/rubygems/uri.rb
@@ -30,7 +30,7 @@ def self.parse!(uri)
30
begin
31
Gem::URI.parse(uri)
32
rescue Gem::URI::InvalidURIError
- Gem::URI.parse(Gem::URI::DEFAULT_PARSER.escape(uri))
+ Gem::URI.parse(Gem::URI::RFC2396_PARSER.escape(uri))
0 commit comments