summaryrefslogtreecommitdiff
path: root/lib/bundler/spec_set.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-06-02 14:25:56 -0700
committerCarl Lerche <carllerche@mac.com>2010-06-02 14:25:56 -0700
commit8a4dc7a12e150dae3f0a7e2f6de5a18f899191ac (patch)
tree2d6588dd315b46b3e2a576bc944234b881bb7637 /lib/bundler/spec_set.rb
parentcf736cf6055a5f08db05a41aff872bd9cbf0ac8d (diff)
downloadbundler-8a4dc7a12e150dae3f0a7e2f6de5a18f899191ac.tar.gz
Remove a little bit of crazy from Definition
Diffstat (limited to 'lib/bundler/spec_set.rb')
-rw-r--r--lib/bundler/spec_set.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index ab53c7d244..c8dd8dfe0a 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -31,8 +31,15 @@ module Bundler
sorted.dup
end
+ def delete_if(&blk)
+ @lookup = nil
+ @sorted = nil
+ @specs.delete_if(&blk)
+ end
+
def __materialize__
@lookup = nil
+ @sorted = nil
@specs.map! do |s|
next s unless s.is_a?(LazySpecification)
yield s