[Groonga-commit] groonga/grntest [master] Remove needless converter

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue Feb 19 23:04:39 JST 2013


Kouhei Sutou	2013-02-19 23:04:39 +0900 (Tue, 19 Feb 2013)

  New Revision: 45eb9fc70114c330b5fdfa9e0376d215d2949780
  https://github.com/groonga/grntest/commit/45eb9fc70114c330b5fdfa9e0376d215d2949780

  Log:
    Remove needless converter

  Modified files:
    lib/grntest/tester.rb

  Modified: lib/grntest/tester.rb (+2 -14)
===================================================================
--- lib/grntest/tester.rb    2013-02-08 23:26:44 +0900 (9e5bc48)
+++ lib/grntest/tester.rb    2013-02-19 23:04:39 +0900 (a50f1bd)
@@ -1615,9 +1615,8 @@ EOF
         @port = port
       end
 
-      def send_command(command_line)
-        converter = CommandFormatConverter.new(command_line)
-        url = "http://#{@host}:#{@port}#{converter.to_url}"
+      def send_command(command)
+        url = "http://#{@host}:#{@port}#{command.to_uri_format}"
         begin
           open(url) do |response|
             "#{response.read}\n"
@@ -1645,17 +1644,6 @@ EOF
       end
     end
 
-    class CommandFormatConverter
-      def initialize(gqtp_command)
-        @gqtp_command = gqtp_command
-      end
-
-      def to_url
-        command = Groonga::Command::Parser.parse(@gqtp_command)
-        command.to_uri_format
-      end
-    end
-
     class BaseReporter
       def initialize(tester)
         @tester = tester
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る