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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 388071a469c019cc4fd9aa8887892fe0e0269ad7
4
- data.tar.gz: 4787ea39cfa7aaf9e6b5d49b777498a2b9896bd5
3
+ metadata.gz: c9210ac2c465dbd2ccedb83074b947005926314b
4
+ data.tar.gz: 3c7c16ede2d2b9869b15d904700197aed9d50d00
5
5
  SHA512:
6
- metadata.gz: 40ad7f5ed504c4236d2a94a3d2942c7ac6fbf2da8cf73cb7f699f59079ec72bd1c01d848f9546054eb6e5da9d5d368092935985e6ec75a38c7f090d4d12f09f5
7
- data.tar.gz: f0924dd5f27b02e1a5f449e9d84d767090ced987ef52c6e6a930a113805d3f273f488381b318ff05cc93646138bee5b3fde6d0b912eb7f7770a2f12cde159d0d
6
+ metadata.gz: ba67ef95064388d6f5495f73b7d1a78f32d4fde3e668d95e7d4ae0d84319a104c0fc4d14691c914288d3eaadca38b8bd7aa7c2850a4388bbc07b49793d0938aa
7
+ data.tar.gz: a66734f111d54996af571f0b5408b4602ae4ca9a4da191d451553ed1465d08df4bf630df9c08c5ff455bf3e1bd165690638df1d0d07f58bdd39a5afb2c076fbc
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.1.6: 2016-02-03
4
+
5
+ ### Improvements
6
+
7
+ * {Groonga::Command::Inspect}: Added.
8
+
3
9
  ## 1.1.5: 2016-01-19
4
10
 
5
11
  ### Improvements
@@ -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.5"
19
+ VERSION = "1.1.6"
22
20
  end
23
21
  end
@@ -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.5
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-01-19 00:00:00.000000000 Z
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/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
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-base.rb
264
- - test/command/test-logical-count.rb
265
- - test/command/test-table-rename.rb
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-normalize.rb
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-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
283
+ - test/command/test-ruby-load.rb
277
284
  - test/command/test-plugin-register.rb
278
- - test/command/test-request-cancel.rb
279
- - test/command/test-column-create.rb
280
- - test/command/test-config-set.rb
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-logical-select.rb
284
- - test/command/test-get.rb
295
+ - test/command/test-reindex.rb
285
296
  - test/command/test-thread-limit.rb
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
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
- has_rdoc:
304
+ - test/groonga-command-test-utils.rb