This commit is contained in:
David Rodríguez 2024-09-24 15:08:41 +02:00 коммит произвёл Hiroshi SHIBATA
Родитель b7674a1285
Коммит b2ee760f30
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
4 изменённых файлов: 29 добавлений и 22 удалений

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

@ -15,13 +15,15 @@ RSpec.describe "gemcutter's dependency API" do
# mustermann depends on URI::RFC2396_PARSER behavior
URI.parser = URI::RFC2396_PARSER if URI.respond_to?(:parser=)
require "rackup/server"
@t = Thread.new do
server = Rack::Server.start(app: EndpointTimeout,
Host: "0.0.0.0",
Port: port,
server: "webrick",
AccessLog: [],
Logger: Spec::SilentLogger.new)
server = Rackup::Server.start(app: EndpointTimeout,
Host: "0.0.0.0",
Port: port,
server: "webrick",
AccessLog: [],
Logger: Spec::SilentLogger.new)
server.start
end
@t.run

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

@ -39,13 +39,15 @@ RSpec.describe "fetching dependencies with a mirrored source", realworld: true d
require_relative "../support/artifice/endpoint_mirror_source"
require "rackup/server"
@t = Thread.new do
Rack::Server.start(app: EndpointMirrorSource,
Host: "0.0.0.0",
Port: @port,
server: "webrick",
AccessLog: [],
Logger: Spec::SilentLogger.new)
Rackup::Server.start(app: EndpointMirrorSource,
Host: "0.0.0.0",
Port: @port,
server: "webrick",
AccessLog: [],
Logger: Spec::SilentLogger.new)
end.run
wait_for_server("127.0.0.1", @port)

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

@ -112,13 +112,15 @@ RSpec.describe "fetching dependencies with a not available mirror", realworld: t
require_relative "../support/artifice/endpoint"
require "rackup/server"
@server_thread = Thread.new do
Rack::Server.start(app: Endpoint,
Host: host,
Port: @server_port,
server: "webrick",
AccessLog: [],
Logger: Spec::SilentLogger.new)
Rackup::Server.start(app: Endpoint,
Host: host,
Port: @server_port,
server: "webrick",
AccessLog: [],
Logger: Spec::SilentLogger.new)
end.run
wait_for_server(host, @server_port)

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

@ -2,12 +2,13 @@
source "https://rubygems.org"
gem "rack", "~> 2.0"
gem "rack", "~> 3.0"
gem "rackup", "~> 2.1"
gem "base64"
gem "webrick", "1.7.0"
gem "rack-test", "~> 1.1"
gem "webrick", "~> 1.8"
gem "rack-test", "~> 2.1"
gem "compact_index", "~> 0.15.0"
gem "sinatra", "~> 3.0"
gem "sinatra", "~> 4.0"
gem "rake", "~> 13.1"
gem "builder", "~> 3.2"
gem "rb_sys"