groonga-command 1.1.1 → 1.1.2
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 +7 -0
- data/lib/groonga/command.rb +2 -0
- data/lib/groonga/command/plugin-register.rb +43 -0
- data/lib/groonga/command/plugin-unregister.rb +43 -0
- data/lib/groonga/command/version.rb +1 -1
- data/test/command/test-plugin-register.rb +46 -0
- data/test/command/test-plugin-unregister.rb +46 -0
- metadata +25 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61a882fcb3e5a11740b06ae6ddf5ec20aaa3e564
|
4
|
+
data.tar.gz: 9e5633bd86458d4125102ac33010555e6d908c03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe007aa092b4ae4661f21587681010ef40c3d5472006801bffa304fd3846d68217e2b5c33748b99ebc56146cd0ff621e31c0b31ebcc63d31f727721d87c837a4
|
7
|
+
data.tar.gz: 86e9882f03a9e01393728ff76071e7f8efffa0f11a7f89be83eeeadd48474422025ca53dd632ce0a0315c81b37dc6107a1ea5d51fa62c1fce3e19edb6db10332
|
data/doc/text/news.md
CHANGED
data/lib/groonga/command.rb
CHANGED
@@ -31,6 +31,8 @@ require "groonga/command/load"
|
|
31
31
|
require "groonga/command/logical-count"
|
32
32
|
require "groonga/command/logical-range-filter"
|
33
33
|
require "groonga/command/normalize"
|
34
|
+
require "groonga/command/plugin-register"
|
35
|
+
require "groonga/command/plugin-unregister"
|
34
36
|
require "groonga/command/range-filter"
|
35
37
|
require "groonga/command/register"
|
36
38
|
require "groonga/command/request-cancel"
|
@@ -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 `plugin_register` command.
|
22
|
+
#
|
23
|
+
# @since 1.1.2
|
24
|
+
class PluginRegister < Base
|
25
|
+
Command.register("plugin_register", self)
|
26
|
+
|
27
|
+
class << self
|
28
|
+
def parameter_names
|
29
|
+
[
|
30
|
+
:name,
|
31
|
+
]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# @return [String] `name` parameter value.
|
36
|
+
#
|
37
|
+
# @since 1.1.2
|
38
|
+
def name
|
39
|
+
self[:name]
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
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 `plugin_unregister` command.
|
22
|
+
#
|
23
|
+
# @since 1.1.2
|
24
|
+
class PluginUnregister < Base
|
25
|
+
Command.register("plugin_unregister", self)
|
26
|
+
|
27
|
+
class << self
|
28
|
+
def parameter_names
|
29
|
+
[
|
30
|
+
:name,
|
31
|
+
]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# @return [String] `name` parameter value.
|
36
|
+
#
|
37
|
+
# @since 1.1.2
|
38
|
+
def name
|
39
|
+
self[:name]
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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 PluginRegisterCommandTest < Test::Unit::TestCase
|
18
|
+
private
|
19
|
+
def plugin_register_command(pair_arguments={}, ordered_arguments=[])
|
20
|
+
Groonga::Command::PluginRegister.new("plugin_register",
|
21
|
+
pair_arguments,
|
22
|
+
ordered_arguments)
|
23
|
+
end
|
24
|
+
|
25
|
+
class ConstructorTest < self
|
26
|
+
def test_ordered_arguments
|
27
|
+
name = "query_expanders/tsv"
|
28
|
+
|
29
|
+
ordered_arguments = [
|
30
|
+
name,
|
31
|
+
]
|
32
|
+
command = plugin_register_command({}, ordered_arguments)
|
33
|
+
assert_equal({
|
34
|
+
:name => name,
|
35
|
+
},
|
36
|
+
command.arguments)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
class NameTest < self
|
41
|
+
def test_reader
|
42
|
+
command = plugin_register_command(:name => "query_expanders/tsv")
|
43
|
+
assert_equal("query_expanders/tsv", command.name)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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 PluginUnregisterCommandTest < Test::Unit::TestCase
|
18
|
+
private
|
19
|
+
def plugin_unregister_command(pair_arguments={}, ordered_arguments=[])
|
20
|
+
Groonga::Command::PluginUnregister.new("plugin_unregister",
|
21
|
+
pair_arguments,
|
22
|
+
ordered_arguments)
|
23
|
+
end
|
24
|
+
|
25
|
+
class ConstructorTest < self
|
26
|
+
def test_ordered_arguments
|
27
|
+
name = "query_expanders/tsv"
|
28
|
+
|
29
|
+
ordered_arguments = [
|
30
|
+
name,
|
31
|
+
]
|
32
|
+
command = plugin_unregister_command({}, ordered_arguments)
|
33
|
+
assert_equal({
|
34
|
+
:name => name,
|
35
|
+
},
|
36
|
+
command.arguments)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
class NameTest < self
|
41
|
+
def test_reader
|
42
|
+
command = plugin_unregister_command(:name => "query_expanders/tsv")
|
43
|
+
assert_equal("query_expanders/tsv", command.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.2
|
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-02
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -152,6 +152,8 @@ files:
|
|
152
152
|
- lib/groonga/command/logical-count.rb
|
153
153
|
- lib/groonga/command/logical-range-filter.rb
|
154
154
|
- lib/groonga/command/normalize.rb
|
155
|
+
- lib/groonga/command/plugin-register.rb
|
156
|
+
- lib/groonga/command/plugin-unregister.rb
|
155
157
|
- lib/groonga/command/range-filter.rb
|
156
158
|
- lib/groonga/command/register.rb
|
157
159
|
- lib/groonga/command/request-cancel.rb
|
@@ -180,6 +182,8 @@ files:
|
|
180
182
|
- test/command/test-logical-count.rb
|
181
183
|
- test/command/test-logical-range-filter.rb
|
182
184
|
- test/command/test-normalize.rb
|
185
|
+
- test/command/test-plugin-register.rb
|
186
|
+
- test/command/test-plugin-unregister.rb
|
183
187
|
- test/command/test-range-filter.rb
|
184
188
|
- test/command/test-register.rb
|
185
189
|
- test/command/test-request-cancel.rb
|
@@ -223,32 +227,34 @@ summary: Groonga-command is a library that represents [Groonga](http://groonga.o
|
|
223
227
|
command. You can write a program that handle Groonga's command by using groonga-command.
|
224
228
|
test_files:
|
225
229
|
- test/run-test.rb
|
226
|
-
- test/command/test-
|
227
|
-
- test/command/test-
|
228
|
-
- test/command/test-
|
230
|
+
- test/command/test-column-rename.rb
|
231
|
+
- test/command/test-table-remove.rb
|
232
|
+
- test/command/test-truncate.rb
|
229
233
|
- test/command/test-normalize.rb
|
230
|
-
- test/command/test-column-remove.rb
|
231
|
-
- test/command/test-table-tokenize.rb
|
232
234
|
- test/command/test-tokenize.rb
|
235
|
+
- test/command/test-table-rename.rb
|
236
|
+
- test/command/test-logical-range-filter.rb
|
233
237
|
- test/command/test-dump.rb
|
238
|
+
- test/command/test-suggest.rb
|
234
239
|
- test/command/test-request-cancel.rb
|
235
|
-
- test/command/test-column-rename.rb
|
236
|
-
- test/command/test-table-remove.rb
|
237
240
|
- test/command/test-get.rb
|
238
|
-
- test/command/test-
|
239
|
-
- test/command/test-logical-range-filter.rb
|
241
|
+
- test/command/test-column-create.rb
|
240
242
|
- test/command/test-column-list.rb
|
241
|
-
- test/command/test-
|
242
|
-
- test/command/test-
|
243
|
+
- test/command/test-register.rb
|
244
|
+
- test/command/test-ruby-eval.rb
|
245
|
+
- test/command/test-plugin-register.rb
|
243
246
|
- test/command/test-table-create.rb
|
244
247
|
- test/command/test-ruby-load.rb
|
245
|
-
- test/command/test-
|
246
|
-
- test/command/test-
|
247
|
-
- test/command/test-status.rb
|
248
|
-
- test/command/test-logical-count.rb
|
248
|
+
- test/command/test-load.rb
|
249
|
+
- test/command/test-delete.rb
|
249
250
|
- test/command/test-select.rb
|
250
|
-
- test/command/test-
|
251
|
+
- test/command/test-plugin-unregister.rb
|
252
|
+
- test/command/test-column-remove.rb
|
253
|
+
- test/command/test-range-filter.rb
|
251
254
|
- test/command/format/test-command.rb
|
252
|
-
- test/command/test-
|
255
|
+
- test/command/test-base.rb
|
256
|
+
- test/command/test-status.rb
|
257
|
+
- test/command/test-table-tokenize.rb
|
258
|
+
- test/command/test-logical-count.rb
|
253
259
|
- test/groonga-command-test-utils.rb
|
254
260
|
has_rdoc:
|