diff options
author | Tim Moore <tmoore@incrementalism.net> | 2015-03-03 18:32:44 +1100 |
---|---|---|
committer | Tim Moore <tmoore@incrementalism.net> | 2015-03-03 18:32:44 +1100 |
commit | 1c6ed5a9629851613aee87c454d64f15bc80fa12 (patch) | |
tree | 6588d0c59f03c5348693f7427cf650e772609449 | |
parent | d8f61693cc89476c1ee3cc01ccf03c0908531a4d (diff) | |
parent | 10995e00638e4c54b7c54f063717ad167eb937bd (diff) | |
download | bundler-1c6ed5a9629851613aee87c454d64f15bc80fa12.tar.gz |
Merge pull request #3452 from neerfri/add-debug-message-for-api-request-limit
add debug log for api request limit
-rw-r--r-- | lib/bundler/source/rubygems.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index 9aa7019e4c..751777dc4a 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -302,6 +302,8 @@ module Bundler # 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| |