groonga-command 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +12 -3
- data/lib/groonga/command.rb +3 -3
- data/lib/groonga/command/{conf-delete.rb → config-delete.rb} +4 -4
- data/lib/groonga/command/{conf-get.rb → config-get.rb} +4 -4
- data/lib/groonga/command/{conf-set.rb → config-set.rb} +4 -4
- data/lib/groonga/command/dump.rb +14 -1
- data/lib/groonga/command/version.rb +2 -2
- data/test/command/{test-conf-delete.rb → test-config-delete.rb} +7 -7
- data/test/command/{test-conf-get.rb → test-config-get.rb} +8 -8
- data/test/command/{test-conf-set.rb → test-config-set.rb} +11 -11
- data/test/command/test-dump.rb +31 -1
- metadata +43 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 388071a469c019cc4fd9aa8887892fe0e0269ad7
|
4
|
+
data.tar.gz: 4787ea39cfa7aaf9e6b5d49b777498a2b9896bd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ad7f5ed504c4236d2a94a3d2942c7ac6fbf2da8cf73cb7f699f59079ec72bd1c01d848f9546054eb6e5da9d5d368092935985e6ec75a38c7f090d4d12f09f5
|
7
|
+
data.tar.gz: f0924dd5f27b02e1a5f449e9d84d767090ced987ef52c6e6a930a113805d3f273f488381b318ff05cc93646138bee5b3fde6d0b912eb7f7770a2f12cde159d0d
|
data/doc/text/news.md
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.1.5: 2016-01-19
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Renamed to {Groonga::Command::ConfigGet} from {Groonga::Command::ConfGet}.
|
8
|
+
* Renamed to {Groonga::Command::ConfigSet} from {Groonga::Command::ConfSet}.
|
9
|
+
* Renamed to {Groonga::Command::ConfigDelete} from
|
10
|
+
{Groonga::Command::ConfDelete}.
|
11
|
+
|
3
12
|
## 1.1.4: 2016-01-13
|
4
13
|
|
5
14
|
### Improvements
|
6
15
|
|
7
|
-
*
|
8
|
-
*
|
9
|
-
*
|
16
|
+
* `Groonga::Command::ConfGet`: Added.
|
17
|
+
* `Groonga::Command::ConfSet`: Added.
|
18
|
+
* `Groonga::Command::ConfDelete`: Added.
|
10
19
|
|
11
20
|
## 1.1.3: 2015-08-19
|
12
21
|
|
data/lib/groonga/command.rb
CHANGED
@@ -25,9 +25,9 @@ require "groonga/command/column-create"
|
|
25
25
|
require "groonga/command/column-list"
|
26
26
|
require "groonga/command/column-remove"
|
27
27
|
require "groonga/command/column-rename"
|
28
|
-
require "groonga/command/
|
29
|
-
require "groonga/command/
|
30
|
-
require "groonga/command/
|
28
|
+
require "groonga/command/config-delete"
|
29
|
+
require "groonga/command/config-get"
|
30
|
+
require "groonga/command/config-set"
|
31
31
|
require "groonga/command/delete"
|
32
32
|
require "groonga/command/dump"
|
33
33
|
require "groonga/command/get"
|
@@ -18,11 +18,11 @@ require "groonga/command/base"
|
|
18
18
|
|
19
19
|
module Groonga
|
20
20
|
module Command
|
21
|
-
# A command class that represents `
|
21
|
+
# A command class that represents `config_delete` command.
|
22
22
|
#
|
23
|
-
# @since 1.1.
|
24
|
-
class
|
25
|
-
Command.register("
|
23
|
+
# @since 1.1.5
|
24
|
+
class ConfigDelete < Base
|
25
|
+
Command.register("config_delete", self)
|
26
26
|
|
27
27
|
class << self
|
28
28
|
def parameter_names
|
@@ -18,11 +18,11 @@ require "groonga/command/base"
|
|
18
18
|
|
19
19
|
module Groonga
|
20
20
|
module Command
|
21
|
-
# A command class that represents `
|
21
|
+
# A command class that represents `config_get` command.
|
22
22
|
#
|
23
|
-
# @since 1.1.
|
24
|
-
class
|
25
|
-
Command.register("
|
23
|
+
# @since 1.1.5
|
24
|
+
class ConfigGet < Base
|
25
|
+
Command.register("config_get", self)
|
26
26
|
|
27
27
|
class << self
|
28
28
|
def parameter_names
|
@@ -18,11 +18,11 @@ require "groonga/command/base"
|
|
18
18
|
|
19
19
|
module Groonga
|
20
20
|
module Command
|
21
|
-
# A command class that represents `
|
21
|
+
# A command class that represents `config_set` command.
|
22
22
|
#
|
23
|
-
# @since 1.1.
|
24
|
-
class
|
25
|
-
Command.register("
|
23
|
+
# @since 1.1.5
|
24
|
+
class ConfigSet < Base
|
25
|
+
Command.register("config_set", self)
|
26
26
|
|
27
27
|
class << self
|
28
28
|
def parameter_names
|
data/lib/groonga/command/dump.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
|
3
|
+
# Copyright (C) 2013-2016 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -23,6 +23,19 @@ module Groonga
|
|
23
23
|
class Dump < Base
|
24
24
|
Command.register("dump", self)
|
25
25
|
|
26
|
+
class << self
|
27
|
+
def parameter_names
|
28
|
+
[
|
29
|
+
:tables,
|
30
|
+
:dump_plugins,
|
31
|
+
:dump_schema,
|
32
|
+
:dump_records,
|
33
|
+
:dump_indexes,
|
34
|
+
:dump_configs,
|
35
|
+
]
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
26
39
|
def output_type
|
27
40
|
:none
|
28
41
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2012-
|
3
|
+
# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -18,6 +18,6 @@
|
|
18
18
|
|
19
19
|
module Groonga
|
20
20
|
module Command
|
21
|
-
VERSION = "1.1.
|
21
|
+
VERSION = "1.1.5"
|
22
22
|
end
|
23
23
|
end
|
@@ -14,19 +14,19 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
class
|
17
|
+
class ConfigDeleteCommandTest < Test::Unit::TestCase
|
18
18
|
private
|
19
|
-
def
|
20
|
-
Groonga::Command::
|
21
|
-
|
22
|
-
|
19
|
+
def config_delete_command(pair_arguments={}, ordered_arguments=[])
|
20
|
+
Groonga::Command::ConfigDelete.new("config_delete",
|
21
|
+
pair_arguments,
|
22
|
+
ordered_arguments)
|
23
23
|
end
|
24
24
|
|
25
25
|
class ConstructorTest < self
|
26
26
|
def test_ordered_arguments
|
27
27
|
key = "alias.table"
|
28
28
|
|
29
|
-
command =
|
29
|
+
command = config_delete_command({},
|
30
30
|
[
|
31
31
|
key,
|
32
32
|
])
|
@@ -39,7 +39,7 @@ class ConfDeleteCommandTest < Test::Unit::TestCase
|
|
39
39
|
|
40
40
|
class KeyTest < self
|
41
41
|
def test_reader
|
42
|
-
command =
|
42
|
+
command = config_delete_command(:key => "alias.table")
|
43
43
|
assert_equal("alias.table", command.key)
|
44
44
|
end
|
45
45
|
end
|
@@ -14,10 +14,10 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
class
|
17
|
+
class ConfigGetCommandTest < Test::Unit::TestCase
|
18
18
|
private
|
19
|
-
def
|
20
|
-
Groonga::Command::
|
19
|
+
def config_get_command(pair_arguments={}, ordered_arguments=[])
|
20
|
+
Groonga::Command::ConfigGet.new("config_get",
|
21
21
|
pair_arguments,
|
22
22
|
ordered_arguments)
|
23
23
|
end
|
@@ -26,10 +26,10 @@ class ConfGetCommandTest < Test::Unit::TestCase
|
|
26
26
|
def test_ordered_arguments
|
27
27
|
key = "alias.table"
|
28
28
|
|
29
|
-
command =
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
command = config_get_command({},
|
30
|
+
[
|
31
|
+
key,
|
32
|
+
])
|
33
33
|
assert_equal({
|
34
34
|
:key => key,
|
35
35
|
},
|
@@ -39,7 +39,7 @@ class ConfGetCommandTest < Test::Unit::TestCase
|
|
39
39
|
|
40
40
|
class KeyTest < self
|
41
41
|
def test_reader
|
42
|
-
command =
|
42
|
+
command = config_get_command(:key => "alias.table")
|
43
43
|
assert_equal("alias.table", command.key)
|
44
44
|
end
|
45
45
|
end
|
@@ -14,10 +14,10 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
class
|
17
|
+
class ConfigSetCommandTest < Test::Unit::TestCase
|
18
18
|
private
|
19
|
-
def
|
20
|
-
Groonga::Command::
|
19
|
+
def config_set_command(pair_arguments={}, ordered_arguments=[])
|
20
|
+
Groonga::Command::ConfigSet.new("config_set",
|
21
21
|
pair_arguments,
|
22
22
|
ordered_arguments)
|
23
23
|
end
|
@@ -27,11 +27,11 @@ class ConfSetCommandTest < Test::Unit::TestCase
|
|
27
27
|
key = "alias.table"
|
28
28
|
value = "Aliases"
|
29
29
|
|
30
|
-
command =
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
command = config_set_command({},
|
31
|
+
[
|
32
|
+
key,
|
33
|
+
value,
|
34
|
+
])
|
35
35
|
assert_equal({
|
36
36
|
:key => key,
|
37
37
|
:value => value,
|
@@ -42,15 +42,15 @@ class ConfSetCommandTest < Test::Unit::TestCase
|
|
42
42
|
|
43
43
|
class KeyTest < self
|
44
44
|
def test_reader
|
45
|
-
command =
|
45
|
+
command = config_set_command(:key => "alias.table")
|
46
46
|
assert_equal("alias.table", command.key)
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
50
|
class ValueTest < self
|
51
51
|
def test_reader
|
52
|
-
command =
|
53
|
-
|
52
|
+
command = config_set_command(:key => "alias.table",
|
53
|
+
:value => "Aliases")
|
54
54
|
assert_equal("Aliases", command.value)
|
55
55
|
end
|
56
56
|
end
|
data/test/command/test-dump.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
|
3
|
+
# Copyright (C) 2013-2016 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -22,6 +22,36 @@ class DumpCommandTest < Test::Unit::TestCase
|
|
22
22
|
Groonga::Command::Dump.new("dump", pair_arguments, ordered_arguments)
|
23
23
|
end
|
24
24
|
|
25
|
+
class ConstructorTest < self
|
26
|
+
def test_ordered_arguments
|
27
|
+
tables = "Users, Logs"
|
28
|
+
dump_plugins = "no"
|
29
|
+
dump_schema = "yes"
|
30
|
+
dump_records = "no"
|
31
|
+
dump_indexes = "yes"
|
32
|
+
dump_configs = "no"
|
33
|
+
|
34
|
+
command = dump_command({},
|
35
|
+
[
|
36
|
+
tables,
|
37
|
+
dump_plugins,
|
38
|
+
dump_schema,
|
39
|
+
dump_records,
|
40
|
+
dump_indexes,
|
41
|
+
dump_configs,
|
42
|
+
])
|
43
|
+
assert_equal({
|
44
|
+
:tables => tables,
|
45
|
+
:dump_plugins => dump_plugins,
|
46
|
+
:dump_schema => dump_schema,
|
47
|
+
:dump_records => dump_records,
|
48
|
+
:dump_indexes => dump_indexes,
|
49
|
+
:dump_configs => dump_configs,
|
50
|
+
},
|
51
|
+
command.arguments)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
25
55
|
class OutputTypeTest < self
|
26
56
|
def test_none
|
27
57
|
assert_equal(:none, dump_command.output_type)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groonga-command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -143,9 +143,9 @@ files:
|
|
143
143
|
- lib/groonga/command/column-list.rb
|
144
144
|
- lib/groonga/command/column-remove.rb
|
145
145
|
- lib/groonga/command/column-rename.rb
|
146
|
-
- lib/groonga/command/
|
147
|
-
- lib/groonga/command/
|
148
|
-
- lib/groonga/command/
|
146
|
+
- lib/groonga/command/config-delete.rb
|
147
|
+
- lib/groonga/command/config-get.rb
|
148
|
+
- lib/groonga/command/config-set.rb
|
149
149
|
- lib/groonga/command/delete.rb
|
150
150
|
- lib/groonga/command/dump.rb
|
151
151
|
- lib/groonga/command/error.rb
|
@@ -190,9 +190,9 @@ files:
|
|
190
190
|
- test/command/test-column-list.rb
|
191
191
|
- test/command/test-column-remove.rb
|
192
192
|
- test/command/test-column-rename.rb
|
193
|
-
- test/command/test-
|
194
|
-
- test/command/test-
|
195
|
-
- test/command/test-
|
193
|
+
- test/command/test-config-delete.rb
|
194
|
+
- test/command/test-config-get.rb
|
195
|
+
- test/command/test-config-set.rb
|
196
196
|
- test/command/test-delete.rb
|
197
197
|
- test/command/test-dump.rb
|
198
198
|
- test/command/test-get.rb
|
@@ -254,48 +254,49 @@ specification_version: 4
|
|
254
254
|
summary: Groonga-command is a library that represents [Groonga](http://groonga.org/)'s
|
255
255
|
command. You can write a program that handle Groonga's command by using groonga-command.
|
256
256
|
test_files:
|
257
|
-
- test/command
|
258
|
-
- test/command/test-
|
259
|
-
- test/command/test-
|
260
|
-
- test/command/test-
|
261
|
-
- test/command/test-log-put.rb
|
257
|
+
- test/groonga-command-test-utils.rb
|
258
|
+
- test/command/test-config-delete.rb
|
259
|
+
- test/command/test-table-tokenize.rb
|
260
|
+
- test/command/test-reindex.rb
|
262
261
|
- test/command/test-plugin-unregister.rb
|
263
|
-
- test/command/test-
|
262
|
+
- test/command/test-io-flush.rb
|
263
|
+
- test/command/test-base.rb
|
264
|
+
- test/command/test-logical-count.rb
|
265
|
+
- test/command/test-table-rename.rb
|
264
266
|
- test/command/test-column-rename.rb
|
265
|
-
- test/command/test-column-create.rb
|
266
|
-
- test/command/test-select.rb
|
267
|
-
- test/command/test-logical-select.rb
|
268
|
-
- test/command/test-table-tokenize.rb
|
269
|
-
- test/command/test-logical-shard-list.rb
|
270
|
-
- test/command/test-object-exist.rb
|
271
|
-
- test/command/test-suggest.rb
|
272
|
-
- test/command/test-conf-set.rb
|
273
|
-
- test/command/test-request-cancel.rb
|
274
|
-
- test/command/test-log-level.rb
|
275
|
-
- test/command/test-table-list.rb
|
276
|
-
- test/command/test-column-list.rb
|
277
|
-
- test/command/test-load.rb
|
278
267
|
- test/command/test-dump.rb
|
279
|
-
- test/command/test-
|
268
|
+
- test/command/test-normalize.rb
|
269
|
+
- test/command/test-config-get.rb
|
270
|
+
- test/command/test-register.rb
|
280
271
|
- test/command/test-delete.rb
|
281
|
-
- test/command/test-
|
272
|
+
- test/command/test-column-copy.rb
|
273
|
+
- test/command/test-tokenize.rb
|
274
|
+
- test/command/test-log-put.rb
|
275
|
+
- test/command/test-load.rb
|
276
|
+
- test/command/test-column-list.rb
|
282
277
|
- test/command/test-plugin-register.rb
|
283
|
-
- test/command/test-
|
284
|
-
- test/command/test-
|
285
|
-
- test/command/test-
|
286
|
-
- test/command/test-logical-count.rb
|
287
|
-
- test/command/test-normalize.rb
|
288
|
-
- test/command/test-get.rb
|
278
|
+
- test/command/test-request-cancel.rb
|
279
|
+
- test/command/test-column-create.rb
|
280
|
+
- test/command/test-config-set.rb
|
289
281
|
- test/command/test-logical-range-filter.rb
|
290
|
-
- test/command/test-logical-table-remove.rb
|
291
282
|
- test/command/format/test-command.rb
|
292
|
-
- test/command/test-
|
283
|
+
- test/command/test-logical-select.rb
|
284
|
+
- test/command/test-get.rb
|
293
285
|
- test/command/test-thread-limit.rb
|
294
|
-
- test/command/test-
|
295
|
-
- test/command/test-
|
296
|
-
- test/command/test-
|
286
|
+
- test/command/test-table-list.rb
|
287
|
+
- test/command/test-object-exist.rb
|
288
|
+
- test/command/test-log-level.rb
|
289
|
+
- test/command/test-range-filter.rb
|
297
290
|
- test/command/test-status.rb
|
298
|
-
- test/command/test-
|
291
|
+
- test/command/test-logical-shard-list.rb
|
292
|
+
- test/command/test-suggest.rb
|
293
|
+
- test/command/test-select.rb
|
294
|
+
- test/command/test-column-remove.rb
|
295
|
+
- test/command/test-ruby-eval.rb
|
299
296
|
- test/command/test-table-create.rb
|
297
|
+
- test/command/test-table-remove.rb
|
298
|
+
- test/command/test-ruby-load.rb
|
299
|
+
- test/command/test-truncate.rb
|
300
|
+
- test/command/test-logical-table-remove.rb
|
300
301
|
- test/run-test.rb
|
301
|
-
|
302
|
+
has_rdoc:
|