diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-21 15:56:41 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-21 15:56:41 +0000 |
commit | c72e6c7b869fa8f454c495cda4dee49d4c72487b (patch) | |
tree | 98e1aca78447b901f854d05b743017ebddf6d456 /lib/rdoc/ri/store.rb | |
parent | 102501e0346e409f44ec6de8ab5800f58b1c630e (diff) | |
download | ruby-c72e6c7b869fa8f454c495cda4dee49d4c72487b.tar.gz |
* lib/rdoc/ri/store.rb (save_cache): remove duplicate entries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri/store.rb')
-rw-r--r-- | lib/rdoc/ri/store.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rdoc/ri/store.rb b/lib/rdoc/ri/store.rb index 81ffb7e674..db02202f81 100644 --- a/lib/rdoc/ri/store.rb +++ b/lib/rdoc/ri/store.rb @@ -172,9 +172,11 @@ class RDoc::RI::Store def save_cache # HACK mongrel-1.1.5 documents its files twice + @cache[:ancestors]. each do |_, m| m.uniq!; m.sort! end @cache[:attributes]. each do |_, m| m.uniq!; m.sort! end @cache[:class_methods]. each do |_, m| m.uniq!; m.sort! end @cache[:instance_methods].each do |_, m| m.uniq!; m.sort! end + @cache[:modules].uniq!; @cache[:modules].sort! open cache_path, 'wb' do |io| Marshal.dump @cache, io |