class Bundler::Index

def ==(other)

TODO: rename to #include?
Whether all the specs in self are in other
def ==(other)
  all? do |spec|
    other_spec = other[spec].first
    other_spec && dependencies_eql?(spec, other_spec) && spec.source == other_spec.source
  end
end