[logaling-commit] logaling/logaling-command [master] rename #show to #show_glossary

Back to archive index

null+****@clear***** null+****@clear*****
Fri Jan 27 10:28:22 JST 2012


SUZUKI Miho	2012-01-27 10:28:22 +0900 (Fri, 27 Jan 2012)

  New Revision: 204542d2bdb31dd4e38aefab95fa6a3c9870c2bb

  Merged 2152f8c: Merge pull request #25 from logaling/improve-list-command

  Log:
    rename #show to #show_glossary

  Modified files:
    lib/logaling/command.rb
    lib/logaling/repository.rb

  Modified: lib/logaling/command.rb (+1 -1)
===================================================================
--- lib/logaling/command.rb    2012-01-25 18:49:20 +0900 (57af030)
+++ lib/logaling/command.rb    2012-01-27 10:28:22 +0900 (85d8c59)
@@ -205,7 +205,7 @@ class Logaling::Command < Thor
     }
     config = load_config_and_merge_options(required_options)
     repository.index
-    terms = repository.show(config["glossary"], config["source-language"], config["target-language"])
+    terms = repository.show_glossary(config["glossary"], config["source-language"], config["target-language"])
     unless terms.empty?
       run_pager
       max_str_size = terms.map{|term| term[:source_term].size}.sort.last

  Modified: lib/logaling/repository.rb (+1 -1)
===================================================================
--- lib/logaling/repository.rb    2012-01-25 18:49:20 +0900 (927f916)
+++ lib/logaling/repository.rb    2012-01-27 10:28:22 +0900 (08a0eb9)
@@ -60,7 +60,7 @@ module Logaling
       terms
     end
 
-    def show(glossary, source_language, target_language)
+    def show_glossary(glossary, source_language, target_language)
       raise GlossaryDBNotFound unless File.exist?(logaling_db_home)
 
       terms = []




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