class Bundler::SourceList
def replace_sources!(replacement_sources)
def replace_sources!(replacement_sources) return true if replacement_sources.empty? [path_sources, git_sources].each do |source_list| source_list.map! do |source| replacement_sources.find {|s| s == source } || source end end replacement_rubygems = replacement_sources.detect {|s| s.is_a?(Source::Rubygems) } @rubygems_aggregate = replacement_rubygems if replacement_rubygems # Return true if there were changes lock_sources.to_set != replacement_sources.to_set || rubygems_remotes.to_set != replacement_rubygems.remotes.to_set end