groonga-command 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/doc/text/news.md +17 -10
  3. data/lib/groonga/command/base.rb +37 -1
  4. data/lib/groonga/command/column-copy.rb +7 -3
  5. data/lib/groonga/command/column-create.rb +11 -7
  6. data/lib/groonga/command/column-list.rb +6 -2
  7. data/lib/groonga/command/column-remove.rb +6 -2
  8. data/lib/groonga/command/column-rename.rb +6 -2
  9. data/lib/groonga/command/config-delete.rb +6 -2
  10. data/lib/groonga/command/config-get.rb +6 -2
  11. data/lib/groonga/command/config-set.rb +6 -2
  12. data/lib/groonga/command/delete.rb +6 -2
  13. data/lib/groonga/command/dump.rb +6 -2
  14. data/lib/groonga/command/get.rb +6 -2
  15. data/lib/groonga/command/io-flush.rb +6 -2
  16. data/lib/groonga/command/load.rb +6 -2
  17. data/lib/groonga/command/log-level.rb +6 -2
  18. data/lib/groonga/command/log-put.rb +6 -2
  19. data/lib/groonga/command/logical-count.rb +6 -2
  20. data/lib/groonga/command/logical-range-filter.rb +6 -2
  21. data/lib/groonga/command/logical-select.rb +6 -2
  22. data/lib/groonga/command/logical-shard-list.rb +6 -2
  23. data/lib/groonga/command/logical-table-remove.rb +6 -2
  24. data/lib/groonga/command/normalize.rb +6 -2
  25. data/lib/groonga/command/object-exist.rb +6 -2
  26. data/lib/groonga/command/object-inspect.rb +6 -2
  27. data/lib/groonga/command/object-remove.rb +6 -2
  28. data/lib/groonga/command/plugin-register.rb +6 -2
  29. data/lib/groonga/command/plugin-unregister.rb +6 -2
  30. data/lib/groonga/command/query-expand.rb +6 -2
  31. data/lib/groonga/command/range-filter.rb +6 -2
  32. data/lib/groonga/command/register.rb +6 -2
  33. data/lib/groonga/command/reindex.rb +6 -2
  34. data/lib/groonga/command/request-cancel.rb +6 -2
  35. data/lib/groonga/command/ruby-eval.rb +6 -2
  36. data/lib/groonga/command/ruby-load.rb +6 -2
  37. data/lib/groonga/command/schema.rb +7 -1
  38. data/lib/groonga/command/select.rb +6 -2
  39. data/lib/groonga/command/shutdown.rb +6 -2
  40. data/lib/groonga/command/status.rb +7 -1
  41. data/lib/groonga/command/suggest.rb +6 -2
  42. data/lib/groonga/command/table-create.rb +6 -2
  43. data/lib/groonga/command/table-list.rb +6 -2
  44. data/lib/groonga/command/table-remove.rb +6 -2
  45. data/lib/groonga/command/table-rename.rb +6 -2
  46. data/lib/groonga/command/table-tokenize.rb +6 -2
  47. data/lib/groonga/command/thread-limit.rb +6 -2
  48. data/lib/groonga/command/tokenize.rb +6 -2
  49. data/lib/groonga/command/truncate.rb +6 -2
  50. data/lib/groonga/command/version.rb +1 -1
  51. data/test/command/test-column-copy.rb +1 -2
  52. data/test/command/test-column-create.rb +1 -2
  53. data/test/command/test-column-list.rb +1 -2
  54. data/test/command/test-column-remove.rb +1 -2
  55. data/test/command/test-column-rename.rb +1 -2
  56. data/test/command/test-config-delete.rb +1 -2
  57. data/test/command/test-config-get.rb +2 -3
  58. data/test/command/test-config-set.rb +2 -3
  59. data/test/command/test-delete.rb +1 -2
  60. data/test/command/test-dump.rb +1 -1
  61. data/test/command/test-get.rb +1 -1
  62. data/test/command/test-io-flush.rb +1 -2
  63. data/test/command/test-load.rb +1 -2
  64. data/test/command/test-log-level.rb +1 -2
  65. data/test/command/test-log-put.rb +1 -2
  66. data/test/command/test-logical-count.rb +1 -2
  67. data/test/command/test-logical-range-filter.rb +1 -2
  68. data/test/command/test-logical-select.rb +1 -2
  69. data/test/command/test-logical-shard-list.rb +1 -2
  70. data/test/command/test-logical-table-remove.rb +1 -2
  71. data/test/command/test-normalize.rb +1 -2
  72. data/test/command/test-object-exist.rb +1 -2
  73. data/test/command/test-object-inspect.rb +1 -2
  74. data/test/command/test-object-remove.rb +1 -2
  75. data/test/command/test-plugin-register.rb +2 -3
  76. data/test/command/test-plugin-unregister.rb +1 -2
  77. data/test/command/test-query-expand.rb +1 -2
  78. data/test/command/test-range-filter.rb +1 -2
  79. data/test/command/test-register.rb +1 -2
  80. data/test/command/test-reindex.rb +1 -2
  81. data/test/command/test-request-cancel.rb +1 -2
  82. data/test/command/test-ruby-eval.rb +1 -2
  83. data/test/command/test-ruby-load.rb +1 -2
  84. data/test/command/test-schema.rb +1 -1
  85. data/test/command/test-select.rb +1 -1
  86. data/test/command/test-shutdown.rb +1 -2
  87. data/test/command/test-status.rb +1 -1
  88. data/test/command/test-suggest.rb +1 -2
  89. data/test/command/test-table-create.rb +1 -2
  90. data/test/command/test-table-list.rb +1 -2
  91. data/test/command/test-table-remove.rb +1 -2
  92. data/test/command/test-table-rename.rb +1 -2
  93. data/test/command/test-table-tokenize.rb +1 -2
  94. data/test/command/test-thread-limit.rb +1 -2
  95. data/test/command/test-tokenize.rb +1 -2
  96. data/test/command/test-truncate.rb +1 -2
  97. metadata +41 -41
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.3
24
24
  class LogLevel < Base
25
- Command.register("log_level", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "log_level"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :level,
@@ -32,6 +34,8 @@ module Groonga
32
34
  end
33
35
  end
34
36
 
37
+ Command.register(command_name, self)
38
+
35
39
  # @return [String] `level` parameter value.
36
40
  #
37
41
  # @since 1.1.3
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.3
24
24
  class LogPut < Base
25
- Command.register("log_put", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "log_put"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :level,
@@ -33,6 +35,8 @@ module Groonga
33
35
  end
34
36
  end
35
37
 
38
+ Command.register(command_name, self)
39
+
36
40
  # @return [String] `level` parameter value.
37
41
  #
38
42
  # @since 1.1.3
@@ -24,9 +24,11 @@ module Groonga
24
24
  #
25
25
  # @since 1.1.1
26
26
  class LogicalCount < Base
27
- Command.register("logical_count", self)
28
-
29
27
  class << self
28
+ def command_name
29
+ "logical_count"
30
+ end
31
+
30
32
  def parameter_names
31
33
  [
32
34
  :logical_table,
@@ -40,6 +42,8 @@ module Groonga
40
42
  end
41
43
  end
42
44
 
45
+ Command.register(command_name, self)
46
+
43
47
  # @return [String] `logical_table` parameter value.
44
48
  #
45
49
  # @since 1.1.1
@@ -24,9 +24,11 @@ module Groonga
24
24
  #
25
25
  # @since 1.1.1
26
26
  class LogicalRangeFilter < Base
27
- Command.register("logical_range_filter", self)
28
-
29
27
  class << self
28
+ def command_name
29
+ "logical_range_filter"
30
+ end
31
+
30
32
  def parameter_names
31
33
  [
32
34
  :logical_table,
@@ -44,6 +46,8 @@ module Groonga
44
46
  end
45
47
  end
46
48
 
49
+ Command.register(command_name, self)
50
+
47
51
  # @return [String] `logical_table` parameter value.
48
52
  #
49
53
  # @since 1.1.1
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.3
24
24
  class LogicalSelect < Base
25
- Command.register("logical_select", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "logical_select"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :logical_table,
@@ -49,6 +51,8 @@ module Groonga
49
51
  end
50
52
  end
51
53
 
54
+ Command.register(command_name, self)
55
+
52
56
  # @return [String] `logical_table` parameter value.
53
57
  #
54
58
  # @since 1.1.3
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.3
24
24
  class LogicalShardList < Base
25
- Command.register("logical_shard_list", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "logical_shard_list"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :logical_table,
@@ -32,6 +34,8 @@ module Groonga
32
34
  end
33
35
  end
34
36
 
37
+ Command.register(command_name, self)
38
+
35
39
  # @return [String] `logical_table` parameter value.
36
40
  #
37
41
  # @since 1.1.3
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.3
24
24
  class LogicalTableRemove < Base
25
- Command.register("logical_table_remove", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "logical_table_remove"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :logical_table,
@@ -37,6 +39,8 @@ module Groonga
37
39
  end
38
40
  end
39
41
 
42
+ Command.register(command_name, self)
43
+
40
44
  # @return [String] `logical_table` parameter value.
41
45
  #
42
46
  # @since 1.1.3
@@ -24,9 +24,11 @@ module Groonga
24
24
  #
25
25
  # @since 1.0.6
26
26
  class Normalize < Base
27
- Command.register("normalize", self)
28
-
29
27
  class << self
28
+ def command_name
29
+ "normalize"
30
+ end
31
+
30
32
  def parameter_names
31
33
  [
32
34
  :normalizer,
@@ -36,6 +38,8 @@ module Groonga
36
38
  end
37
39
  end
38
40
 
41
+ Command.register(command_name, self)
42
+
39
43
  # @return [String] `normalizer` parameter value.
40
44
  # @since 1.0.6
41
45
  def normalizer
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.3
24
24
  class ObjectExist < Base
25
- Command.register("object_exist", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "object_exist"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :name,
@@ -32,6 +34,8 @@ module Groonga
32
34
  end
33
35
  end
34
36
 
37
+ Command.register(command_name, self)
38
+
35
39
  # @return [String] `name` parameter value.
36
40
  #
37
41
  # @since 1.1.3
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.7
24
24
  class ObjectInspect < Base
25
- Command.register("object_inspect", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "object_inspect"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :name,
@@ -32,6 +34,8 @@ module Groonga
32
34
  end
33
35
  end
34
36
 
37
+ Command.register(command_name, self)
38
+
35
39
  # @return [String] `name` parameter value.
36
40
  #
37
41
  # @since 1.1.7
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.7
24
24
  class ObjectRemove < Base
25
- Command.register("object_remove", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "object_remove"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :name,
@@ -33,6 +35,8 @@ module Groonga
33
35
  end
34
36
  end
35
37
 
38
+ Command.register(command_name, self)
39
+
36
40
  # @return [String] `name` parameter value.
37
41
  #
38
42
  # @since 1.1.7
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.2
24
24
  class PluginRegister < Base
25
- Command.register("plugin_register", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "plugin_register"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :name,
@@ -32,6 +34,8 @@ module Groonga
32
34
  end
33
35
  end
34
36
 
37
+ Command.register(command_name, self)
38
+
35
39
  # @return [String] `name` parameter value.
36
40
  #
37
41
  # @since 1.1.2
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.2
24
24
  class PluginUnregister < Base
25
- Command.register("plugin_unregister", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "plugin_unregister"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :name,
@@ -32,6 +34,8 @@ module Groonga
32
34
  end
33
35
  end
34
36
 
37
+ Command.register(command_name, self)
38
+
35
39
  # @return [String] `name` parameter value.
36
40
  #
37
41
  # @since 1.1.2
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.2.1
24
24
  class QueryExpand < Base
25
- Command.register("query_expand", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "query_expand"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :expander,
@@ -34,6 +36,8 @@ module Groonga
34
36
  end
35
37
  end
36
38
 
39
+ Command.register(command_name, self)
40
+
37
41
  # @return [String] `expander` parameter value.
38
42
  #
39
43
  # @since 1.2.1
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.0
24
24
  class RangeFilter < Base
25
- Command.register("range_filter", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "range_filter"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :table,
@@ -41,6 +43,8 @@ module Groonga
41
43
  end
42
44
  end
43
45
 
46
+ Command.register(command_name, self)
47
+
44
48
  # @return [String] `table` parameter value.
45
49
  #
46
50
  # @since 1.1.0
@@ -21,15 +21,19 @@ require "groonga/command/base"
21
21
  module Groonga
22
22
  module Command
23
23
  class Register < Base
24
- Command.register("register", self)
25
-
26
24
  class << self
25
+ def command_name
26
+ "register"
27
+ end
28
+
27
29
  def parameter_names
28
30
  [
29
31
  :path,
30
32
  ]
31
33
  end
32
34
  end
35
+
36
+ Command.register(command_name, self)
33
37
  end
34
38
  end
35
39
  end
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.4
24
24
  class Reindex < Base
25
- Command.register("reindex", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "reindex"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :target_name,
@@ -32,6 +34,8 @@ module Groonga
32
34
  end
33
35
  end
34
36
 
37
+ Command.register(command_name, self)
38
+
35
39
  # @return [String] `target_name` parameter value.
36
40
  #
37
41
  # @since 1.1.4
@@ -22,9 +22,11 @@ module Groonga
22
22
  #
23
23
  # @since 1.1.0
24
24
  class RequestCancel < Base
25
- Command.register("request_cancel", self)
26
-
27
25
  class << self
26
+ def command_name
27
+ "request_cancel"
28
+ end
29
+
28
30
  def parameter_names
29
31
  [
30
32
  :id,
@@ -32,6 +34,8 @@ module Groonga
32
34
  end
33
35
  end
34
36
 
37
+ Command.register(command_name, self)
38
+
35
39
  # @return [String] `id` parameter value.
36
40
  # @since 1.1.0
37
41
  def id
@@ -24,9 +24,11 @@ module Groonga
24
24
  #
25
25
  # @since 1.0.6
26
26
  class RubyEval < Base
27
- Command.register("ruby_eval", self)
28
-
29
27
  class << self
28
+ def command_name
29
+ "ruby_eval"
30
+ end
31
+
30
32
  def parameter_names
31
33
  [
32
34
  :script,
@@ -34,6 +36,8 @@ module Groonga
34
36
  end
35
37
  end
36
38
 
39
+ Command.register(command_name, self)
40
+
37
41
  # @return [String] `script` parameter value.
38
42
  # @since 1.0.6
39
43
  def script