Kouhei Sutou
null+****@clear*****
Mon Aug 8 11:09:23 JST 2016
Kouhei Sutou 2016-08-08 11:09:23 +0900 (Mon, 08 Aug 2016) New Revision: b05a313160d0e29990b546c4c94449abfead3dc2 https://github.com/groonga/groonga-command/commit/b05a313160d0e29990b546c4c94449abfead3dc2 Message: Make command name optional for known commands Modified files: lib/groonga/command/base.rb lib/groonga/command/column-copy.rb lib/groonga/command/column-create.rb lib/groonga/command/column-list.rb lib/groonga/command/column-remove.rb lib/groonga/command/column-rename.rb lib/groonga/command/config-delete.rb lib/groonga/command/config-get.rb lib/groonga/command/config-set.rb lib/groonga/command/delete.rb lib/groonga/command/dump.rb lib/groonga/command/get.rb lib/groonga/command/io-flush.rb lib/groonga/command/load.rb lib/groonga/command/log-level.rb lib/groonga/command/log-put.rb lib/groonga/command/logical-count.rb lib/groonga/command/logical-range-filter.rb lib/groonga/command/logical-select.rb lib/groonga/command/logical-shard-list.rb lib/groonga/command/logical-table-remove.rb lib/groonga/command/normalize.rb lib/groonga/command/object-exist.rb lib/groonga/command/object-inspect.rb lib/groonga/command/object-remove.rb lib/groonga/command/plugin-register.rb lib/groonga/command/plugin-unregister.rb lib/groonga/command/query-expand.rb lib/groonga/command/range-filter.rb lib/groonga/command/register.rb lib/groonga/command/reindex.rb lib/groonga/command/request-cancel.rb lib/groonga/command/ruby-eval.rb lib/groonga/command/ruby-load.rb lib/groonga/command/schema.rb lib/groonga/command/select.rb lib/groonga/command/shutdown.rb lib/groonga/command/status.rb lib/groonga/command/suggest.rb lib/groonga/command/table-create.rb lib/groonga/command/table-list.rb lib/groonga/command/table-remove.rb lib/groonga/command/table-rename.rb lib/groonga/command/table-tokenize.rb lib/groonga/command/thread-limit.rb lib/groonga/command/tokenize.rb lib/groonga/command/truncate.rb test/command/test-column-copy.rb test/command/test-column-create.rb test/command/test-column-list.rb test/command/test-column-remove.rb test/command/test-column-rename.rb test/command/test-config-delete.rb test/command/test-config-get.rb test/command/test-config-set.rb test/command/test-delete.rb test/command/test-dump.rb test/command/test-get.rb test/command/test-io-flush.rb test/command/test-load.rb test/command/test-log-level.rb test/command/test-log-put.rb test/command/test-logical-count.rb test/command/test-logical-range-filter.rb test/command/test-logical-select.rb test/command/test-logical-shard-list.rb test/command/test-logical-table-remove.rb test/command/test-normalize.rb test/command/test-object-exist.rb test/command/test-object-inspect.rb test/command/test-object-remove.rb test/command/test-plugin-register.rb test/command/test-plugin-unregister.rb test/command/test-query-expand.rb test/command/test-range-filter.rb test/command/test-register.rb test/command/test-reindex.rb test/command/test-request-cancel.rb test/command/test-ruby-eval.rb test/command/test-ruby-load.rb test/command/test-schema.rb test/command/test-select.rb test/command/test-shutdown.rb test/command/test-status.rb test/command/test-suggest.rb test/command/test-table-create.rb test/command/test-table-list.rb test/command/test-table-remove.rb test/command/test-table-rename.rb test/command/test-table-tokenize.rb test/command/test-thread-limit.rb test/command/test-tokenize.rb test/command/test-truncate.rb Modified: lib/groonga/command/base.rb (+37 -1) =================================================================== --- lib/groonga/command/base.rb 2016-08-05 11:41:07 +0900 (65406e1) +++ lib/groonga/command/base.rb 2016-08-08 11:09:23 +0900 (1d72d93) @@ -57,7 +57,43 @@ module Groonga attr_reader :command_name attr_reader :arguments attr_accessor :original_format, :original_source, :path_prefix - def initialize(command_name, pair_arguments, ordered_arguments=[]) + + # @overload initialize(pair_arguments, ordered_arguments={}) + # Initializes a new known command. The command class must implement + # {.command_name} method. + # + # @param pair_arguments [::Hash<String, String>] The list of + # pair arguments. + # + # @param ordered_arguments [::Array<String>] The list of + # ordered arguments. + # + # @since 1.2.3 + # + # @overload initialize(command_name, pair_arguments, ordered_arguments={}) + # Initializes a new unknown command. + # + # @param command_name [String] The command name. + # + # @param pair_arguments [::Hash<String, String>] The list of + # pair arguments. + # + # @param ordered_arguments [::Array<String>] The list of + # ordered arguments. + def initialize(arg1=nil, arg2=nil, arg3=nil) + case arg1 + when String + command_name = arg1 + pair_arguments = arg2 + ordered_arguments = arg3 + else + command_name = self.class.command_name + pair_arguments = arg1 + ordered_arguments = arg2 + end + pair_arguments ||= {} + ordered_arguments ||= [] + @command_name = command_name @arguments = construct_arguments(pair_arguments, ordered_arguments) @original_format = nil Modified: lib/groonga/command/column-copy.rb (+7 -3) =================================================================== --- lib/groonga/command/column-copy.rb 2016-08-05 11:41:07 +0900 (3e224ea) +++ lib/groonga/command/column-copy.rb 2016-08-08 11:09:23 +0900 (24a0047) @@ -1,4 +1,4 @@ -# Copyright (C) 2015 Kouhei Sutou <kou �� clear-code.com> +# Copyright (C) 2015-2016 Kouhei Sutou <kou �� clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class ColumnCopy < Base - Command.register("column_copy", self) - class << self + def command_name + "column_copy" + end + def parameter_names [ :from_table, @@ -35,6 +37,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `from_table` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/column-create.rb (+7 -5) =================================================================== --- lib/groonga/command/column-create.rb 2016-08-05 11:41:07 +0900 (b6831f4) +++ lib/groonga/command/column-create.rb 2016-08-08 11:09:23 +0900 (ab501b3) @@ -1,6 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2012-2014 Kouhei Sutou <kou �� clear-code.com> +# Copyright (C) 2012-2016 Kouhei Sutou <kou �� clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -21,9 +19,11 @@ require "groonga/command/base" module Groonga module Command class ColumnCreate < Base - Command.register("column_create", self) - class << self + def command_name + "column_create" + end + def parameter_names [ :table, @@ -35,6 +35,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] table name. # @since 1.0.7 def table Modified: lib/groonga/command/column-list.rb (+6 -2) =================================================================== --- lib/groonga/command/column-list.rb 2016-08-05 11:41:07 +0900 (db7f01d) +++ lib/groonga/command/column-list.rb 2016-08-08 11:09:23 +0900 (6fc5bb2) @@ -24,9 +24,11 @@ module Groonga # # @since 1.0.6 class ColumnList < Base - Command.register("column_list", self) - class << self + def command_name + "column_list" + end + def parameter_names [ :table, @@ -34,6 +36,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `table` parameter value. # @since 1.0.6 def table Modified: lib/groonga/command/column-remove.rb (+6 -2) =================================================================== --- lib/groonga/command/column-remove.rb 2016-08-05 11:41:07 +0900 (ff7d1f8) +++ lib/groonga/command/column-remove.rb 2016-08-08 11:09:23 +0900 (05c10f7) @@ -21,9 +21,11 @@ require "groonga/command/base" module Groonga module Command class ColumnRemove < Base - Command.register("column_remove", self) - class << self + def command_name + "column_remove" + end + def parameter_names [ :table, @@ -31,6 +33,8 @@ module Groonga ] end end + + Command.register(command_name, self) end end end Modified: lib/groonga/command/column-rename.rb (+6 -2) =================================================================== --- lib/groonga/command/column-rename.rb 2016-08-05 11:41:07 +0900 (5c033d0) +++ lib/groonga/command/column-rename.rb 2016-08-08 11:09:23 +0900 (1269764) @@ -21,9 +21,11 @@ require "groonga/command/base" module Groonga module Command class ColumnRename < Base - Command.register("column_rename", self) - class << self + def command_name + "column_rename" + end + def parameter_names [ :table, @@ -32,6 +34,8 @@ module Groonga ] end end + + Command.register(command_name, self) end end end Modified: lib/groonga/command/config-delete.rb (+6 -2) =================================================================== --- lib/groonga/command/config-delete.rb 2016-08-05 11:41:07 +0900 (1b4b461) +++ lib/groonga/command/config-delete.rb 2016-08-08 11:09:23 +0900 (9189a72) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.5 class ConfigDelete < Base - Command.register("config_delete", self) - class << self + def command_name + "config_delete" + end + def parameter_names [ :key, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `key` parameter value. # # @since 1.1.4 Modified: lib/groonga/command/config-get.rb (+6 -2) =================================================================== --- lib/groonga/command/config-get.rb 2016-08-05 11:41:07 +0900 (48b8403) +++ lib/groonga/command/config-get.rb 2016-08-08 11:09:23 +0900 (4df9ea3) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.5 class ConfigGet < Base - Command.register("config_get", self) - class << self + def command_name + "config_get" + end + def parameter_names [ :key, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `key` parameter value. # # @since 1.1.4 Modified: lib/groonga/command/config-set.rb (+6 -2) =================================================================== --- lib/groonga/command/config-set.rb 2016-08-05 11:41:07 +0900 (8ce136e) +++ lib/groonga/command/config-set.rb 2016-08-08 11:09:23 +0900 (7553188) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.5 class ConfigSet < Base - Command.register("config_set", self) - class << self + def command_name + "config_set" + end + def parameter_names [ :key, @@ -33,6 +35,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `key` parameter value. # # @since 1.1.4 Modified: lib/groonga/command/delete.rb (+6 -2) =================================================================== --- lib/groonga/command/delete.rb 2016-08-05 11:41:07 +0900 (5770242) +++ lib/groonga/command/delete.rb 2016-08-08 11:09:23 +0900 (939e977) @@ -21,9 +21,11 @@ require "groonga/command/base" module Groonga module Command class Delete < Base - Command.register("delete", self) - class << self + def command_name + "delete" + end + def parameter_names [ :table, @@ -33,6 +35,8 @@ module Groonga ] end end + + Command.register(command_name, self) end end end Modified: lib/groonga/command/dump.rb (+6 -2) =================================================================== --- lib/groonga/command/dump.rb 2016-08-05 11:41:07 +0900 (80c8369) +++ lib/groonga/command/dump.rb 2016-08-08 11:09:23 +0900 (8f8bf41) @@ -21,9 +21,11 @@ require "groonga/command/base" module Groonga module Command class Dump < Base - Command.register("dump", self) - class << self + def command_name + "dump" + end + def parameter_names [ :tables, @@ -36,6 +38,8 @@ module Groonga end end + Command.register(command_name, self) + def output_type :none end Modified: lib/groonga/command/get.rb (+6 -2) =================================================================== --- lib/groonga/command/get.rb 2016-08-05 11:41:07 +0900 (8b52e04) +++ lib/groonga/command/get.rb 2016-08-08 11:09:23 +0900 (a91d478) @@ -21,9 +21,11 @@ require "groonga/command/base" module Groonga module Command class Get < Base - Command.register("get", self) - class << self + def command_name + "get" + end + def parameter_names [ :table, @@ -33,6 +35,8 @@ module Groonga ] end end + + Command.register(command_name, self) end end end Modified: lib/groonga/command/io-flush.rb (+6 -2) =================================================================== --- lib/groonga/command/io-flush.rb 2016-08-05 11:41:07 +0900 (abd11a9) +++ lib/groonga/command/io-flush.rb 2016-08-08 11:09:23 +0900 (a9e0d44) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class IOFlush < Base - Command.register("io_flush", self) - class << self + def command_name + "io_flush" + end + def parameter_names [ :target_name, @@ -33,6 +35,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `target_name` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/load.rb (+6 -2) =================================================================== --- lib/groonga/command/load.rb 2016-08-05 11:41:07 +0900 (fc17401) +++ lib/groonga/command/load.rb 2016-08-08 11:09:23 +0900 (50c5ab6) @@ -23,9 +23,11 @@ require "groonga/command/base" module Groonga module Command class Load < Base - Command.register("load", self) - class << self + def command_name + "load" + end + def parameter_names [ :values, @@ -38,6 +40,8 @@ module Groonga end end + Command.register(command_name, self) + attr_writer :values attr_writer :columns def initialize(*argumetns) Modified: lib/groonga/command/log-level.rb (+6 -2) =================================================================== --- lib/groonga/command/log-level.rb 2016-08-05 11:41:07 +0900 (65ba120) +++ lib/groonga/command/log-level.rb 2016-08-08 11:09:23 +0900 (887529a) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class LogLevel < Base - Command.register("log_level", self) - class << self + def command_name + "log_level" + end + def parameter_names [ :level, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `level` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/log-put.rb (+6 -2) =================================================================== --- lib/groonga/command/log-put.rb 2016-08-05 11:41:07 +0900 (4ed7c18) +++ lib/groonga/command/log-put.rb 2016-08-08 11:09:23 +0900 (890f708) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class LogPut < Base - Command.register("log_put", self) - class << self + def command_name + "log_put" + end + def parameter_names [ :level, @@ -33,6 +35,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `level` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/logical-count.rb (+6 -2) =================================================================== --- lib/groonga/command/logical-count.rb 2016-08-05 11:41:07 +0900 (2d59f74) +++ lib/groonga/command/logical-count.rb 2016-08-08 11:09:23 +0900 (c9c9269) @@ -24,9 +24,11 @@ module Groonga # # @since 1.1.1 class LogicalCount < Base - Command.register("logical_count", self) - class << self + def command_name + "logical_count" + end + def parameter_names [ :logical_table, @@ -40,6 +42,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `logical_table` parameter value. # # @since 1.1.1 Modified: lib/groonga/command/logical-range-filter.rb (+6 -2) =================================================================== --- lib/groonga/command/logical-range-filter.rb 2016-08-05 11:41:07 +0900 (d755e1a) +++ lib/groonga/command/logical-range-filter.rb 2016-08-08 11:09:23 +0900 (328f6da) @@ -24,9 +24,11 @@ module Groonga # # @since 1.1.1 class LogicalRangeFilter < Base - Command.register("logical_range_filter", self) - class << self + def command_name + "logical_range_filter" + end + def parameter_names [ :logical_table, @@ -44,6 +46,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `logical_table` parameter value. # # @since 1.1.1 Modified: lib/groonga/command/logical-select.rb (+6 -2) =================================================================== --- lib/groonga/command/logical-select.rb 2016-08-05 11:41:07 +0900 (6285cb0) +++ lib/groonga/command/logical-select.rb 2016-08-08 11:09:23 +0900 (d3fd005) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class LogicalSelect < Base - Command.register("logical_select", self) - class << self + def command_name + "logical_select" + end + def parameter_names [ :logical_table, @@ -49,6 +51,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `logical_table` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/logical-shard-list.rb (+6 -2) =================================================================== --- lib/groonga/command/logical-shard-list.rb 2016-08-05 11:41:07 +0900 (6825d11) +++ lib/groonga/command/logical-shard-list.rb 2016-08-08 11:09:23 +0900 (697d710) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class LogicalShardList < Base - Command.register("logical_shard_list", self) - class << self + def command_name + "logical_shard_list" + end + def parameter_names [ :logical_table, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `logical_table` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/logical-table-remove.rb (+6 -2) =================================================================== --- lib/groonga/command/logical-table-remove.rb 2016-08-05 11:41:07 +0900 (6f552b5) +++ lib/groonga/command/logical-table-remove.rb 2016-08-08 11:09:23 +0900 (0e6e2ba) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class LogicalTableRemove < Base - Command.register("logical_table_remove", self) - class << self + def command_name + "logical_table_remove" + end + def parameter_names [ :logical_table, @@ -37,6 +39,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `logical_table` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/normalize.rb (+6 -2) =================================================================== --- lib/groonga/command/normalize.rb 2016-08-05 11:41:07 +0900 (a11ff72) +++ lib/groonga/command/normalize.rb 2016-08-08 11:09:23 +0900 (b924a5b) @@ -24,9 +24,11 @@ module Groonga # # @since 1.0.6 class Normalize < Base - Command.register("normalize", self) - class << self + def command_name + "normalize" + end + def parameter_names [ :normalizer, @@ -36,6 +38,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `normalizer` parameter value. # @since 1.0.6 def normalizer Modified: lib/groonga/command/object-exist.rb (+6 -2) =================================================================== --- lib/groonga/command/object-exist.rb 2016-08-05 11:41:07 +0900 (7485f14) +++ lib/groonga/command/object-exist.rb 2016-08-08 11:09:23 +0900 (2ecf8f9) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class ObjectExist < Base - Command.register("object_exist", self) - class << self + def command_name + "object_exist" + end + def parameter_names [ :name, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `name` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/object-inspect.rb (+6 -2) =================================================================== --- lib/groonga/command/object-inspect.rb 2016-08-05 11:41:07 +0900 (f38d6e7) +++ lib/groonga/command/object-inspect.rb 2016-08-08 11:09:23 +0900 (98ff1a6) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.7 class ObjectInspect < Base - Command.register("object_inspect", self) - class << self + def command_name + "object_inspect" + end + def parameter_names [ :name, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `name` parameter value. # # @since 1.1.7 Modified: lib/groonga/command/object-remove.rb (+6 -2) =================================================================== --- lib/groonga/command/object-remove.rb 2016-08-05 11:41:07 +0900 (e6cc8f6) +++ lib/groonga/command/object-remove.rb 2016-08-08 11:09:23 +0900 (8096e6e) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.7 class ObjectRemove < Base - Command.register("object_remove", self) - class << self + def command_name + "object_remove" + end + def parameter_names [ :name, @@ -33,6 +35,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `name` parameter value. # # @since 1.1.7 Modified: lib/groonga/command/plugin-register.rb (+6 -2) =================================================================== --- lib/groonga/command/plugin-register.rb 2016-08-05 11:41:07 +0900 (d2f9afc) +++ lib/groonga/command/plugin-register.rb 2016-08-08 11:09:23 +0900 (3e00266) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.2 class PluginRegister < Base - Command.register("plugin_register", self) - class << self + def command_name + "plugin_register" + end + def parameter_names [ :name, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `name` parameter value. # # @since 1.1.2 Modified: lib/groonga/command/plugin-unregister.rb (+6 -2) =================================================================== --- lib/groonga/command/plugin-unregister.rb 2016-08-05 11:41:07 +0900 (32e0b63) +++ lib/groonga/command/plugin-unregister.rb 2016-08-08 11:09:23 +0900 (cab572c) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.2 class PluginUnregister < Base - Command.register("plugin_unregister", self) - class << self + def command_name + "plugin_unregister" + end + def parameter_names [ :name, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `name` parameter value. # # @since 1.1.2 Modified: lib/groonga/command/query-expand.rb (+6 -2) =================================================================== --- lib/groonga/command/query-expand.rb 2016-08-05 11:41:07 +0900 (3424d6a) +++ lib/groonga/command/query-expand.rb 2016-08-08 11:09:23 +0900 (67f14b0) @@ -22,9 +22,11 @@ module Groonga # # @since 1.2.1 class QueryExpand < Base - Command.register("query_expand", self) - class << self + def command_name + "query_expand" + end + def parameter_names [ :expander, @@ -34,6 +36,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `expander` parameter value. # # @since 1.2.1 Modified: lib/groonga/command/range-filter.rb (+6 -2) =================================================================== --- lib/groonga/command/range-filter.rb 2016-08-05 11:41:07 +0900 (0273716) +++ lib/groonga/command/range-filter.rb 2016-08-08 11:09:23 +0900 (ca7182d) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.0 class RangeFilter < Base - Command.register("range_filter", self) - class << self + def command_name + "range_filter" + end + def parameter_names [ :table, @@ -41,6 +43,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `table` parameter value. # # @since 1.1.0 Modified: lib/groonga/command/register.rb (+6 -2) =================================================================== --- lib/groonga/command/register.rb 2016-08-05 11:41:07 +0900 (003b0fa) +++ lib/groonga/command/register.rb 2016-08-08 11:09:23 +0900 (7f77fd6) @@ -21,15 +21,19 @@ require "groonga/command/base" module Groonga module Command class Register < Base - Command.register("register", self) - class << self + def command_name + "register" + end + def parameter_names [ :path, ] end end + + Command.register(command_name, self) end end end Modified: lib/groonga/command/reindex.rb (+6 -2) =================================================================== --- lib/groonga/command/reindex.rb 2016-08-05 11:41:07 +0900 (ca105eb) +++ lib/groonga/command/reindex.rb 2016-08-08 11:09:23 +0900 (25ba62b) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.4 class Reindex < Base - Command.register("reindex", self) - class << self + def command_name + "reindex" + end + def parameter_names [ :target_name, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `target_name` parameter value. # # @since 1.1.4 Modified: lib/groonga/command/request-cancel.rb (+6 -2) =================================================================== --- lib/groonga/command/request-cancel.rb 2016-08-05 11:41:07 +0900 (101ab31) +++ lib/groonga/command/request-cancel.rb 2016-08-08 11:09:23 +0900 (7b1bab9) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.0 class RequestCancel < Base - Command.register("request_cancel", self) - class << self + def command_name + "request_cancel" + end + def parameter_names [ :id, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `id` parameter value. # @since 1.1.0 def id Modified: lib/groonga/command/ruby-eval.rb (+6 -2) =================================================================== --- lib/groonga/command/ruby-eval.rb 2016-08-05 11:41:07 +0900 (6abde15) +++ lib/groonga/command/ruby-eval.rb 2016-08-08 11:09:23 +0900 (a228054) @@ -24,9 +24,11 @@ module Groonga # # @since 1.0.6 class RubyEval < Base - Command.register("ruby_eval", self) - class << self + def command_name + "ruby_eval" + end + def parameter_names [ :script, @@ -34,6 +36,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `script` parameter value. # @since 1.0.6 def script Modified: lib/groonga/command/ruby-load.rb (+6 -2) =================================================================== --- lib/groonga/command/ruby-load.rb 2016-08-05 11:41:07 +0900 (4815a8d) +++ lib/groonga/command/ruby-load.rb 2016-08-08 11:09:23 +0900 (678f277) @@ -24,9 +24,11 @@ module Groonga # # @since 1.0.6 class RubyLoad < Base - Command.register("ruby_load", self) - class << self + def command_name + "ruby_load" + end + def parameter_names [ :path, @@ -34,6 +36,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `path` parameter value. # @since 1.0.6 def path Modified: lib/groonga/command/schema.rb (+7 -1) =================================================================== --- lib/groonga/command/schema.rb 2016-08-05 11:41:07 +0900 (bb5ba07) +++ lib/groonga/command/schema.rb 2016-08-08 11:09:23 +0900 (deee734) @@ -22,7 +22,13 @@ module Groonga # # @since 1.2.1 class Schema < Base - Command.register("schema", self) + class << self + def command_name + "schema" + end + end + + Command.register(command_name, self) end end end Modified: lib/groonga/command/select.rb (+6 -2) =================================================================== --- lib/groonga/command/select.rb 2016-08-05 11:41:07 +0900 (0f54b62) +++ lib/groonga/command/select.rb 2016-08-08 11:09:23 +0900 (0d319f8) @@ -21,9 +21,11 @@ require "groonga/command/base" module Groonga module Command class Select < Base - Command.register("select", self) - class << self + def command_name + "select" + end + def parameter_names [ :table, @@ -49,6 +51,8 @@ module Groonga end end + Command.register(command_name, self) + def sortby self[:sortby] end Modified: lib/groonga/command/shutdown.rb (+6 -2) =================================================================== --- lib/groonga/command/shutdown.rb 2016-08-05 11:41:07 +0900 (832702b) +++ lib/groonga/command/shutdown.rb 2016-08-08 11:09:23 +0900 (a79313b) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.8 class Shutdown < Base - Command.register("shutdown", self) - class << self + def command_name + "shutdown" + end + def parameter_names [ :mode, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `mode` parameter value. # # @since 1.1.8 Modified: lib/groonga/command/status.rb (+7 -1) =================================================================== --- lib/groonga/command/status.rb 2016-08-05 11:41:07 +0900 (2760852) +++ lib/groonga/command/status.rb 2016-08-08 11:09:23 +0900 (29ecce8) @@ -21,7 +21,13 @@ require "groonga/command/base" module Groonga module Command class Status < Base - Command.register("status", self) + class << self + def command_name + "status" + end + end + + Command.register(command_name, self) end end end Modified: lib/groonga/command/suggest.rb (+6 -2) =================================================================== --- lib/groonga/command/suggest.rb 2016-08-05 11:41:07 +0900 (5690c61) +++ lib/groonga/command/suggest.rb 2016-08-08 11:09:23 +0900 (4dd3317) @@ -21,9 +21,11 @@ require "groonga/command/base" module Groonga module Command class Suggest < Base - Command.register("suggest", self) - class << self + def command_name + "suggest" + end + def parameter_names [ :types, @@ -41,6 +43,8 @@ module Groonga ] end end + + Command.register(command_name, self) end end end Modified: lib/groonga/command/table-create.rb (+6 -2) =================================================================== --- lib/groonga/command/table-create.rb 2016-08-05 11:41:07 +0900 (66644ca) +++ lib/groonga/command/table-create.rb 2016-08-08 11:09:23 +0900 (2d9a6c9) @@ -19,9 +19,11 @@ require "groonga/command/base" module Groonga module Command class TableCreate < Base - Command.register("table_create", self) - class << self + def command_name + "table_create" + end + def parameter_names [ :name, @@ -35,6 +37,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String, nil] Key type name, nil for array no key table. # @since 1.0.7 def key_type Modified: lib/groonga/command/table-list.rb (+6 -2) =================================================================== --- lib/groonga/command/table-list.rb 2016-08-05 11:41:07 +0900 (d81ee95) +++ lib/groonga/command/table-list.rb 2016-08-08 11:09:23 +0900 (9138dbb) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class TableList < Base - Command.register("table_list", self) - class << self + def command_name + "table_list" + end + def parameter_names [ :prefix, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `prefix` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/table-remove.rb (+6 -2) =================================================================== --- lib/groonga/command/table-remove.rb 2016-08-05 11:41:07 +0900 (bacb455) +++ lib/groonga/command/table-remove.rb 2016-08-08 11:09:23 +0900 (acbd5ad) @@ -19,9 +19,11 @@ require "groonga/command/base" module Groonga module Command class TableRemove < Base - Command.register("table_remove", self) - class << self + def command_name + "table_remove" + end + def parameter_names [ :name, @@ -30,6 +32,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `name` parameter value. # # @since 1.1.8 Modified: lib/groonga/command/table-rename.rb (+6 -2) =================================================================== --- lib/groonga/command/table-rename.rb 2016-08-05 11:41:07 +0900 (4518ce2) +++ lib/groonga/command/table-rename.rb 2016-08-08 11:09:23 +0900 (c88fe77) @@ -21,9 +21,11 @@ require "groonga/command/base" module Groonga module Command class TableRename < Base - Command.register("table_rename", self) - class << self + def command_name + "table_rename" + end + def parameter_names [ :name, @@ -31,6 +33,8 @@ module Groonga ] end end + + Command.register(command_name, self) end end end Modified: lib/groonga/command/table-tokenize.rb (+6 -2) =================================================================== --- lib/groonga/command/table-tokenize.rb 2016-08-05 11:41:07 +0900 (1dd0ba3) +++ lib/groonga/command/table-tokenize.rb 2016-08-08 11:09:23 +0900 (1700b7f) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.0 class TableTokenize < Base - Command.register("table_tokenize", self) - class << self + def command_name + "table_tokenize" + end + def parameter_names [ :table, @@ -35,6 +37,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `table` parameter value. # # @since 1.1.0 Modified: lib/groonga/command/thread-limit.rb (+6 -2) =================================================================== --- lib/groonga/command/thread-limit.rb 2016-08-05 11:41:07 +0900 (3444420) +++ lib/groonga/command/thread-limit.rb 2016-08-08 11:09:23 +0900 (9cabb48) @@ -22,9 +22,11 @@ module Groonga # # @since 1.1.3 class ThreadLimit < Base - Command.register("thread_limit", self) - class << self + def command_name + "thread_limit" + end + def parameter_names [ :max, @@ -32,6 +34,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [Integer] `max` parameter value. # # @since 1.1.3 Modified: lib/groonga/command/tokenize.rb (+6 -2) =================================================================== --- lib/groonga/command/tokenize.rb 2016-08-05 11:41:07 +0900 (f2762a3) +++ lib/groonga/command/tokenize.rb 2016-08-08 11:09:23 +0900 (577792b) @@ -24,9 +24,11 @@ module Groonga # # @since 1.0.6 class Tokenize < Base - Command.register("tokenize", self) - class << self + def command_name + "tokenize" + end + def parameter_names [ :tokenizer, @@ -39,6 +41,8 @@ module Groonga end end + Command.register(command_name, self) + # @return [String] `tokenizer` parameter value. # @since 1.0.6 def tokenizer Modified: lib/groonga/command/truncate.rb (+6 -2) =================================================================== --- lib/groonga/command/truncate.rb 2016-08-05 11:41:07 +0900 (4be33a1) +++ lib/groonga/command/truncate.rb 2016-08-08 11:09:23 +0900 (25db877) @@ -21,15 +21,19 @@ require "groonga/command/base" module Groonga module Command class Truncate < Base - Command.register("truncate", self) - class << self + def command_name + "truncate" + end + def parameter_names [ :table, ] end end + + Command.register(command_name, self) end end end Modified: test/command/test-column-copy.rb (+1 -2) =================================================================== --- test/command/test-column-copy.rb 2016-08-05 11:41:07 +0900 (bbe96a1) +++ test/command/test-column-copy.rb 2016-08-08 11:09:23 +0900 (2d74dc2) @@ -17,8 +17,7 @@ class ColumnCopyCommandTest < Test::Unit::TestCase private def column_copy_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ColumnCopy.new("column_copy", - pair_arguments, + Groonga::Command::ColumnCopy.new(pair_arguments, ordered_arguments) end Modified: test/command/test-column-create.rb (+1 -2) =================================================================== --- test/command/test-column-create.rb 2016-08-05 11:41:07 +0900 (2078a99) +++ test/command/test-column-create.rb 2016-08-08 11:09:23 +0900 (1d61d6c) @@ -19,8 +19,7 @@ class ColumnCreateCommandTest < Test::Unit::TestCase private def column_create_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ColumnCreate.new("column_create", - pair_arguments, + Groonga::Command::ColumnCreate.new(pair_arguments, ordered_arguments) end Modified: test/command/test-column-list.rb (+1 -2) =================================================================== --- test/command/test-column-list.rb 2016-08-05 11:41:07 +0900 (a47d595) +++ test/command/test-column-list.rb 2016-08-08 11:09:23 +0900 (b554e8c) @@ -19,8 +19,7 @@ class ColumnListCommandTest < Test::Unit::TestCase private def column_list_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ColumnList.new("column_list", - pair_arguments, + Groonga::Command::ColumnList.new(pair_arguments, ordered_arguments) end Modified: test/command/test-column-remove.rb (+1 -2) =================================================================== --- test/command/test-column-remove.rb 2016-08-05 11:41:07 +0900 (aeedc2e) +++ test/command/test-column-remove.rb 2016-08-08 11:09:23 +0900 (4881e17) @@ -19,8 +19,7 @@ class ColumnRemoveCommandTest < Test::Unit::TestCase private def column_remove_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ColumnRemove.new("column_remove", - pair_arguments, + Groonga::Command::ColumnRemove.new(pair_arguments, ordered_arguments) end Modified: test/command/test-column-rename.rb (+1 -2) =================================================================== --- test/command/test-column-rename.rb 2016-08-05 11:41:07 +0900 (ba08c1a) +++ test/command/test-column-rename.rb 2016-08-08 11:09:23 +0900 (2addd12) @@ -19,8 +19,7 @@ class ColumnRenameCommandTest < Test::Unit::TestCase private def column_rename_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ColumnRename.new("column_rename", - pair_arguments, + Groonga::Command::ColumnRename.new(pair_arguments, ordered_arguments) end Modified: test/command/test-config-delete.rb (+1 -2) =================================================================== --- test/command/test-config-delete.rb 2016-08-05 11:41:07 +0900 (ebc03f1) +++ test/command/test-config-delete.rb 2016-08-08 11:09:23 +0900 (e4f5548) @@ -17,8 +17,7 @@ class ConfigDeleteCommandTest < Test::Unit::TestCase private def config_delete_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ConfigDelete.new("config_delete", - pair_arguments, + Groonga::Command::ConfigDelete.new(pair_arguments, ordered_arguments) end Modified: test/command/test-config-get.rb (+2 -3) =================================================================== --- test/command/test-config-get.rb 2016-08-05 11:41:07 +0900 (7fc54ae) +++ test/command/test-config-get.rb 2016-08-08 11:09:23 +0900 (e46ea64) @@ -17,9 +17,8 @@ class ConfigGetCommandTest < Test::Unit::TestCase private def config_get_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ConfigGet.new("config_get", - pair_arguments, - ordered_arguments) + Groonga::Command::ConfigGet.new(pair_arguments, + ordered_arguments) end class ConstructorTest < self Modified: test/command/test-config-set.rb (+2 -3) =================================================================== --- test/command/test-config-set.rb 2016-08-05 11:41:07 +0900 (7f0feb3) +++ test/command/test-config-set.rb 2016-08-08 11:09:23 +0900 (92f617c) @@ -17,9 +17,8 @@ class ConfigSetCommandTest < Test::Unit::TestCase private def config_set_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ConfigSet.new("config_set", - pair_arguments, - ordered_arguments) + Groonga::Command::ConfigSet.new(pair_arguments, + ordered_arguments) end class ConstructorTest < self Modified: test/command/test-delete.rb (+1 -2) =================================================================== --- test/command/test-delete.rb 2016-08-05 11:41:07 +0900 (2ff9b64) +++ test/command/test-delete.rb 2016-08-08 11:09:23 +0900 (f69a2da) @@ -19,8 +19,7 @@ class DeleteCommandTest < Test::Unit::TestCase private def delete_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Delete.new("delete", - pair_arguments, + Groonga::Command::Delete.new(pair_arguments, ordered_arguments) end Modified: test/command/test-dump.rb (+1 -1) =================================================================== --- test/command/test-dump.rb 2016-08-05 11:41:07 +0900 (1e97e19) +++ test/command/test-dump.rb 2016-08-08 11:09:23 +0900 (0fe30c4) @@ -19,7 +19,7 @@ class DumpCommandTest < Test::Unit::TestCase private def dump_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Dump.new("dump", pair_arguments, ordered_arguments) + Groonga::Command::Dump.new(pair_arguments, ordered_arguments) end class ConstructorTest < self Modified: test/command/test-get.rb (+1 -1) =================================================================== --- test/command/test-get.rb 2016-08-05 11:41:07 +0900 (5e08dab) +++ test/command/test-get.rb 2016-08-08 11:09:23 +0900 (ab9bcf0) @@ -20,7 +20,7 @@ class GetCommandTest < Test::Unit::TestCase private def get_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Get.new("get", pair_arguments, ordered_arguments) + Groonga::Command::Get.new(pair_arguments, ordered_arguments) end class ConstructorTest < self Modified: test/command/test-io-flush.rb (+1 -2) =================================================================== --- test/command/test-io-flush.rb 2016-08-05 11:41:07 +0900 (9b9ce7c) +++ test/command/test-io-flush.rb 2016-08-08 11:09:23 +0900 (4c0a61b) @@ -17,8 +17,7 @@ class IOFlushCommandTest < Test::Unit::TestCase private def io_flush_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::IOFlush.new("io_flush", - pair_arguments, + Groonga::Command::IOFlush.new(pair_arguments, ordered_arguments) end Modified: test/command/test-load.rb (+1 -2) =================================================================== --- test/command/test-load.rb 2016-08-05 11:41:07 +0900 (8971dc9) +++ test/command/test-load.rb 2016-08-08 11:09:23 +0900 (fdf10e7) @@ -19,8 +19,7 @@ class LoadCommandTest < Test::Unit::TestCase private def load_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Load.new("load", - pair_arguments, + Groonga::Command::Load.new(pair_arguments, ordered_arguments) end Modified: test/command/test-log-level.rb (+1 -2) =================================================================== --- test/command/test-log-level.rb 2016-08-05 11:41:07 +0900 (6023ebd) +++ test/command/test-log-level.rb 2016-08-08 11:09:23 +0900 (8a59737) @@ -17,8 +17,7 @@ class LogLevelCommandTest < Test::Unit::TestCase private def log_level_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::LogLevel.new("log_level", - pair_arguments, + Groonga::Command::LogLevel.new(pair_arguments, ordered_arguments) end Modified: test/command/test-log-put.rb (+1 -2) =================================================================== --- test/command/test-log-put.rb 2016-08-05 11:41:07 +0900 (ac0a273) +++ test/command/test-log-put.rb 2016-08-08 11:09:23 +0900 (33ffd23) @@ -17,8 +17,7 @@ class LogPutCommandTest < Test::Unit::TestCase private def log_put_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::LogPut.new("log_put", - pair_arguments, + Groonga::Command::LogPut.new(pair_arguments, ordered_arguments) end Modified: test/command/test-logical-count.rb (+1 -2) =================================================================== --- test/command/test-logical-count.rb 2016-08-05 11:41:07 +0900 (b3aa5ca) +++ test/command/test-logical-count.rb 2016-08-08 11:09:23 +0900 (cdea3f1) @@ -17,8 +17,7 @@ class LogicalCountCommandTest < Test::Unit::TestCase private def logical_count_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::LogicalCount.new("logical_count", - pair_arguments, + Groonga::Command::LogicalCount.new(pair_arguments, ordered_arguments) end Modified: test/command/test-logical-range-filter.rb (+1 -2) =================================================================== --- test/command/test-logical-range-filter.rb 2016-08-05 11:41:07 +0900 (0ca0142) +++ test/command/test-logical-range-filter.rb 2016-08-08 11:09:23 +0900 (8116d86) @@ -17,8 +17,7 @@ class LogicalRangeFilterCommandTest < Test::Unit::TestCase private def logical_range_filter_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::LogicalRangeFilter.new("logical_range_filter", - pair_arguments, + Groonga::Command::LogicalRangeFilter.new(pair_arguments, ordered_arguments) end Modified: test/command/test-logical-select.rb (+1 -2) =================================================================== --- test/command/test-logical-select.rb 2016-08-05 11:41:07 +0900 (201fb56) +++ test/command/test-logical-select.rb 2016-08-08 11:09:23 +0900 (ff0ba9e) @@ -17,8 +17,7 @@ class LogicalSelectCommandTest < Test::Unit::TestCase private def logical_select_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::LogicalSelect.new("logical_select", - pair_arguments, + Groonga::Command::LogicalSelect.new(pair_arguments, ordered_arguments) end Modified: test/command/test-logical-shard-list.rb (+1 -2) =================================================================== --- test/command/test-logical-shard-list.rb 2016-08-05 11:41:07 +0900 (09b38f2) +++ test/command/test-logical-shard-list.rb 2016-08-08 11:09:23 +0900 (904b307) @@ -17,8 +17,7 @@ class LogicalShardListCommandTest < Test::Unit::TestCase private def logical_shard_list_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::LogicalShardList.new("logical_shard_list", - pair_arguments, + Groonga::Command::LogicalShardList.new(pair_arguments, ordered_arguments) end Modified: test/command/test-logical-table-remove.rb (+1 -2) =================================================================== --- test/command/test-logical-table-remove.rb 2016-08-05 11:41:07 +0900 (ef567dd) +++ test/command/test-logical-table-remove.rb 2016-08-08 11:09:23 +0900 (1bb59e3) @@ -17,8 +17,7 @@ class LogicalTableRemoveCommandTest < Test::Unit::TestCase private def logical_table_remove_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::LogicalTableRemove.new("logical_table_remove", - pair_arguments, + Groonga::Command::LogicalTableRemove.new(pair_arguments, ordered_arguments) end Modified: test/command/test-normalize.rb (+1 -2) =================================================================== --- test/command/test-normalize.rb 2016-08-05 11:41:07 +0900 (e599067) +++ test/command/test-normalize.rb 2016-08-08 11:09:23 +0900 (f1aa370) @@ -19,8 +19,7 @@ class NormalizeCommandTest < Test::Unit::TestCase private def normalize_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Normalize.new("normalize", - pair_arguments, + Groonga::Command::Normalize.new(pair_arguments, ordered_arguments) end Modified: test/command/test-object-exist.rb (+1 -2) =================================================================== --- test/command/test-object-exist.rb 2016-08-05 11:41:07 +0900 (1e07a91) +++ test/command/test-object-exist.rb 2016-08-08 11:09:23 +0900 (0df5e79) @@ -17,8 +17,7 @@ class ObjectExistCommandTest < Test::Unit::TestCase private def object_exist_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ObjectExist.new("object_exist", - pair_arguments, + Groonga::Command::ObjectExist.new(pair_arguments, ordered_arguments) end Modified: test/command/test-object-inspect.rb (+1 -2) =================================================================== --- test/command/test-object-inspect.rb 2016-08-05 11:41:07 +0900 (6020d01) +++ test/command/test-object-inspect.rb 2016-08-08 11:09:23 +0900 (e6c49d8) @@ -17,8 +17,7 @@ class ObjectInspectCommandTest < Test::Unit::TestCase private def object_inspect_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ObjectInspect.new("object_inspect", - pair_arguments, + Groonga::Command::ObjectInspect.new(pair_arguments, ordered_arguments) end Modified: test/command/test-object-remove.rb (+1 -2) =================================================================== --- test/command/test-object-remove.rb 2016-08-05 11:41:07 +0900 (4229abc) +++ test/command/test-object-remove.rb 2016-08-08 11:09:23 +0900 (6cf6366) @@ -17,8 +17,7 @@ class ObjectRemoveCommandTest < Test::Unit::TestCase private def object_remove_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ObjectRemove.new("object_remove", - pair_arguments, + Groonga::Command::ObjectRemove.new(pair_arguments, ordered_arguments) end Modified: test/command/test-plugin-register.rb (+2 -3) =================================================================== --- test/command/test-plugin-register.rb 2016-08-05 11:41:07 +0900 (1994c80) +++ test/command/test-plugin-register.rb 2016-08-08 11:09:23 +0900 (d63c24b) @@ -17,9 +17,8 @@ class PluginRegisterCommandTest < Test::Unit::TestCase private def plugin_register_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::PluginRegister.new("plugin_register", - pair_arguments, - ordered_arguments) + Groonga::Command::PluginRegister.new(pair_arguments, + ordered_arguments) end class ConstructorTest < self Modified: test/command/test-plugin-unregister.rb (+1 -2) =================================================================== --- test/command/test-plugin-unregister.rb 2016-08-05 11:41:07 +0900 (8abbb51) +++ test/command/test-plugin-unregister.rb 2016-08-08 11:09:23 +0900 (c5221da) @@ -17,8 +17,7 @@ class PluginUnregisterCommandTest < Test::Unit::TestCase private def plugin_unregister_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::PluginUnregister.new("plugin_unregister", - pair_arguments, + Groonga::Command::PluginUnregister.new(pair_arguments, ordered_arguments) end Modified: test/command/test-query-expand.rb (+1 -2) =================================================================== --- test/command/test-query-expand.rb 2016-08-05 11:41:07 +0900 (6057159) +++ test/command/test-query-expand.rb 2016-08-08 11:09:23 +0900 (3f515a3) @@ -17,8 +17,7 @@ class QueryExpandCommandTest < Test::Unit::TestCase private def query_expand_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::QueryExpand.new("query_expand", - pair_arguments, + Groonga::Command::QueryExpand.new(pair_arguments, ordered_arguments) end Modified: test/command/test-range-filter.rb (+1 -2) =================================================================== --- test/command/test-range-filter.rb 2016-08-05 11:41:07 +0900 (e448a92) +++ test/command/test-range-filter.rb 2016-08-08 11:09:23 +0900 (0234b74) @@ -17,8 +17,7 @@ class RangeFilterCommandTest < Test::Unit::TestCase private def range_filter_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::RangeFilter.new("range_filter", - pair_arguments, + Groonga::Command::RangeFilter.new(pair_arguments, ordered_arguments) end Modified: test/command/test-register.rb (+1 -2) =================================================================== --- test/command/test-register.rb 2016-08-05 11:41:07 +0900 (bdd35a0) +++ test/command/test-register.rb 2016-08-08 11:09:23 +0900 (b4386af) @@ -19,8 +19,7 @@ class RegisterCommandTest < Test::Unit::TestCase private def register_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Register.new("register", - pair_arguments, + Groonga::Command::Register.new(pair_arguments, ordered_arguments) end Modified: test/command/test-reindex.rb (+1 -2) =================================================================== --- test/command/test-reindex.rb 2016-08-05 11:41:07 +0900 (fd415e9) +++ test/command/test-reindex.rb 2016-08-08 11:09:23 +0900 (961fcd5) @@ -17,8 +17,7 @@ class ReindexCommandTest < Test::Unit::TestCase private def reindex_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Reindex.new("reindex", - pair_arguments, + Groonga::Command::Reindex.new(pair_arguments, ordered_arguments) end Modified: test/command/test-request-cancel.rb (+1 -2) =================================================================== --- test/command/test-request-cancel.rb 2016-08-05 11:41:07 +0900 (1c8998c) +++ test/command/test-request-cancel.rb 2016-08-08 11:09:23 +0900 (51bf605) @@ -17,8 +17,7 @@ class RequestCancelCommandTest < Test::Unit::TestCase private def request_cancel_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::RequestCancel.new("request_cancel", - pair_arguments, + Groonga::Command::RequestCancel.new(pair_arguments, ordered_arguments) end Modified: test/command/test-ruby-eval.rb (+1 -2) =================================================================== --- test/command/test-ruby-eval.rb 2016-08-05 11:41:07 +0900 (9d8dc55) +++ test/command/test-ruby-eval.rb 2016-08-08 11:09:23 +0900 (b8ff5c6) @@ -19,8 +19,7 @@ class RubyEvalCommandTest < Test::Unit::TestCase private def ruby_eval_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::RubyEval.new("ruby_eval", - pair_arguments, + Groonga::Command::RubyEval.new(pair_arguments, ordered_arguments) end Modified: test/command/test-ruby-load.rb (+1 -2) =================================================================== --- test/command/test-ruby-load.rb 2016-08-05 11:41:07 +0900 (2f767b1) +++ test/command/test-ruby-load.rb 2016-08-08 11:09:23 +0900 (ba5e018) @@ -19,8 +19,7 @@ class RubyLoadCommandTest < Test::Unit::TestCase private def ruby_load_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::RubyLoad.new("ruby_load", - pair_arguments, + Groonga::Command::RubyLoad.new(pair_arguments, ordered_arguments) end Modified: test/command/test-schema.rb (+1 -1) =================================================================== --- test/command/test-schema.rb 2016-08-05 11:41:07 +0900 (dca472e) +++ test/command/test-schema.rb 2016-08-08 11:09:23 +0900 (2e4d651) @@ -17,7 +17,7 @@ class SchemaCommandTest < Test::Unit::TestCase private def schema_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Schema.new("schema", pair_arguments, ordered_arguments) + Groonga::Command::Schema.new(pair_arguments, ordered_arguments) end class ConstructorTest < self Modified: test/command/test-select.rb (+1 -1) =================================================================== --- test/command/test-select.rb 2016-08-05 11:41:07 +0900 (f49c20d) +++ test/command/test-select.rb 2016-08-08 11:09:23 +0900 (d4e7193) @@ -19,7 +19,7 @@ class SelectCommandTest < Test::Unit::TestCase private def select_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Select.new("select", pair_arguments, ordered_arguments) + Groonga::Command::Select.new(pair_arguments, ordered_arguments) end class ConstructorTest < self Modified: test/command/test-shutdown.rb (+1 -2) =================================================================== --- test/command/test-shutdown.rb 2016-08-05 11:41:07 +0900 (d154e68) +++ test/command/test-shutdown.rb 2016-08-08 11:09:23 +0900 (38081e5) @@ -17,8 +17,7 @@ class ShutdownCommandTest < Test::Unit::TestCase private def shutdown_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Shutdown.new("shutdown", - pair_arguments, + Groonga::Command::Shutdown.new(pair_arguments, ordered_arguments) end Modified: test/command/test-status.rb (+1 -1) =================================================================== --- test/command/test-status.rb 2016-08-05 11:41:07 +0900 (215a356) +++ test/command/test-status.rb 2016-08-08 11:09:23 +0900 (69cd635) @@ -19,7 +19,7 @@ class StatusCommandTest < Test::Unit::TestCase private def status_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Status.new("status", pair_arguments, ordered_arguments) + Groonga::Command::Status.new(pair_arguments, ordered_arguments) end class ConstructorTest < self Modified: test/command/test-suggest.rb (+1 -2) =================================================================== --- test/command/test-suggest.rb 2016-08-05 11:41:07 +0900 (4025ba4) +++ test/command/test-suggest.rb 2016-08-08 11:09:23 +0900 (a0ac796) @@ -20,8 +20,7 @@ class SuggestCommandTest < Test::Unit::TestCase private def suggest_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Suggest.new("suggest", - pair_arguments, + Groonga::Command::Suggest.new(pair_arguments, ordered_arguments) end Modified: test/command/test-table-create.rb (+1 -2) =================================================================== --- test/command/test-table-create.rb 2016-08-05 11:41:07 +0900 (5f011c2) +++ test/command/test-table-create.rb 2016-08-08 11:09:23 +0900 (e3b9121) @@ -17,8 +17,7 @@ class TableCreateCommandTest < Test::Unit::TestCase private def table_create_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::TableCreate.new("table_create", - pair_arguments, + Groonga::Command::TableCreate.new(pair_arguments, ordered_arguments) end Modified: test/command/test-table-list.rb (+1 -2) =================================================================== --- test/command/test-table-list.rb 2016-08-05 11:41:07 +0900 (171b37f) +++ test/command/test-table-list.rb 2016-08-08 11:09:23 +0900 (5be8748) @@ -17,8 +17,7 @@ class TableListCommandTest < Test::Unit::TestCase private def table_list_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::TableList.new("table_list", - pair_arguments, + Groonga::Command::TableList.new(pair_arguments, ordered_arguments) end Modified: test/command/test-table-remove.rb (+1 -2) =================================================================== --- test/command/test-table-remove.rb 2016-08-05 11:41:07 +0900 (8164496) +++ test/command/test-table-remove.rb 2016-08-08 11:09:23 +0900 (2832318) @@ -17,8 +17,7 @@ class TableRemoveCommandTest < Test::Unit::TestCase private def table_remove_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::TableRemove.new("table_remove", - pair_arguments, + Groonga::Command::TableRemove.new(pair_arguments, ordered_arguments) end Modified: test/command/test-table-rename.rb (+1 -2) =================================================================== --- test/command/test-table-rename.rb 2016-08-05 11:41:07 +0900 (79b2c1c) +++ test/command/test-table-rename.rb 2016-08-08 11:09:23 +0900 (82a5a74) @@ -19,8 +19,7 @@ class TableRenameCommandTest < Test::Unit::TestCase private def table_rename_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::TableRename.new("table_rename", - pair_arguments, + Groonga::Command::TableRename.new(pair_arguments, ordered_arguments) end Modified: test/command/test-table-tokenize.rb (+1 -2) =================================================================== --- test/command/test-table-tokenize.rb 2016-08-05 11:41:07 +0900 (27f4e32) +++ test/command/test-table-tokenize.rb 2016-08-08 11:09:23 +0900 (849b41b) @@ -17,8 +17,7 @@ class TableTokenizeCommandTest < Test::Unit::TestCase private def table_tokenize_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::TableTokenize.new("table_tokenize", - pair_arguments, + Groonga::Command::TableTokenize.new(pair_arguments, ordered_arguments) end Modified: test/command/test-thread-limit.rb (+1 -2) =================================================================== --- test/command/test-thread-limit.rb 2016-08-05 11:41:07 +0900 (06afcbf) +++ test/command/test-thread-limit.rb 2016-08-08 11:09:23 +0900 (cc666a7) @@ -17,8 +17,7 @@ class ThreadLimitCommandTest < Test::Unit::TestCase private def thread_limit_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::ThreadLimit.new("thread_limit", - pair_arguments, + Groonga::Command::ThreadLimit.new(pair_arguments, ordered_arguments) end Modified: test/command/test-tokenize.rb (+1 -2) =================================================================== --- test/command/test-tokenize.rb 2016-08-05 11:41:07 +0900 (57a9feb) +++ test/command/test-tokenize.rb 2016-08-08 11:09:23 +0900 (78c5384) @@ -19,8 +19,7 @@ class TokenizeCommandTest < Test::Unit::TestCase private def tokenize_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Tokenize.new("tokenize", - pair_arguments, + Groonga::Command::Tokenize.new(pair_arguments, ordered_arguments) end Modified: test/command/test-truncate.rb (+1 -2) =================================================================== --- test/command/test-truncate.rb 2016-08-05 11:41:07 +0900 (18a2b16) +++ test/command/test-truncate.rb 2016-08-08 11:09:23 +0900 (2e9dbf6) @@ -19,8 +19,7 @@ class TruncateCommandTest < Test::Unit::TestCase private def truncate_command(pair_arguments={}, ordered_arguments=[]) - Groonga::Command::Truncate.new("truncate", - pair_arguments, + Groonga::Command::Truncate.new(pair_arguments, ordered_arguments) end