aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/lazy_specification.rb
diff options
context:
space:
mode:
authorCorin Langosch <info@netskin.com>2011-04-06 10:32:17 +0200
committerAndre Arko <andre@arko.net>2011-04-06 11:13:55 -0700
commit807c859b39793f7cb770536a29ca7635b9be3433 (patch)
tree6bd69ba37d3dffa0e9a9f69a45dd530559d57210 /lib/bundler/lazy_specification.rb
parent3c5c817e6d4084aa79917734005be92f2a24c9ad (diff)
downloadbundler-807c859b39793f7cb770536a29ca7635b9be3433.tar.gz
Take version into account when sorting dependencies
Diffstat (limited to 'lib/bundler/lazy_specification.rb')
-rw-r--r--lib/bundler/lazy_specification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb
index 9db9b0ed..5924ec60 100644
--- a/lib/bundler/lazy_specification.rb
+++ b/lib/bundler/lazy_specification.rb
@@ -36,7 +36,7 @@ module Bundler
out = " #{name} (#{version}-#{platform})\n"
end
- dependencies.sort_by {|d| d.name }.each do |dep|
+ dependencies.sort_by {|d| d.to_s }.each do |dep|
next if dep.type == :development
out << " #{dep.to_lock}\n"
end