null+****@clear*****
null+****@clear*****
Tue Jun 19 19:04:24 JST 2012
SUZUKI Miho 2012-06-19 19:04:24 +0900 (Tue, 19 Jun 2012) New Revision: 829a490492eabd2b122700df57ded41da717312b https://github.com/logaling/logaling-command/commit/829a490492eabd2b122700df57ded41da717312b Log: Change patameter to GlossarySource object Modified files: lib/logaling/glossary_db.rb Modified: lib/logaling/glossary_db.rb (+4 -4) =================================================================== --- lib/logaling/glossary_db.rb 2012-06-19 19:00:33 +0900 (7e21073) +++ lib/logaling/glossary_db.rb 2012-06-19 19:04:24 +0900 (1bf4bda) @@ -78,7 +78,7 @@ module Logaling deindex_glossary_source(glossary_source) - add_glossary_source(glossary_source.source_path, File.mtime(glossary_source.source_path)) + add_glossary_source(glossary_source) glossary_source.load.each do |term| source_term = term['source_term'] target_term = term['target_term'] @@ -94,7 +94,7 @@ module Logaling deindex_glossary(glossary, glossary_source) - add_glossary_source(glossary_source.source_path, glossary_source.mtime) + add_glossary_source(glossary_source) add_glossary(glossary.name) GlossarySource.load(glossary_source.source_path).each do |term| source_term = term['source_term'] @@ -260,8 +260,8 @@ module Logaling records.expression.close end - def add_glossary_source(glossary_source, indexed_at) - Groonga["glossary_sources"].add(glossary_source, :indexed_at => indexed_at) + def add_glossary_source(glossary_source) + Groonga["glossary_sources"].add(glossary_source.source_path, :indexed_at => glossary_source.mtime) end def delete_glossary(glossary_name) -------------- next part -------------- An HTML attachment was scrubbed... 下載