Method not available on this version
This method is only available on newer versions. The first available version of the method is shown here.
converge_locals()
private
Get all locals and override their matching sources. Return true if any of
the locals changed (for example, they point to a new revision) or depend on new specs.
Show source
def converge_locals
locals = []
Bundler.settings.local_overrides.map do |k, v|
spec = @dependencies.find {|s| s.name == k }
source = spec && spec.source
if source && source.respond_to?(:local_override!)
source.unlock! if @unlock[:gems].include?(spec.name)
locals << [source, source.local_override!(v)]
end
end
sources_with_changes = locals.select do |source, changed|
changed || specs_changed?(source)
end.map(&:first)
!sources_with_changes.each {|source| @unlock[:sources] << source.name }.empty?
end