ruby-changes:17308
From: eban <ko1@a...>
Date: Wed, 22 Sep 2010 00:56:57 +0900 (JST)
Subject: [ruby-changes:17308] Ruby:r29312 (trunk): * lib/rdoc/ri/store.rb (save_cache): remove duplicate entries.
eban 2010-09-22 00:56:41 +0900 (Wed, 22 Sep 2010) New Revision: 29312 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29312 Log: * lib/rdoc/ri/store.rb (save_cache): remove duplicate entries. Modified files: trunk/ChangeLog trunk/lib/rdoc/ri/store.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 29311) +++ ChangeLog (revision 29312) @@ -1,3 +1,7 @@ +Wed Sep 22 00:52:44 2010 WATANABE Hirofumi <eban@r...> + + * lib/rdoc/ri/store.rb (save_cache): remove duplicate entries. + Wed Sep 22 00:00:05 2010 Tanaka Akira <akr@f...> * ext/pathname/pathname.c (path_f_pathname): Pathname() translated Index: lib/rdoc/ri/store.rb =================================================================== --- lib/rdoc/ri/store.rb (revision 29311) +++ lib/rdoc/ri/store.rb (revision 29312) @@ -172,9 +172,11 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/