[logaling-commit] logaling/logaling-command [refactor-structure] Change variable name all_glossaries to all_glossary_sources

Back to archive index

null+****@clear***** null+****@clear*****
Tue Jun 19 19:12:50 JST 2012


SUZUKI Miho	2012-06-19 19:12:50 +0900 (Tue, 19 Jun 2012)

  New Revision: b87a09bffaea2c0c9ce16bd02b17693850f91509
  https://github.com/logaling/logaling-command/commit/b87a09bffaea2c0c9ce16bd02b17693850f91509

  Log:
    Change variable name all_glossaries to all_glossary_sources

  Modified files:
    lib/logaling/repository.rb

  Modified: lib/logaling/repository.rb (+3 -3)
===================================================================
--- lib/logaling/repository.rb    2012-06-19 19:07:52 +0900 (e0038cb)
+++ lib/logaling/repository.rb    2012-06-19 19:12:50 +0900 (0dcd1e3)
@@ -89,11 +89,11 @@ module Logaling
     end
 
     def index
-      all_glossaries = projects.map{|project| project.glossary_sources}.flatten
+      all_glossary_sources = projects.map{|project| project.glossary_sources}.flatten
 
       Logaling::GlossaryDB.open(logaling_db_home, "utf8") do |db|
         db.recreate_table
-        all_glossaries.each do |glossary_source|
+        all_glossary_sources.each do |glossary_source|
           indexed_at = glossary_source.mtime
           glossary = glossary_source.glossary
           unless db.glossary_source_exist?(glossary_source.source_path, indexed_at)
@@ -101,7 +101,7 @@ module Logaling
             db.index_glossary(glossary, glossary_source)
           end
         end
-        (db.get_all_glossary_source - all_glossaries.map(&:source_path)).each do |glossary_source_path|
+        (db.get_all_glossary_source - all_glossary_sources.map(&:source_path)).each do |glossary_source_path|
           glossary_name, source_language, target_language = get_glossary(glossary_source_path)
           glossary = Logaling::Glossary.new(glossary_name, source_language, target_language)
           glossary_source = Logaling::GlossarySource.new(glossary_source_path, glossary)
-------------- next part --------------
An HTML attachment was scrubbed...
다운로드 



More information about the logaling-commit mailing list
Back to archive index