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
This commit is contained in:
Hiroshi SHIBATA 2024-07-19 11:48:28 +09:00
Родитель 3222c67262
Коммит e5c06005f1
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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