summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2025-06-17 20:33:45 +0200
committerHiroshi SHIBATA <[email protected]>2025-06-23 11:07:00 +0900
commit627ca420e9f6ab1b3c4c424b9159abb595ffb55c ()
tree8bd095e7051a99c24f1ab3aab7954da47e694147 /lib/bundler
parent746e0d3ef48a1313c67d93cd95c10b0bc9f01d3a (diff)
[rubygems/rubygems] Move `HTTP_ERRORS` together with the other error constants
https://.com/rubygems/rubygems/commit/57e8ae7aa6
-rw-r--r--lib/bundler/fetcher.rb14
1 files changed, 7 insertions, 7 deletions
@@ -72,6 +72,13 @@ module Bundler
end
end
# Exceptions classes that should bypass retry attempts. If your password didn't work the
# first time, it's not going to the third time.
NET_ERRORS = [:HTTPBadGateway, :HTTPBadRequest, :HTTPFailedDependency,
@@ -293,13 +300,6 @@ module Bundler
paths.find {|path| File.file? path }
end
- HTTP_ERRORS = [
- Gem::Timeout::Error, EOFError, SocketError, Errno::ENETDOWN, Errno::ENETUNREACH,
- Errno::EINVAL, Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::EAGAIN,
- Gem::Net::HTTPBadResponse, Gem::Net::HTTPHeaderSyntaxError, Gem::Net::ProtocolError,
- Gem::Net::HTTP::Persistent::Error, Zlib::BufError, Errno::EHOSTUNREACH
- ].freeze
-
def bundler_cert_store
store = OpenSSL::X509::Store.new
ssl_ca_cert = Bundler.settings[:ssl_ca_cert] ||