diff options
Diffstat (limited to 'lib/bundler/index.rb')
-rw-r--r-- | lib/bundler/index.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb index 013bf14042..79cbb10fc8 100644 --- a/lib/bundler/index.rb +++ b/lib/bundler/index.rb @@ -19,7 +19,8 @@ module Bundler def initialize_copy(o) super @cache = {} - @specs = @specs.dup + @specs = Hash.new { |h,k| h[k] = [] } + merge!(o) end def search(query) @@ -60,6 +61,13 @@ module Bundler dup.merge!(other) end + def freeze + @specs.each do |k,v| + v.freeze + end + super + end + private def search_by_spec(spec) |