From e5c06005f182a980637069659843e89f48f5566c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 19 Jul 2024 11:48:28 +0900 Subject: [PATCH] mustermann depends on URI::RFC2396_PARSER behavior It's part of dependencies for Sinatra. we should fix mustermann before final release of Ruby 3.4 --- spec/bundler/install/gems/dependency_api_fallback_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/bundler/install/gems/dependency_api_fallback_spec.rb b/spec/bundler/install/gems/dependency_api_fallback_spec.rb index 56a71f252b..5e700ea976 100644 --- a/spec/bundler/install/gems/dependency_api_fallback_spec.rb +++ b/spec/bundler/install/gems/dependency_api_fallback_spec.rb @@ -12,6 +12,9 @@ RSpec.describe "gemcutter's dependency API" do require_relative "../../support/artifice/endpoint_timeout" + # mustermann depends on URI::RFC2396_PARSER behavior + URI.parser = URI::RFC2396_PARSER if URI.respond_to?(:parser=) + @t = Thread.new do server = Rack::Server.start(app: EndpointTimeout, Host: "0.0.0.0", @@ -31,6 +34,8 @@ RSpec.describe "gemcutter's dependency API" do Artifice.deactivate @t.kill @t.join + + URI.parser = URI::DEFAULT_PARSER if URI.respond_to?(:parser=) end it "times out and falls back on the modern index" do