diff options
author | Carl Lerche <carllerche@mac.com> | 2010-06-23 16:39:06 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-06-23 16:39:06 -0700 |
commit | d9c8f028524acd8cdf5951454d3a7f46d02d960a (patch) | |
tree | ff629d62762f6e23c14d5b4722b1a70ce8ec784e /lib/bundler/index.rb | |
parent | 2eeff95e617c0bde57fab2eedfbef970b29ec9f9 (diff) | |
download | bundler-d9c8f028524acd8cdf5951454d3a7f46d02d960a.tar.gz |
Unlock specs that don't exist in the path source anymore
Diffstat (limited to 'lib/bundler/index.rb')
-rw-r--r-- | lib/bundler/index.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb index e615cf40..99621335 100644 --- a/lib/bundler/index.rb +++ b/lib/bundler/index.rb @@ -1,5 +1,7 @@ module Bundler class Index + include Enumerable + def self.build i = new yield i @@ -79,6 +81,12 @@ module Bundler self end + def ==(o) + all? do |s| + s2 = o[s].first and (s.dependencies & s2.dependencies).empty? + end + end + private def search_by_spec(spec) |