groonga-command 1.1.3 → 1.1.4

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: 8530ea72a1ac2b1b9d62edc6ee1e16b486e171e9
4
- data.tar.gz: 9f15002f42061ffda0f7c6b679c907aa3ca2b4f0
3
+ metadata.gz: bc0fdeefebce616c4aa3e6830fca1dc699fb3499
4
+ data.tar.gz: 0600a393f751e17badfcea1309dff7e2956086ea
5
5
  SHA512:
6
- metadata.gz: 72574aab5aa5e64b2b2a82adc1654cd255c2b625ebfbbe557c161a87a8e95271443e1944ffcf2ff3b26f4359956345fe1a88d6826fe108757c2fecbacadea4ff
7
- data.tar.gz: 59386ac9eef8f60d5608132d25514a9a84f77f36be572410aa0eefd37ecc85d4e08a9aa18dbfb660c30a80b886583f0eb472a75f163dc6a7176bef05652aad39
6
+ metadata.gz: f5f94decb1c5cb6233b26eabe1262b19e71d7c5843c0d2f800163327db216545ff9176775698696496fb00a6bd87bfadea0db866a6dedd52b10e74d7c5986845
7
+ data.tar.gz: 4240963279fb5a788de297eda599a1b03c9a41dabd18240a571a6c5ae9f12147fa368a27cc5395cc04b3d201df48cea1d615542be863d55795491f3903fdf831
data/doc/text/news.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # News
2
2
 
3
+ ## 1.1.4: 2016-01-13
4
+
5
+ ### Improvements
6
+
7
+ * {Groonga::Command::ConfGet}: Added.
8
+ * {Groonga::Command::ConfSet}: Added.
9
+ * {Groonga::Command::ConfDelete}: Added.
10
+
3
11
  ## 1.1.3: 2015-08-19
4
12
 
5
13
  ### Improvements
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2012-2015 Kouhei Sutou <kou@clear-code.com>
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
@@ -25,6 +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/conf-delete"
29
+ require "groonga/command/conf-get"
30
+ require "groonga/command/conf-set"
28
31
  require "groonga/command/delete"
29
32
  require "groonga/command/dump"
30
33
  require "groonga/command/get"
@@ -43,6 +46,7 @@ require "groonga/command/plugin-register"
43
46
  require "groonga/command/plugin-unregister"
44
47
  require "groonga/command/range-filter"
45
48
  require "groonga/command/register"
49
+ require "groonga/command/reindex"
46
50
  require "groonga/command/request-cancel"
47
51
  require "groonga/command/ruby-eval"
48
52
  require "groonga/command/ruby-load"
@@ -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 `conf_delete` command.
22
+ #
23
+ # @since 1.1.4
24
+ class ConfDelete < Base
25
+ Command.register("conf_delete", self)
26
+
27
+ class << self
28
+ def parameter_names
29
+ [
30
+ :key,
31
+ ]
32
+ end
33
+ end
34
+
35
+ # @return [String] `key` parameter value.
36
+ #
37
+ # @since 1.1.4
38
+ def key
39
+ self[:key]
40
+ end
41
+ end
42
+ end
43
+ end
@@ -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 `conf_get` command.
22
+ #
23
+ # @since 1.1.4
24
+ class ConfGet < Base
25
+ Command.register("conf_get", self)
26
+
27
+ class << self
28
+ def parameter_names
29
+ [
30
+ :key,
31
+ ]
32
+ end
33
+ end
34
+
35
+ # @return [String] `key` parameter value.
36
+ #
37
+ # @since 1.1.4
38
+ def key
39
+ self[:key]
40
+ end
41
+ end
42
+ end
43
+ 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 `conf_set` command.
22
+ #
23
+ # @since 1.1.4
24
+ class ConfSet < Base
25
+ Command.register("conf_set", self)
26
+
27
+ class << self
28
+ def parameter_names
29
+ [
30
+ :key,
31
+ :value,
32
+ ]
33
+ end
34
+ end
35
+
36
+ # @return [String] `key` parameter value.
37
+ #
38
+ # @since 1.1.4
39
+ def key
40
+ self[:key]
41
+ end
42
+
43
+ # @return [String] `value` parameter value.
44
+ #
45
+ # @since 1.1.4
46
+ def value
47
+ self[:value]
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,43 @@
1
+ # Copyright (C) 2015 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 `reindex` command.
22
+ #
23
+ # @since 1.1.4
24
+ class Reindex < Base
25
+ Command.register("reindex", 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.4
38
+ def target_name
39
+ self[:target_name]
40
+ end
41
+ end
42
+ end
43
+ end
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2012-2015 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.3"
21
+ VERSION = "1.1.4"
22
22
  end
23
23
  end
@@ -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 ConfDeleteCommandTest < Test::Unit::TestCase
18
+ private
19
+ def conf_delete_command(pair_arguments={}, ordered_arguments=[])
20
+ Groonga::Command::ConfDelete.new("conf_delete",
21
+ pair_arguments,
22
+ ordered_arguments)
23
+ end
24
+
25
+ class ConstructorTest < self
26
+ def test_ordered_arguments
27
+ key = "alias.table"
28
+
29
+ command = conf_delete_command({},
30
+ [
31
+ key,
32
+ ])
33
+ assert_equal({
34
+ :key => key,
35
+ },
36
+ command.arguments)
37
+ end
38
+ end
39
+
40
+ class KeyTest < self
41
+ def test_reader
42
+ command = conf_delete_command(:key => "alias.table")
43
+ assert_equal("alias.table", command.key)
44
+ end
45
+ end
46
+ end
@@ -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 ConfGetCommandTest < Test::Unit::TestCase
18
+ private
19
+ def conf_get_command(pair_arguments={}, ordered_arguments=[])
20
+ Groonga::Command::ConfGet.new("conf_get",
21
+ pair_arguments,
22
+ ordered_arguments)
23
+ end
24
+
25
+ class ConstructorTest < self
26
+ def test_ordered_arguments
27
+ key = "alias.table"
28
+
29
+ command = conf_get_command({},
30
+ [
31
+ key,
32
+ ])
33
+ assert_equal({
34
+ :key => key,
35
+ },
36
+ command.arguments)
37
+ end
38
+ end
39
+
40
+ class KeyTest < self
41
+ def test_reader
42
+ command = conf_get_command(:key => "alias.table")
43
+ assert_equal("alias.table", command.key)
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,57 @@
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 ConfSetCommandTest < Test::Unit::TestCase
18
+ private
19
+ def conf_set_command(pair_arguments={}, ordered_arguments=[])
20
+ Groonga::Command::ConfSet.new("conf_set",
21
+ pair_arguments,
22
+ ordered_arguments)
23
+ end
24
+
25
+ class ConstructorTest < self
26
+ def test_ordered_arguments
27
+ key = "alias.table"
28
+ value = "Aliases"
29
+
30
+ command = conf_set_command({},
31
+ [
32
+ key,
33
+ value,
34
+ ])
35
+ assert_equal({
36
+ :key => key,
37
+ :value => value,
38
+ },
39
+ command.arguments)
40
+ end
41
+ end
42
+
43
+ class KeyTest < self
44
+ def test_reader
45
+ command = conf_set_command(:key => "alias.table")
46
+ assert_equal("alias.table", command.key)
47
+ end
48
+ end
49
+
50
+ class ValueTest < self
51
+ def test_reader
52
+ command = conf_set_command(:key => "alias.table",
53
+ :value => "Aliases")
54
+ assert_equal("Aliases", command.value)
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,43 @@
1
+ # Copyright (C) 2015 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 ReindexCommandTest < Test::Unit::TestCase
18
+ private
19
+ def reindex_command(pair_arguments={}, ordered_arguments=[])
20
+ Groonga::Command::Reindex.new("reindex",
21
+ pair_arguments,
22
+ ordered_arguments)
23
+ end
24
+
25
+ class ConstructorTest < self
26
+ def test_ordered_arguments
27
+ target_name = "Lexicon.index"
28
+
29
+ command = reindex_command({}, [target_name])
30
+ assert_equal({
31
+ :target_name => target_name,
32
+ },
33
+ command.arguments)
34
+ end
35
+ end
36
+
37
+ class TargetNameTest < self
38
+ def test_reader
39
+ command = reindex_command(:target_name => "Lexicon.index")
40
+ assert_equal("Lexicon.index", command.target_name)
41
+ end
42
+ end
43
+ 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.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-19 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -143,6 +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/conf-delete.rb
147
+ - lib/groonga/command/conf-get.rb
148
+ - lib/groonga/command/conf-set.rb
146
149
  - lib/groonga/command/delete.rb
147
150
  - lib/groonga/command/dump.rb
148
151
  - lib/groonga/command/error.rb
@@ -164,6 +167,7 @@ files:
164
167
  - lib/groonga/command/plugin-unregister.rb
165
168
  - lib/groonga/command/range-filter.rb
166
169
  - lib/groonga/command/register.rb
170
+ - lib/groonga/command/reindex.rb
167
171
  - lib/groonga/command/request-cancel.rb
168
172
  - lib/groonga/command/ruby-eval.rb
169
173
  - lib/groonga/command/ruby-load.rb
@@ -186,6 +190,9 @@ files:
186
190
  - test/command/test-column-list.rb
187
191
  - test/command/test-column-remove.rb
188
192
  - test/command/test-column-rename.rb
193
+ - test/command/test-conf-delete.rb
194
+ - test/command/test-conf-get.rb
195
+ - test/command/test-conf-set.rb
189
196
  - test/command/test-delete.rb
190
197
  - test/command/test-dump.rb
191
198
  - test/command/test-get.rb
@@ -204,6 +211,7 @@ files:
204
211
  - test/command/test-plugin-unregister.rb
205
212
  - test/command/test-range-filter.rb
206
213
  - test/command/test-register.rb
214
+ - test/command/test-reindex.rb
207
215
  - test/command/test-request-cancel.rb
208
216
  - test/command/test-ruby-eval.rb
209
217
  - test/command/test-ruby-load.rb
@@ -240,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
248
  version: '0'
241
249
  requirements: []
242
250
  rubyforge_project:
243
- rubygems_version: 2.2.2
251
+ rubygems_version: 2.4.5.1
244
252
  signing_key:
245
253
  specification_version: 4
246
254
  summary: Groonga-command is a library that represents [Groonga](http://groonga.org/)'s
@@ -261,6 +269,7 @@ test_files:
261
269
  - test/command/test-logical-shard-list.rb
262
270
  - test/command/test-object-exist.rb
263
271
  - test/command/test-suggest.rb
272
+ - test/command/test-conf-set.rb
264
273
  - test/command/test-request-cancel.rb
265
274
  - test/command/test-log-level.rb
266
275
  - test/command/test-table-list.rb
@@ -271,6 +280,7 @@ test_files:
271
280
  - test/command/test-delete.rb
272
281
  - test/command/test-ruby-load.rb
273
282
  - test/command/test-plugin-register.rb
283
+ - test/command/test-conf-delete.rb
274
284
  - test/command/test-base.rb
275
285
  - test/command/test-table-rename.rb
276
286
  - test/command/test-logical-count.rb
@@ -279,7 +289,9 @@ test_files:
279
289
  - test/command/test-logical-range-filter.rb
280
290
  - test/command/test-logical-table-remove.rb
281
291
  - test/command/format/test-command.rb
292
+ - test/command/test-reindex.rb
282
293
  - test/command/test-thread-limit.rb
294
+ - test/command/test-conf-get.rb
283
295
  - test/command/test-tokenize.rb
284
296
  - test/command/test-ruby-eval.rb
285
297
  - test/command/test-status.rb
@@ -287,4 +299,3 @@ test_files:
287
299
  - test/command/test-table-create.rb
288
300
  - test/run-test.rb
289
301
  - test/groonga-command-test-utils.rb
290
- has_rdoc: