groonga-command 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/text/news.md +6 -0
- data/lib/groonga/command/inspect.rb +43 -0
- data/lib/groonga/command/version.rb +1 -3
- data/lib/groonga/command.rb +1 -0
- data/test/command/test-inspect.rb +46 -0
- metadata +39 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9210ac2c465dbd2ccedb83074b947005926314b
|
4
|
+
data.tar.gz: 3c7c16ede2d2b9869b15d904700197aed9d50d00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba67ef95064388d6f5495f73b7d1a78f32d4fde3e668d95e7d4ae0d84319a104c0fc4d14691c914288d3eaadca38b8bd7aa7c2850a4388bbc07b49793d0938aa
|
7
|
+
data.tar.gz: a66734f111d54996af571f0b5408b4602ae4ca9a4da191d451553ed1465d08df4bf630df9c08c5ff455bf3e1bd165690638df1d0d07f58bdd39a5afb2c076fbc
|
data/doc/text/news.md
CHANGED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
require "groonga/command/base"
|
18
|
+
|
19
|
+
module Groonga
|
20
|
+
module Command
|
21
|
+
# A command class that represents `inspect` command.
|
22
|
+
#
|
23
|
+
# @since 1.1.6
|
24
|
+
class Inspect < Base
|
25
|
+
Command.register("inspect", self)
|
26
|
+
|
27
|
+
class << self
|
28
|
+
def parameter_names
|
29
|
+
[
|
30
|
+
:target_name,
|
31
|
+
]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# @return [String] `target_name` parameter value.
|
36
|
+
#
|
37
|
+
# @since 1.1.6
|
38
|
+
def target_name
|
39
|
+
self[:target_name]
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
#
|
3
1
|
# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# This library is free software; you can redistribute it and/or
|
@@ -18,6 +16,6 @@
|
|
18
16
|
|
19
17
|
module Groonga
|
20
18
|
module Command
|
21
|
-
VERSION = "1.1.
|
19
|
+
VERSION = "1.1.6"
|
22
20
|
end
|
23
21
|
end
|
data/lib/groonga/command.rb
CHANGED
@@ -31,6 +31,7 @@ require "groonga/command/config-set"
|
|
31
31
|
require "groonga/command/delete"
|
32
32
|
require "groonga/command/dump"
|
33
33
|
require "groonga/command/get"
|
34
|
+
require "groonga/command/inspect"
|
34
35
|
require "groonga/command/io-flush"
|
35
36
|
require "groonga/command/load"
|
36
37
|
require "groonga/command/logical-count"
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
class InspectCommandTest < Test::Unit::TestCase
|
18
|
+
private
|
19
|
+
def inspect_command(pair_arguments={}, ordered_arguments=[])
|
20
|
+
Groonga::Command::Inspect.new("inspect",
|
21
|
+
pair_arguments,
|
22
|
+
ordered_arguments)
|
23
|
+
end
|
24
|
+
|
25
|
+
class ConstructorTest < self
|
26
|
+
def test_ordered_arguments
|
27
|
+
target_name = "Users"
|
28
|
+
|
29
|
+
command = inspect_command({},
|
30
|
+
[
|
31
|
+
target_name,
|
32
|
+
])
|
33
|
+
assert_equal({
|
34
|
+
:target_name => target_name,
|
35
|
+
},
|
36
|
+
command.arguments)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
class TargetNameTest < self
|
41
|
+
def test_reader
|
42
|
+
command = inspect_command(:target_name => "Users")
|
43
|
+
assert_equal("Users", command.target_name)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
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.6
|
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-
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- lib/groonga/command/format/command.rb
|
153
153
|
- lib/groonga/command/format/uri.rb
|
154
154
|
- lib/groonga/command/get.rb
|
155
|
+
- lib/groonga/command/inspect.rb
|
155
156
|
- lib/groonga/command/io-flush.rb
|
156
157
|
- lib/groonga/command/load.rb
|
157
158
|
- lib/groonga/command/log-level.rb
|
@@ -196,6 +197,7 @@ files:
|
|
196
197
|
- test/command/test-delete.rb
|
197
198
|
- test/command/test-dump.rb
|
198
199
|
- test/command/test-get.rb
|
200
|
+
- test/command/test-inspect.rb
|
199
201
|
- test/command/test-io-flush.rb
|
200
202
|
- test/command/test-load.rb
|
201
203
|
- test/command/test-log-level.rb
|
@@ -254,49 +256,49 @@ specification_version: 4
|
|
254
256
|
summary: Groonga-command is a library that represents [Groonga](http://groonga.org/)'s
|
255
257
|
command. You can write a program that handle Groonga's command by using groonga-command.
|
256
258
|
test_files:
|
257
|
-
- test/
|
258
|
-
- test/command/test-
|
259
|
-
- test/command/test-
|
260
|
-
- test/command/test-reindex.rb
|
261
|
-
- test/command/test-plugin-unregister.rb
|
259
|
+
- test/command/test-column-remove.rb
|
260
|
+
- test/command/test-range-filter.rb
|
261
|
+
- test/command/test-column-copy.rb
|
262
262
|
- test/command/test-io-flush.rb
|
263
|
-
- test/command/test-
|
264
|
-
- test/command/test-
|
265
|
-
- test/command/test-table-
|
263
|
+
- test/command/test-log-put.rb
|
264
|
+
- test/command/test-plugin-unregister.rb
|
265
|
+
- test/command/test-table-remove.rb
|
266
266
|
- test/command/test-column-rename.rb
|
267
|
+
- test/command/test-column-create.rb
|
268
|
+
- test/command/test-select.rb
|
269
|
+
- test/command/test-logical-select.rb
|
270
|
+
- test/command/test-table-tokenize.rb
|
271
|
+
- test/command/test-logical-shard-list.rb
|
272
|
+
- test/command/test-object-exist.rb
|
273
|
+
- test/command/test-suggest.rb
|
274
|
+
- test/command/test-request-cancel.rb
|
275
|
+
- test/command/test-log-level.rb
|
276
|
+
- test/command/test-inspect.rb
|
277
|
+
- test/command/test-table-list.rb
|
278
|
+
- test/command/test-column-list.rb
|
279
|
+
- test/command/test-load.rb
|
267
280
|
- test/command/test-dump.rb
|
268
|
-
- test/command/test-
|
269
|
-
- test/command/test-config-get.rb
|
270
|
-
- test/command/test-register.rb
|
281
|
+
- test/command/test-truncate.rb
|
271
282
|
- test/command/test-delete.rb
|
272
|
-
- test/command/test-
|
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
|
283
|
+
- test/command/test-ruby-load.rb
|
277
284
|
- test/command/test-plugin-register.rb
|
278
|
-
- test/command/test-
|
279
|
-
- test/command/test-
|
280
|
-
- test/command/test-config-
|
285
|
+
- test/command/test-base.rb
|
286
|
+
- test/command/test-table-rename.rb
|
287
|
+
- test/command/test-config-get.rb
|
288
|
+
- test/command/test-logical-count.rb
|
289
|
+
- test/command/test-normalize.rb
|
290
|
+
- test/command/test-get.rb
|
281
291
|
- test/command/test-logical-range-filter.rb
|
292
|
+
- test/command/test-config-delete.rb
|
293
|
+
- test/command/test-logical-table-remove.rb
|
282
294
|
- test/command/format/test-command.rb
|
283
|
-
- test/command/test-
|
284
|
-
- test/command/test-get.rb
|
295
|
+
- test/command/test-reindex.rb
|
285
296
|
- test/command/test-thread-limit.rb
|
286
|
-
- test/command/test-
|
287
|
-
- test/command/test-
|
288
|
-
- test/command/test-log-level.rb
|
289
|
-
- test/command/test-range-filter.rb
|
290
|
-
- test/command/test-status.rb
|
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
|
297
|
+
- test/command/test-config-set.rb
|
298
|
+
- test/command/test-tokenize.rb
|
295
299
|
- test/command/test-ruby-eval.rb
|
300
|
+
- test/command/test-status.rb
|
301
|
+
- test/command/test-register.rb
|
296
302
|
- 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
|
301
303
|
- test/run-test.rb
|
302
|
-
|
304
|
+
- test/groonga-command-test-utils.rb
|