lib/bundler/definition.rb in bundler-1.9.5 vs lib/bundler/definition.rb in bundler-1.9.6

- old
+ new

@@ -519,10 +519,10 @@ end converged = [] @locked_specs.each do |s| # Replace the locked dependency's source with the equivalent source from the Gemfile - dep = @dependencies.find { |dep| s.satisfies?(dep) } + dep = @dependencies.find { |d| s.satisfies?(d) } s.source = (dep && dep.source) || sources.get(s.source) # Don't add a spec to the list if its source is expired. For example, # if you change a Git gem to Rubygems. next if s.source.nil? || @unlock[:sources].include?(s.name)