diff options
author | Andre Arko <andre@arko.net> | 2012-03-02 23:32:34 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2012-03-02 23:58:51 -0800 |
commit | de572da03f07d61832a2c5f9d3d7f040b8cfedd2 (patch) | |
tree | 3149ad3342d4e4671bdab6ab98bdc0942b7db612 | |
parent | 0ef825d4c0ba3228dc57791687a38c9c78189cdc (diff) | |
download | bundler-de572da03f07d61832a2c5f9d3d7f040b8cfedd2.tar.gz |
turns out arrays are sensitive to order
-rw-r--r-- | lib/bundler/definition.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index b5aad60b2d..11d0318f67 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -1,4 +1,5 @@ require "digest/sha1" +require "set" module Bundler class Definition @@ -371,8 +372,7 @@ module Bundler @sources.map! do |source| @locked_sources.find { |s| s == source } || source end - - changes = changes | (@sources != @locked_sources) + changes = changes | (Set.new(@sources) != Set.new(@locked_sources)) @sources.each do |source| # If the source is unlockable and the current command allows an unlock of @@ -395,8 +395,7 @@ module Bundler dep.source = @sources.find { |s| dep.source == s } end end - @dependencies != @locked_deps - + Set.new(@dependencies) != Set.new(@locked_deps) end # Remove elements from the locked specs that are expired. This will most |