summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/source/rubygems.rb2
-rw-r--r--lib/bundler/source_list.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index ed864604fe..9109f399a7 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -11,7 +11,7 @@ module Bundler
API_REQUEST_SIZE = 100
REQUIRE_MUTEX = Mutex.new
- attr_accessor :remotes
+ attr_accessor :remotes, :remote_cooldowns
def initialize(options = {})
@options = options
diff --git a/lib/bundler/source_list.rb b/lib/bundler/source_list.rb
index ab7002d6e5..954efbb65f 100644
--- a/lib/bundler/source_list.rb
+++ b/lib/bundler/source_list.rb
@@ -169,6 +169,10 @@ module Bundler
# locked sources never include credentials so always prefer remotes from the gemfile
replacement_source.remotes = gemfile_source.remotes
+ # cooldowns are only ever declared in the Gemfile, so carry them over
+ # along with the remotes they apply to
+ replacement_source.remote_cooldowns = gemfile_source.remote_cooldowns
+
yield replacement_source if block_given?
replacement_source