Kouhei Sutou
null+****@clear*****
Thu Jul 9 18:37:10 JST 2015
Kouhei Sutou 2015-07-09 18:37:10 +0900 (Thu, 09 Jul 2015) New Revision: b0559ddca84d6dfb403a8adf343a7908c98fa9f7 https://github.com/groonga/groonga-query-log/commit/b0559ddca84d6dfb403a8adf343a7908c98fa9f7 Message: Fix indent Modified files: lib/groonga/query-log/command/extract.rb Modified: lib/groonga/query-log/command/extract.rb (+16 -16) =================================================================== --- lib/groonga/query-log/command/extract.rb 2015-06-23 16:00:15 +0900 (dc3ca9a) +++ lib/groonga/query-log/command/extract.rb 2015-07-09 18:37:10 +0900 (fd8ab36) @@ -99,19 +99,19 @@ module Groonga available_formats = ["uri", "command"] parser.on("--unify-format=FORMAT", - available_formats, - "Unify command format to FORMAT.", - "(#{available_formats.join(', ')})", - "[not unify]") do |format| + available_formats, + "Unify command format to FORMAT.", + "(#{available_formats.join(', ')})", + "[not unify]") do |format| @options.unify_format = format end parser.on("--command=COMMAND", - "Extract only COMMAND.", - "To extract one or more commands,", - "specify this command a number of times.", - "Use /.../ as COMMAND to match command with regular expression.", - "[all commands]") do |command| + "Extract only COMMAND.", + "To extract one or more commands,", + "specify this command a number of times.", + "Use /.../ as COMMAND to match command with regular expression.", + "[all commands]") do |command| case command when /\A\/(.*)\/(i)?\z/ @options.commands << Regexp.new($1, $2 == "i") @@ -121,11 +121,11 @@ module Groonga end parser.on("--exclude-command=COMMAND", - "Don't extract COMMAND.", - "To ignore one or more commands,", - "specify this command a number of times.", - "Use /.../ as COMMAND to match command with regular expression.", - "[no commands]") do |command| + "Don't extract COMMAND.", + "To ignore one or more commands,", + "specify this command a number of times.", + "Use /.../ as COMMAND to match command with regular expression.", + "[no commands]") do |command| case command when /\A\/(.*)\/(i)?\z/ @options.exclude_commands << Regexp.new($1, $2 == "i") @@ -135,8 +135,8 @@ module Groonga end parser.on("--output=PATH", - "Output to PATH.", - "[standard output]") do |path| + "Output to PATH.", + "[standard output]") do |path| @options.output_path = path end end -------------- next part -------------- HTML����������������������������...Download