[Groonga-commit] groonga/groonga-query-log at 5f54f24 [master] Use puts to ensure appending a new line

Back to archive index

Kouhei Sutou null+****@clear*****
Fri May 24 19:00:07 JST 2013


Kouhei Sutou	2013-05-24 19:00:07 +0900 (Fri, 24 May 2013)

  New Revision: 5f54f245ae2e3eed3983ca66c92f9a6901babf20
  https://github.com/groonga/groonga-query-log/commit/5f54f245ae2e3eed3983ca66c92f9a6901babf20

  Message:
    Use puts to ensure appending a new line

  Modified files:
    lib/groonga/query-log/replayer.rb

  Modified: lib/groonga/query-log/replayer.rb (+2 -3)
===================================================================
--- lib/groonga/query-log/replayer.rb    2013-05-24 18:45:35 +0900 (df484df)
+++ lib/groonga/query-log/replayer.rb    2013-05-24 19:00:07 +0900 (a66bb8f)
@@ -50,7 +50,7 @@ module Groonga
           @options.create_request_output do |output|
             parser.parse(input) do |statistic|
               # TODO: validate orignal_source is one line
-              output << statistic.command.original_source
+              output.puts(statistic.command.original_source)
               @queue.push([id, statistic])
               id += 1
             end
@@ -91,8 +91,7 @@ module Groonga
           end
         end
 
-        def <<(string)
-          string.bytesize
+        def puts(string)
         end
       end
 
-------------- next part --------------
HTML����������������������������...
Download 



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