class Bundler::Fetcher::CompactIndex

def available?

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