Haruka Yoshihara
null+****@clear*****
Thu Dec 13 13:39:16 JST 2012
Haruka Yoshihara 2012-12-13 13:39:16 +0900 (Thu, 13 Dec 2012) New Revision: 2970f7a7b67e19ff8d03a3bb7e39d035ec81ff4c https://github.com/groonga/groonga-query-log/commit/2970f7a7b67e19ff8d03a3bb7e39d035ec81ff4c Log: Fix indent Modified files: lib/groonga/query-log/analyzer.rb Modified: lib/groonga/query-log/analyzer.rb (+20 -20) =================================================================== --- lib/groonga/query-log/analyzer.rb 2012-12-13 13:38:35 +0900 (32bb2e9) +++ lib/groonga/query-log/analyzer.rb 2012-12-13 13:39:16 +0900 (e1d8971) @@ -183,29 +183,29 @@ module Groonga end end - def create_reporter(statistics) - case @options[:reporter] - when "json" - require 'json' - JSONReporter.new(statistics) - when "html" - HTMLReporter.new(statistics) - else - ConsoleReporter.new(statistics) - end + def create_reporter(statistics) + case @options[:reporter] + when "json" + require 'json' + JSONReporter.new(statistics) + when "html" + HTMLReporter.new(statistics) + else + ConsoleReporter.new(statistics) end + end - def create_stream_reporter - case @options[:reporter] - when "json" - require 'json' - Groonga::QueryLog::StreamJSONQueryLogReporter.new - when "html" - raise UnsupportedReporter, "HTML reporter doesn't support --stream." - else - Groonga::QueryLog::StreamConsoleQueryLogReporter.new - end + def create_stream_reporter + case @options[:reporter] + when "json" + require 'json' + Groonga::QueryLog::StreamJSONQueryLogReporter.new + when "html" + raise UnsupportedReporter, "HTML reporter doesn't support --stream." + else + Groonga::QueryLog::StreamConsoleQueryLogReporter.new end + end end end end -------------- next part -------------- HTML����������������������������... ダウンロード