Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
add debug log for api request limit
Browse files Browse the repository at this point in the history
  • Loading branch information
neerfri committed Mar 3, 2015
1 parent d8f6169 commit 10995e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bundler/source/rubygems.rb
Expand Up @@ -302,6 +302,8 @@ def remote_specs
# the gemspecs of those gems, if the non-api sites contain more than
# about 100 gems, we just treat all sites as non-api for speed.
allow_api = idx.size < API_REQUEST_LIMIT && dependency_names.size < API_REQUEST_LIMIT
Bundler.ui.debug "Need to query more than #{API_REQUEST_LIMIT} gems." \
" Downloading full index instead..." unless allow_api

if allow_api
api_fetchers.each do |f|
Expand Down

0 comments on commit 10995e0

Please sign in to comment.