Skip to content

Commit

Permalink
slightly less obtuse than carl
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Mar 3, 2012
1 parent 9dac576 commit 4ee48da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/bundler/index.rb
Expand Up @@ -117,8 +117,9 @@ def size
end

def ==(o)
all? do |s|
s2 = o[s].first and (s.dependencies & s2.dependencies).empty?
all? do |spec|
other_spec = o[spec].first
(spec.dependencies & other_spec.dependencies).empty? && spec.source == other_spec.source
end
end

Expand Down

0 comments on commit 4ee48da

Please sign in to comment.