lib/bundler/source_list.rb
def replace_sources!(replacement_sources)
      return true if replacement_sources.empty?

      [path_sources, git_sources, plugin_sources].each do |source_list|
        source_list.map! do |source|
          replacement_sources.find {|s| s == source } || source
        end
      end

      replacement_rubygems = !Bundler.feature_flag.lockfile_uses_separate_rubygems_sources? &&
        replacement_sources.detect {|s| s.is_a?(Source::Rubygems) }
      @rubygems_aggregate = replacement_rubygems if replacement_rubygems

      return true if lock_sources.to_set != replacement_sources.to_set
      return true if replacement_rubygems && rubygems_remotes.to_set != replacement_rubygems.remotes.to_set

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