groonga-command 1.1.2 → 1.1.3

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.
@@ -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 TableListCommandTest < Test::Unit::TestCase
18
+ private
19
+ def table_list_command(pair_arguments={}, ordered_arguments=[])
20
+ Groonga::Command::TableList.new("table_list",
21
+ pair_arguments,
22
+ ordered_arguments)
23
+ end
24
+
25
+ class ConstructorTest < self
26
+ def test_ordered_arguments
27
+ prefix = "Logs_2015"
28
+
29
+ command = table_list_command({}, [prefix])
30
+ assert_equal({
31
+ :prefix => prefix,
32
+ },
33
+ command.arguments)
34
+ end
35
+ end
36
+
37
+ class PrefixTest < self
38
+ def test_reader
39
+ command = table_list_command(:prefix => "Logs_2015")
40
+ assert_equal("Logs_2015", command.prefix)
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
+ class ThreadLimitCommandTest < Test::Unit::TestCase
18
+ private
19
+ def thread_limit_command(pair_arguments={}, ordered_arguments=[])
20
+ Groonga::Command::ThreadLimit.new("thread_limit",
21
+ pair_arguments,
22
+ ordered_arguments)
23
+ end
24
+
25
+ class ConstructorTest < self
26
+ def test_ordered_arguments
27
+ max = "1"
28
+
29
+ command = thread_limit_command({}, [max])
30
+ assert_equal({
31
+ :max => max,
32
+ },
33
+ command.arguments)
34
+ end
35
+ end
36
+
37
+ class MaxTest < self
38
+ def test_reader
39
+ command = thread_limit_command(:max => "1")
40
+ assert_equal(1, command.max)
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.2
4
+ version: 1.1.3
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-04-02 00:00:00.000000000 Z
11
+ date: 2015-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -138,6 +138,7 @@ files:
138
138
  - groonga-command.gemspec
139
139
  - lib/groonga/command.rb
140
140
  - lib/groonga/command/base.rb
141
+ - lib/groonga/command/column-copy.rb
141
142
  - lib/groonga/command/column-create.rb
142
143
  - lib/groonga/command/column-list.rb
143
144
  - lib/groonga/command/column-remove.rb
@@ -148,10 +149,17 @@ files:
148
149
  - lib/groonga/command/format/command.rb
149
150
  - lib/groonga/command/format/uri.rb
150
151
  - lib/groonga/command/get.rb
152
+ - lib/groonga/command/io-flush.rb
151
153
  - lib/groonga/command/load.rb
154
+ - lib/groonga/command/log-level.rb
155
+ - lib/groonga/command/log-put.rb
152
156
  - lib/groonga/command/logical-count.rb
153
157
  - lib/groonga/command/logical-range-filter.rb
158
+ - lib/groonga/command/logical-select.rb
159
+ - lib/groonga/command/logical-shard-list.rb
160
+ - lib/groonga/command/logical-table-remove.rb
154
161
  - lib/groonga/command/normalize.rb
162
+ - lib/groonga/command/object-exist.rb
155
163
  - lib/groonga/command/plugin-register.rb
156
164
  - lib/groonga/command/plugin-unregister.rb
157
165
  - lib/groonga/command/range-filter.rb
@@ -163,14 +171,17 @@ files:
163
171
  - lib/groonga/command/status.rb
164
172
  - lib/groonga/command/suggest.rb
165
173
  - lib/groonga/command/table-create.rb
174
+ - lib/groonga/command/table-list.rb
166
175
  - lib/groonga/command/table-remove.rb
167
176
  - lib/groonga/command/table-rename.rb
168
177
  - lib/groonga/command/table-tokenize.rb
178
+ - lib/groonga/command/thread-limit.rb
169
179
  - lib/groonga/command/tokenize.rb
170
180
  - lib/groonga/command/truncate.rb
171
181
  - lib/groonga/command/version.rb
172
182
  - test/command/format/test-command.rb
173
183
  - test/command/test-base.rb
184
+ - test/command/test-column-copy.rb
174
185
  - test/command/test-column-create.rb
175
186
  - test/command/test-column-list.rb
176
187
  - test/command/test-column-remove.rb
@@ -178,10 +189,17 @@ files:
178
189
  - test/command/test-delete.rb
179
190
  - test/command/test-dump.rb
180
191
  - test/command/test-get.rb
192
+ - test/command/test-io-flush.rb
181
193
  - test/command/test-load.rb
194
+ - test/command/test-log-level.rb
195
+ - test/command/test-log-put.rb
182
196
  - test/command/test-logical-count.rb
183
197
  - test/command/test-logical-range-filter.rb
198
+ - test/command/test-logical-select.rb
199
+ - test/command/test-logical-shard-list.rb
200
+ - test/command/test-logical-table-remove.rb
184
201
  - test/command/test-normalize.rb
202
+ - test/command/test-object-exist.rb
185
203
  - test/command/test-plugin-register.rb
186
204
  - test/command/test-plugin-unregister.rb
187
205
  - test/command/test-range-filter.rb
@@ -193,9 +211,11 @@ files:
193
211
  - test/command/test-status.rb
194
212
  - test/command/test-suggest.rb
195
213
  - test/command/test-table-create.rb
214
+ - test/command/test-table-list.rb
196
215
  - test/command/test-table-remove.rb
197
216
  - test/command/test-table-rename.rb
198
217
  - test/command/test-table-tokenize.rb
218
+ - test/command/test-thread-limit.rb
199
219
  - test/command/test-tokenize.rb
200
220
  - test/command/test-truncate.rb
201
221
  - test/groonga-command-test-utils.rb
@@ -226,35 +246,45 @@ specification_version: 4
226
246
  summary: Groonga-command is a library that represents [Groonga](http://groonga.org/)'s
227
247
  command. You can write a program that handle Groonga's command by using groonga-command.
228
248
  test_files:
229
- - test/run-test.rb
230
- - test/command/test-column-rename.rb
249
+ - test/command/test-column-remove.rb
250
+ - test/command/test-range-filter.rb
251
+ - test/command/test-column-copy.rb
252
+ - test/command/test-io-flush.rb
253
+ - test/command/test-log-put.rb
254
+ - test/command/test-plugin-unregister.rb
231
255
  - test/command/test-table-remove.rb
232
- - test/command/test-truncate.rb
233
- - test/command/test-normalize.rb
234
- - test/command/test-tokenize.rb
235
- - test/command/test-table-rename.rb
236
- - test/command/test-logical-range-filter.rb
237
- - test/command/test-dump.rb
256
+ - test/command/test-column-rename.rb
257
+ - test/command/test-column-create.rb
258
+ - test/command/test-select.rb
259
+ - test/command/test-logical-select.rb
260
+ - test/command/test-table-tokenize.rb
261
+ - test/command/test-logical-shard-list.rb
262
+ - test/command/test-object-exist.rb
238
263
  - test/command/test-suggest.rb
239
264
  - test/command/test-request-cancel.rb
240
- - test/command/test-get.rb
241
- - test/command/test-column-create.rb
265
+ - test/command/test-log-level.rb
266
+ - test/command/test-table-list.rb
242
267
  - test/command/test-column-list.rb
243
- - test/command/test-register.rb
244
- - test/command/test-ruby-eval.rb
245
- - test/command/test-plugin-register.rb
246
- - test/command/test-table-create.rb
247
- - test/command/test-ruby-load.rb
248
268
  - test/command/test-load.rb
269
+ - test/command/test-dump.rb
270
+ - test/command/test-truncate.rb
249
271
  - test/command/test-delete.rb
250
- - test/command/test-select.rb
251
- - test/command/test-plugin-unregister.rb
252
- - test/command/test-column-remove.rb
253
- - test/command/test-range-filter.rb
254
- - test/command/format/test-command.rb
272
+ - test/command/test-ruby-load.rb
273
+ - test/command/test-plugin-register.rb
255
274
  - test/command/test-base.rb
256
- - test/command/test-status.rb
257
- - test/command/test-table-tokenize.rb
275
+ - test/command/test-table-rename.rb
258
276
  - test/command/test-logical-count.rb
277
+ - test/command/test-normalize.rb
278
+ - test/command/test-get.rb
279
+ - test/command/test-logical-range-filter.rb
280
+ - test/command/test-logical-table-remove.rb
281
+ - test/command/format/test-command.rb
282
+ - test/command/test-thread-limit.rb
283
+ - test/command/test-tokenize.rb
284
+ - test/command/test-ruby-eval.rb
285
+ - test/command/test-status.rb
286
+ - test/command/test-register.rb
287
+ - test/command/test-table-create.rb
288
+ - test/run-test.rb
259
289
  - test/groonga-command-test-utils.rb
260
290
  has_rdoc: