Skip to content
This repository
Browse code

slightly less obtuse than carl

  • Loading branch information...
commit 4ee48da00f16f747da792fc254e0db316a1dc360 1 parent 9dac576
André Arko authored March 03, 2012

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  lib/bundler/index.rb
5  lib/bundler/index.rb
@@ -117,8 +117,9 @@ def size
117 117
     end
118 118
 
119 119
     def ==(o)
120  
-      all? do |s|
121  
-        s2 = o[s].first and (s.dependencies & s2.dependencies).empty?
  120
+      all? do |spec|
  121
+        other_spec = o[spec].first
  122
+        (spec.dependencies & other_spec.dependencies).empty? && spec.source == other_spec.source
122 123
       end
123 124
     end
124 125
 

0 notes on commit 4ee48da

Please sign in to comment.
Something went wrong with that request. Please try again.