null+****@clear*****
null+****@clear*****
2012年 6月 6日 (水) 10:24:58 JST
Haruka Yoshihara 2012-06-06 10:24:58 +0900 (Wed, 06 Jun 2012) New Revision: 0f00aceb67328f0384232aae8e00f9b92e45fcd9 Log: Rename: Translater => CommandTranslator, translate_command, translate_url Because this method translates a groonga command into URL. Modified files: lib/groonga/tester.rb test/test-executor.rb Modified: lib/groonga/tester.rb (+2 -2) =================================================================== --- lib/groonga/tester.rb 2012-06-05 19:24:25 +0900 (18a6711) +++ lib/groonga/tester.rb 2012-06-06 10:24:58 +0900 (00ce0be) @@ -615,8 +615,8 @@ module Groonga end end - class Translater - def translate_command(line) + class CommandTranslator + def translate_url(line) line = line.chomp return "" if line.empty? Modified: test/test-executor.rb (+2 -2) =================================================================== --- test/test-executor.rb 2012-06-05 19:24:25 +0900 (d2a72b1) +++ test/test-executor.rb 2012-06-06 10:24:58 +0900 (de54e6a) @@ -55,7 +55,7 @@ class TestExecutor < Test::Unit::TestCase class TestTranslate < self def setup - @translater = Groonga::Tester::Translater.new + @translator = Groonga::Tester::CommandTranslator.new end def test_command @@ -142,7 +142,7 @@ EOF private def translate(command) - @translater.translate_command(command) + @translator.translate_url(command) end def build_url(command, arguments)