mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
A subtle bug slipped through the cracks, where if a resolve timeout error happened, the connection would remain in the pool. Subsequent requests to the same domain would activate it, although no requests would go through it; the actual desired behaviour is to outright remove it from the pool on such errors. This was achieved by registering the "unregister_connection" callback earlier. However, the connection accounting step would only trigger if taking it out of the selector worked, meaning it had been registered before.
122 lines
2.4 KiB
Ruby
122 lines
2.4 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
ruby RUBY_VERSION
|
|
|
|
source "https://rubygems.org"
|
|
gemspec
|
|
|
|
if RUBY_VERSION < "2.2.0"
|
|
gem "rake", "~> 12.3"
|
|
else
|
|
gem "rake", "~> 13.0"
|
|
end
|
|
|
|
group :test do
|
|
gem "http-form_data", ">= 2.0.0"
|
|
gem "minitest"
|
|
gem "minitest-proveit"
|
|
gem "ruby-ntlm"
|
|
gem "sentry-ruby" if RUBY_VERSION >= "2.4"
|
|
gem "spy"
|
|
gem "webmock"
|
|
gem "websocket-driver"
|
|
|
|
gem "net-ssh", "~> 4.2.0" if RUBY_VERSION < "2.2"
|
|
|
|
if RUBY_VERSION >= "2.3"
|
|
gem "ddtrace"
|
|
else
|
|
gem "ddtrace", "< 1.0"
|
|
end
|
|
|
|
platform :mri do
|
|
if RUBY_VERSION >= "2.3"
|
|
gem "google-protobuf", "< 3.19.2" if RUBY_VERSION < "2.5.0"
|
|
gem "grpc"
|
|
gem "logging"
|
|
gem "marcel", require: false
|
|
gem "mimemagic", require: false
|
|
gem "ruby-filemagic", require: false
|
|
end
|
|
end
|
|
|
|
platform :mri, :truffleruby do
|
|
gem "bcrypt_pbkdf"
|
|
gem "benchmark-ips"
|
|
gem "brotli"
|
|
gem "ed25519"
|
|
gem "net-ssh-gateway"
|
|
end
|
|
|
|
platform :mri_21 do
|
|
gem "rbnacl"
|
|
end
|
|
|
|
platform :mri_23 do
|
|
if RUBY_VERSION >= "2.3"
|
|
gem "openssl", "< 2.0.6" # force usage of openssl version we patch against
|
|
end
|
|
gem "msgpack", "<= 1.3.3"
|
|
end
|
|
|
|
platform :jruby do
|
|
gem "jruby-openssl" # , git: "https://github.com/jruby/jruby-openssl.git", branch: "master"
|
|
gem "ruby-debug"
|
|
end
|
|
|
|
gem "aws-sdk-s3"
|
|
gem "faraday"
|
|
gem "idnx" if RUBY_VERSION >= "2.4.0"
|
|
gem "multipart-post", "< 2.2.0" if RUBY_VERSION < "2.3.0"
|
|
gem "oga"
|
|
|
|
if RUBY_VERSION >= "3.0.0"
|
|
gem "rbs"
|
|
gem "rubocop"
|
|
gem "rubocop-performance"
|
|
gem "webrick"
|
|
end
|
|
end
|
|
|
|
group :coverage do
|
|
if RUBY_VERSION < "2.2"
|
|
gem "simplecov", "< 0.11.0"
|
|
elsif RUBY_VERSION < "2.3"
|
|
gem "simplecov", "< 0.11.0"
|
|
elsif RUBY_VERSION < "2.4"
|
|
gem "simplecov", "< 0.19.0"
|
|
elsif RUBY_VERSION < "2.5"
|
|
gem "simplecov", "< 0.21.0"
|
|
else
|
|
gem "simplecov"
|
|
end
|
|
end
|
|
|
|
group :website do
|
|
gem "hanna-nouveau"
|
|
# gem "opal", require: "opal"
|
|
gem "opal", git: "https://github.com/opal/opal.git", branch: "master", platform: :mri
|
|
|
|
gem "jekyll", "~> 4.2.0"
|
|
gem "jekyll-brotli", "~> 2.2.0", platform: :mri
|
|
gem "jekyll-feed", "~> 0.15.1"
|
|
gem "jekyll-gzip", "~> 2.4.1"
|
|
gem "jekyll-paginate-v2", "~> 1.5.2"
|
|
end if RUBY_VERSION > "2.4"
|
|
|
|
group :assorted do
|
|
if RUBY_VERSION < "2.2"
|
|
gem "pry", "~> 0.12.2"
|
|
else
|
|
gem "pry"
|
|
end
|
|
|
|
platform :mri do
|
|
if RUBY_VERSION < "2.2"
|
|
gem "pry-byebug", "~> 3.4.3"
|
|
else
|
|
gem "pry-byebug"
|
|
end
|
|
end
|
|
end
|