diff options
author | Carl Lerche <carllerche@mac.com> | 2010-06-02 14:25:56 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-06-02 14:25:56 -0700 |
commit | 8a4dc7a12e150dae3f0a7e2f6de5a18f899191ac (patch) | |
tree | 2d6588dd315b46b3e2a576bc944234b881bb7637 /lib/bundler/spec_set.rb | |
parent | cf736cf6055a5f08db05a41aff872bd9cbf0ac8d (diff) | |
download | bundler-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.rb | 7 |
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 |