Method: Bundler::Fetcher::CompactIndex#available?

Defined in:
lib/bundler/fetcher/compact_index.rb

#available?Boolean

Returns:

  • (Boolean)

49
50
51
52
53
54
55
56
57
58
59
# File 'lib/bundler/fetcher/compact_index.rb', line 49

def available?
  unless SharedHelpers.md5_available?
    Bundler.ui.debug("FIPS mode is enabled, bundler can't use the CompactIndex API")
    return nil
  end
  # Read info file checksums out of /versions, so we can know if gems are up to date
  compact_index_client.available?
rescue CompactIndexClient::Updater::MismatchedChecksumError => e
  Bundler.ui.debug(e.message)
  nil
end