Bundler::Fetcher
Handles all the fetching with the rubygems server
Constants
FAIL_ERRORS = begin\nfail_errors = [AuthenticationRequiredError, BadAuthenticationError, FallbackError]\nfail_errors << Gem::Requirement::BadRequirementError if defined?(Gem::Requirement::BadRequirementError)\nfail_errors.concat(NET_ERRORS.map {|e| SharedHelpers.const_get_safely(e, Net) }.compact)\nend.freeze
FETCHERS = [CompactIndex, Dependency, Index].freeze
HTTP_ERRORS = [\nTimeout::Error, EOFError, SocketError, Errno::ENETDOWN, Errno::ENETUNREACH,\nErrno::EINVAL, Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::EAGAIN,\nNet::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError,\nPersistentHTTP::Error, Zlib::BufError, Errno::EHOSTUNREACH\n].freeze
NET_ERRORS = [:HTTPBadGateway, :HTTPBadRequest, :HTTPFailedDependency,\n:HTTPForbidden, :HTTPInsufficientStorage, :HTTPMethodNotAllowed,\n:HTTPMovedPermanently, :HTTPNoContent, :HTTPNotFound,\n:HTTPNotImplemented, :HTTPPreconditionFailed, :HTTPRequestEntityTooLarge,\n:HTTPRequestURITooLong, :HTTPUnauthorized, :HTTPUnprocessableEntity,\n:HTTPUnsupportedMediaType, :HTTPVersionNotSupported].freeze
Attributes
| [RW] | api_timeout |
| [RW] | disable_endpoint |
| [RW] | max_retries |
| [RW] | redirect_limit |
Files
- lib/bundler/fetcher.rb
- lib/bundler/fetcher/base.rb
- lib/bundler/fetcher/compact_index.rb
- lib/bundler/fetcher/dependency.rb
- lib/bundler/fetcher/downloader.rb
- lib/bundler/fetcher/index.rb