groonga-command 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9210ac2c465dbd2ccedb83074b947005926314b
4
- data.tar.gz: 3c7c16ede2d2b9869b15d904700197aed9d50d00
3
+ metadata.gz: 14ad301da5a00c4717492c28e9ac0ca55e35072e
4
+ data.tar.gz: 52f11a9b2aad40ae6ad12c2458788acaf2aa1310
5
5
  SHA512:
6
- metadata.gz: ba67ef95064388d6f5495f73b7d1a78f32d4fde3e668d95e7d4ae0d84319a104c0fc4d14691c914288d3eaadca38b8bd7aa7c2850a4388bbc07b49793d0938aa
7
- data.tar.gz: a66734f111d54996af571f0b5408b4602ae4ca9a4da191d451553ed1465d08df4bf630df9c08c5ff455bf3e1bd165690638df1d0d07f58bdd39a5afb2c076fbc
6
+ metadata.gz: f90f2162bb13eb5088246bf0859f439813c91fd92892d7de26c7c2fb83deb28b535c811869d7882dca08d9c38975936e1ca2bdc215f21e573ae2662634517e2c
7
+ data.tar.gz: abb484c5a5bc9851a92e60babbf247250b7574d92f380c1b384ef52265633960e9d63e0b870b73ba59e4962bc26787e0e26464f730c1107478dc574404564306
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 1.1.7: 2016-03-07
4
+
5
+ ### Improvements
6
+
7
+ * Renamed to {Groonga::Command::ObjectInspect} from {Groonga::Command::Inspect}.
8
+ * {Groonga::Command::ObjectRemove}: Added.
9
+
3
10
  ## 1.1.6: 2016-02-03
4
11
 
5
12
  ### Improvements
@@ -31,7 +31,6 @@ 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"
35
34
  require "groonga/command/io-flush"
36
35
  require "groonga/command/load"
37
36
  require "groonga/command/logical-count"
@@ -43,6 +42,8 @@ require "groonga/command/log-level"
43
42
  require "groonga/command/log-put"
44
43
  require "groonga/command/normalize"
45
44
  require "groonga/command/object-exist"
45
+ require "groonga/command/object-inspect"
46
+ require "groonga/command/object-remove"
46
47
  require "groonga/command/plugin-register"
47
48
  require "groonga/command/plugin-unregister"
48
49
  require "groonga/command/range-filter"
@@ -18,25 +18,25 @@ require "groonga/command/base"
18
18
 
19
19
  module Groonga
20
20
  module Command
21
- # A command class that represents `inspect` command.
21
+ # A command class that represents `object_inspect` command.
22
22
  #
23
- # @since 1.1.6
24
- class Inspect < Base
25
- Command.register("inspect", self)
23
+ # @since 1.1.7
24
+ class ObjectInspect < Base
25
+ Command.register("object_inspect", self)
26
26
 
27
27
  class << self
28
28
  def parameter_names
29
29
  [
30
- :target_name,
30
+ :name,
31
31
  ]
32
32
  end
33
33
  end
34
34
 
35
- # @return [String] `target_name` parameter value.
35
+ # @return [String] `name` parameter value.
36
36
  #
37
- # @since 1.1.6
38
- def target_name
39
- self[:target_name]
37
+ # @since 1.1.7
38
+ def name
39
+ self[:name]
40
40
  end
41
41
  end
42
42
  end
@@ -0,0 +1,51 @@
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 `object_remove` command.
22
+ #
23
+ # @since 1.1.7
24
+ class ObjectRemove < Base
25
+ Command.register("object_remove", self)
26
+
27
+ class << self
28
+ def parameter_names
29
+ [
30
+ :name,
31
+ :force,
32
+ ]
33
+ end
34
+ end
35
+
36
+ # @return [String] `name` parameter value.
37
+ #
38
+ # @since 1.1.7
39
+ def name
40
+ self[:name]
41
+ end
42
+
43
+ # @return [Boolean] `force` parameter value.
44
+ #
45
+ # @since 1.1.7
46
+ def force?
47
+ self[:force] == "yes"
48
+ end
49
+ end
50
+ end
51
+ end
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Groonga
18
18
  module Command
19
- VERSION = "1.1.6"
19
+ VERSION = "1.1.7"
20
20
  end
21
21
  end
@@ -14,33 +14,33 @@
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 InspectCommandTest < Test::Unit::TestCase
17
+ class ObjectInspectCommandTest < Test::Unit::TestCase
18
18
  private
19
- def inspect_command(pair_arguments={}, ordered_arguments=[])
20
- Groonga::Command::Inspect.new("inspect",
21
- pair_arguments,
22
- ordered_arguments)
19
+ def object_inspect_command(pair_arguments={}, ordered_arguments=[])
20
+ Groonga::Command::ObjectInspect.new("object_inspect",
21
+ pair_arguments,
22
+ ordered_arguments)
23
23
  end
24
24
 
25
25
  class ConstructorTest < self
26
26
  def test_ordered_arguments
27
- target_name = "Users"
27
+ name = "Users"
28
28
 
29
- command = inspect_command({},
29
+ command = object_inspect_command({},
30
30
  [
31
- target_name,
31
+ name,
32
32
  ])
33
33
  assert_equal({
34
- :target_name => target_name,
34
+ :name => name,
35
35
  },
36
36
  command.arguments)
37
37
  end
38
38
  end
39
39
 
40
- class TargetNameTest < self
40
+ class NameTest < self
41
41
  def test_reader
42
- command = inspect_command(:target_name => "Users")
43
- assert_equal("Users", command.target_name)
42
+ command = object_inspect_command(:name => "Users")
43
+ assert_equal("Users", command.name)
44
44
  end
45
45
  end
46
46
  end
@@ -0,0 +1,52 @@
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 ObjectRemoveCommandTest < Test::Unit::TestCase
18
+ private
19
+ def object_remove_command(pair_arguments={}, ordered_arguments=[])
20
+ Groonga::Command::ObjectRemove.new("object_remove",
21
+ pair_arguments,
22
+ ordered_arguments)
23
+ end
24
+
25
+ class ConstructorTest < self
26
+ def test_ordered_arguments
27
+ name = "Users"
28
+ force = "yes"
29
+
30
+ command = object_remove_command({}, [name, force])
31
+ assert_equal({
32
+ :name => name,
33
+ :force => force,
34
+ },
35
+ command.arguments)
36
+ end
37
+ end
38
+
39
+ class NameTest < self
40
+ def test_reader
41
+ command = object_remove_command(:name => "Users")
42
+ assert_equal("Users", command.name)
43
+ end
44
+ end
45
+
46
+ class ForceTest < self
47
+ def test_reader
48
+ command = object_remove_command(:force => "yes")
49
+ assert_true(command.force?)
50
+ end
51
+ end
52
+ 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.6
4
+ version: 1.1.7
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-02-03 00:00:00.000000000 Z
11
+ date: 2016-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -152,7 +152,6 @@ 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
156
155
  - lib/groonga/command/io-flush.rb
157
156
  - lib/groonga/command/load.rb
158
157
  - lib/groonga/command/log-level.rb
@@ -164,6 +163,8 @@ files:
164
163
  - lib/groonga/command/logical-table-remove.rb
165
164
  - lib/groonga/command/normalize.rb
166
165
  - lib/groonga/command/object-exist.rb
166
+ - lib/groonga/command/object-inspect.rb
167
+ - lib/groonga/command/object-remove.rb
167
168
  - lib/groonga/command/plugin-register.rb
168
169
  - lib/groonga/command/plugin-unregister.rb
169
170
  - lib/groonga/command/range-filter.rb
@@ -197,7 +198,6 @@ files:
197
198
  - test/command/test-delete.rb
198
199
  - test/command/test-dump.rb
199
200
  - test/command/test-get.rb
200
- - test/command/test-inspect.rb
201
201
  - test/command/test-io-flush.rb
202
202
  - test/command/test-load.rb
203
203
  - test/command/test-log-level.rb
@@ -209,6 +209,8 @@ files:
209
209
  - test/command/test-logical-table-remove.rb
210
210
  - test/command/test-normalize.rb
211
211
  - test/command/test-object-exist.rb
212
+ - test/command/test-object-inspect.rb
213
+ - test/command/test-object-remove.rb
212
214
  - test/command/test-plugin-register.rb
213
215
  - test/command/test-plugin-unregister.rb
214
216
  - test/command/test-range-filter.rb
@@ -250,55 +252,57 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
252
  version: '0'
251
253
  requirements: []
252
254
  rubyforge_project:
253
- rubygems_version: 2.4.5.1
255
+ rubygems_version: 2.5.1
254
256
  signing_key:
255
257
  specification_version: 4
256
258
  summary: Groonga-command is a library that represents [Groonga](http://groonga.org/)'s
257
259
  command. You can write a program that handle Groonga's command by using groonga-command.
258
260
  test_files:
259
- - test/command/test-column-remove.rb
260
- - test/command/test-range-filter.rb
261
- - test/command/test-column-copy.rb
262
- - test/command/test-io-flush.rb
263
- - test/command/test-log-put.rb
264
- - test/command/test-plugin-unregister.rb
265
- - test/command/test-table-remove.rb
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
261
+ - test/run-test.rb
272
262
  - test/command/test-object-exist.rb
263
+ - test/command/test-register.rb
273
264
  - test/command/test-suggest.rb
274
- - test/command/test-request-cancel.rb
275
265
  - test/command/test-log-level.rb
276
- - test/command/test-inspect.rb
266
+ - test/command/test-ruby-load.rb
267
+ - test/command/test-object-inspect.rb
268
+ - test/command/test-tokenize.rb
277
269
  - test/command/test-table-list.rb
278
- - test/command/test-column-list.rb
279
- - test/command/test-load.rb
270
+ - test/command/test-column-copy.rb
271
+ - test/command/test-io-flush.rb
280
272
  - test/command/test-dump.rb
281
- - test/command/test-truncate.rb
282
- - test/command/test-delete.rb
283
- - test/command/test-ruby-load.rb
284
- - test/command/test-plugin-register.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
273
+ - test/command/test-table-tokenize.rb
274
+ - test/command/test-object-remove.rb
275
+ - test/command/test-thread-limit.rb
291
276
  - test/command/test-logical-range-filter.rb
277
+ - test/command/test-load.rb
292
278
  - test/command/test-config-delete.rb
293
- - test/command/test-logical-table-remove.rb
279
+ - test/command/test-column-list.rb
280
+ - test/command/test-plugin-unregister.rb
294
281
  - test/command/format/test-command.rb
282
+ - test/command/test-plugin-register.rb
295
283
  - test/command/test-reindex.rb
296
- - test/command/test-thread-limit.rb
297
- - test/command/test-config-set.rb
298
- - test/command/test-tokenize.rb
299
- - test/command/test-ruby-eval.rb
300
284
  - test/command/test-status.rb
301
- - test/command/test-register.rb
285
+ - test/command/test-config-get.rb
286
+ - test/command/test-select.rb
287
+ - test/command/test-column-remove.rb
288
+ - test/command/test-table-rename.rb
289
+ - test/command/test-ruby-eval.rb
290
+ - test/command/test-range-filter.rb
291
+ - test/command/test-column-rename.rb
292
+ - test/command/test-request-cancel.rb
293
+ - test/command/test-log-put.rb
294
+ - test/command/test-get.rb
302
295
  - test/command/test-table-create.rb
303
- - test/run-test.rb
296
+ - test/command/test-logical-select.rb
297
+ - test/command/test-config-set.rb
298
+ - test/command/test-base.rb
299
+ - test/command/test-normalize.rb
300
+ - test/command/test-logical-count.rb
301
+ - test/command/test-logical-shard-list.rb
302
+ - test/command/test-column-create.rb
303
+ - test/command/test-delete.rb
304
+ - test/command/test-truncate.rb
305
+ - test/command/test-table-remove.rb
306
+ - test/command/test-logical-table-remove.rb
304
307
  - test/groonga-command-test-utils.rb
308
+ has_rdoc: