From 0798969a8b29b44bf2cfaa5a12c94f24eced09dc Mon Sep 17 00:00:00 2001 From: "Samuel E. Giddins" Date: Fri, 27 Mar 2015 13:20:39 -0700 Subject: [LazySpecification] Uniq dependencies in lockfile representation --- lib/bundler/lazy_specification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index bdcf2df2cc..8fc0e968aa 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -41,7 +41,7 @@ module Bundler out = " #{name} (#{version}-#{platform})\n" end - dependencies.sort_by {|d| d.to_s }.each do |dep| + dependencies.sort_by {|d| d.to_s }.uniq.each do |dep| next if dep.type == :development out << " #{dep.to_lock}\n" end -- cgit v1.2.1