diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-06-06 15:32:26 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-06-06 15:32:26 -0500 |
commit | 0c8cbfd4a186bf37d65a113bc16655013657af56 (patch) | |
tree | 8479b6b7786d98104fbfde3f255ae1295b43d11f | |
parent | 28ab085c47268aca02c5abb465aabff50b326b9c (diff) | |
download | bundler-0c8cbfd4a186bf37d65a113bc16655013657af56.tar.gz |
[SpecSet] Sort by name in #tsort
This is required for backwards compatibility, see
issue #5696 for an example
-rw-r--r-- | lib/bundler/spec_set.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb index 5fd6bd606f..9642633578 100644 --- a/lib/bundler/spec_set.rb +++ b/lib/bundler/spec_set.rb @@ -160,7 +160,8 @@ module Bundler end def tsort_each_node - @specs.each {|s| yield s } + # MUST sort by name for backwards compatibility + @specs.sort_by(&:name).each {|s| yield s } end def spec_for_dependency(dep, match_current_platform) |