class Bundler::SourceList
def replace_rubygems_source(replacement_sources, gemfile_source)
def replace_rubygems_source(replacement_sources, gemfile_source) replacement_source = replacement_sources.find {|s| s == gemfile_source } return unless replacement_source # locked sources never include credentials so always prefer remotes from the gemfile replacement_source.remotes = gemfile_source.remotes replacement_source end