[logaling-commit] logaling/logaling-command [master] Add GlossarySource#load

Back to archive index

null+****@clear***** null+****@clear*****
Mon Jun 18 11:40:05 JST 2012


SUZUKI Miho	2012-06-18 11:40:05 +0900 (Mon, 18 Jun 2012)

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

  Merged 7228757: Merge pull request #60 from logaling/refactor-structure

  Log:
    Add GlossarySource#load

  Modified files:
    lib/logaling/glossary_db.rb
    lib/logaling/glossary_source.rb

  Modified: lib/logaling/glossary_db.rb (+1 -1)
===================================================================
--- lib/logaling/glossary_db.rb    2012-06-18 11:34:48 +0900 (6a69afc)
+++ lib/logaling/glossary_db.rb    2012-06-18 11:40:05 +0900 (b112cde)
@@ -75,7 +75,7 @@ module Logaling
 
       add_glossary_source(glossary_source.source_path, File.mtime(glossary_source.source_path))
       add_glossary(glossary.name)
-      GlossarySource.load(glossary_source.source_path).each do |term|
+      glossary_source.load.each do |term|
         source_term = term['source_term']
         target_term = term['target_term']
         note = term['note']

  Modified: lib/logaling/glossary_source.rb (+4 -0)
===================================================================
--- lib/logaling/glossary_source.rb    2012-06-18 11:34:48 +0900 (a4723eb)
+++ lib/logaling/glossary_source.rb    2012-06-18 11:40:05 +0900 (16ce7fa)
@@ -124,6 +124,10 @@ module Logaling
       end
     end
 
+    def load
+      GlossarySource.load_glossary_source(@source_path)
+    end
+
     def mtime
       File.mtime(@source_path)
     end
-------------- next part --------------
An HTML attachment was scrubbed...
다운로드 



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