diff options
author | Corin Langosch <info@netskin.com> | 2011-04-06 10:32:17 +0200 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-04-06 11:13:55 -0700 |
commit | 807c859b39793f7cb770536a29ca7635b9be3433 (patch) | |
tree | 6bd69ba37d3dffa0e9a9f69a45dd530559d57210 /lib/bundler/lazy_specification.rb | |
parent | 3c5c817e6d4084aa79917734005be92f2a24c9ad (diff) | |
download | bundler-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.rb | 2 |
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 |