rroonga 12.0.0 → 12.0.8
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 +4 -4
- data/doc/text/news.md +18 -0
- data/ext/groonga/rb-grn-column.c +24 -2
- data/ext/groonga/rb-grn-data-column.c +193 -1
- data/ext/groonga/rb-grn-expression-builder.c +16 -14
- data/ext/groonga/rb-grn-index-column.c +1 -24
- data/ext/groonga/rb-grn-inverted-index-cursor.c +12 -1
- data/ext/groonga/rb-grn-object.c +25 -1
- data/ext/groonga/rb-grn-patricia-trie.c +61 -5
- data/ext/groonga/rb-grn-request-timer-id.c +9 -1
- data/ext/groonga/rb-grn-table-key-support.c +7 -3
- data/ext/groonga/rb-grn-table.c +96 -26
- data/ext/groonga/rb-grn-variable-size-column.c +35 -28
- data/ext/groonga/rb-grn.h +1 -1
- data/lib/groonga/schema.rb +34 -3
- data/rroonga-build.rb +4 -4
- data/test/test-column.rb +37 -3
- data/test/test-data-column.rb +195 -1
- data/test/test-patricia-trie.rb +22 -3
- data/test/test-remote.rb +2 -1
- metadata +66 -66
data/test/test-patricia-trie.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2009-2022 Sutou Kouhei <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# This library is free software; you can redistribute it and/or
|
6
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -156,6 +154,27 @@ class PatriciaTrieTest < Test::Unit::TestCase
|
|
156
154
|
words.scan('muTEki リンクの冒険 ミリバール アルパカ ガッ'))
|
157
155
|
end
|
158
156
|
|
157
|
+
def test_scan_no_database
|
158
|
+
Groonga::Context.open(encoding: "utf-8") do |context|
|
159
|
+
Groonga::PatriciaTrie.create(context: context,
|
160
|
+
key_size: 4096,
|
161
|
+
key_variable_size: true) do |words|
|
162
|
+
words.add("リンク")
|
163
|
+
arupaka = words.add("アルパカ")
|
164
|
+
words.add("アルパカ(生物)")
|
165
|
+
adventure_of_link = words.add('リンクの冒険')
|
166
|
+
words.add('冒険')
|
167
|
+
words.add('ガッ')
|
168
|
+
words.add('MUTEKI')
|
169
|
+
assert_equal([
|
170
|
+
[adventure_of_link, "リンクの冒険", 7, 18],
|
171
|
+
[arupaka, "アルパカ", 42, 12],
|
172
|
+
],
|
173
|
+
words.scan('muTEki リンクの冒険 ミリバール アルパカ ガッ'))
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
159
178
|
def test_tag_keys
|
160
179
|
Groonga::Context.default_options = {:encoding => "utf-8"}
|
161
180
|
words = Groonga::PatriciaTrie.create(:key_type => "ShortText",
|
data/test/test-remote.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009-
|
1
|
+
# Copyright (C) 2009-2022 Sutou Kouhei <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -100,6 +100,7 @@ class RemoteTest < Test::Unit::TestCase
|
|
100
100
|
"command_version",
|
101
101
|
"default_command_version",
|
102
102
|
"max_command_version",
|
103
|
+
"memory_map_size",
|
103
104
|
"n_jobs",
|
104
105
|
"n_queries",
|
105
106
|
"start_time",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rroonga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.0.
|
4
|
+
version: 12.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
- daijiro
|
10
10
|
- Yuto HAYAMIZU
|
11
11
|
- SHIDARA Yoji
|
12
|
-
autorequire:
|
12
|
+
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2022-
|
15
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: groonga-client
|
@@ -166,10 +166,10 @@ email:
|
|
166
166
|
- y.hayamizu@gmail.com
|
167
167
|
- dara@shidara.net
|
168
168
|
executables:
|
169
|
+
- grndump
|
169
170
|
- grntest-log-analyze
|
170
|
-
- groonga-index-dump
|
171
171
|
- groonga-database-inspect
|
172
|
-
-
|
172
|
+
- groonga-index-dump
|
173
173
|
extensions:
|
174
174
|
- ext/groonga/extconf.rb
|
175
175
|
extra_rdoc_files:
|
@@ -370,8 +370,8 @@ homepage: http://ranguba.org/#about-rroonga
|
|
370
370
|
licenses:
|
371
371
|
- LGPL-2.1
|
372
372
|
metadata:
|
373
|
-
msys2_mingw_dependencies: groonga>=
|
374
|
-
post_install_message:
|
373
|
+
msys2_mingw_dependencies: groonga>=12.0.2
|
374
|
+
post_install_message:
|
375
375
|
rdoc_options: []
|
376
376
|
require_paths:
|
377
377
|
- lib
|
@@ -387,80 +387,80 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
387
387
|
- !ruby/object:Gem::Version
|
388
388
|
version: '0'
|
389
389
|
requirements: []
|
390
|
-
rubygems_version: 3.
|
391
|
-
signing_key:
|
390
|
+
rubygems_version: 3.3.15
|
391
|
+
signing_key:
|
392
392
|
specification_version: 4
|
393
393
|
summary: Ruby bindings for Groonga that provide full text search and column store
|
394
394
|
features.
|
395
395
|
test_files:
|
396
|
-
- test/test-
|
397
|
-
- test/test
|
398
|
-
- test/test-
|
399
|
-
- test/test-schema-dumper.rb
|
400
|
-
- test/test-double-array-trie.rb
|
401
|
-
- test/test-expression-builder.rb
|
396
|
+
- test/groonga-test-utils.rb
|
397
|
+
- test/run-test.rb
|
398
|
+
- test/test-accessor.rb
|
402
399
|
- test/test-array.rb
|
403
|
-
- test/test-
|
404
|
-
- test/test-
|
400
|
+
- test/test-column-cache.rb
|
401
|
+
- test/test-column.rb
|
402
|
+
- test/test-command-select.rb
|
403
|
+
- test/test-config.rb
|
404
|
+
- test/test-context.rb
|
405
|
+
- test/test-convert.rb
|
406
|
+
- test/test-data-column.rb
|
405
407
|
- test/test-database-dumper.rb
|
408
|
+
- test/test-database-inspector.rb
|
409
|
+
- test/test-database.rb
|
410
|
+
- test/test-default-cache.rb
|
411
|
+
- test/test-double-array-trie.rb
|
412
|
+
- test/test-encoding.rb
|
413
|
+
- test/test-error-message.rb
|
414
|
+
- test/test-exception.rb
|
415
|
+
- test/test-expression-builder.rb
|
406
416
|
- test/test-expression.rb
|
417
|
+
- test/test-fix-size-column.rb
|
418
|
+
- test/test-flushable.rb
|
419
|
+
- test/test-geo-point.rb
|
420
|
+
- test/test-gqtp.rb
|
421
|
+
- test/test-hash.rb
|
422
|
+
- test/test-id.rb
|
423
|
+
- test/test-index-column.rb
|
424
|
+
- test/test-index-cursor.rb
|
425
|
+
- test/test-lock-timeout.rb
|
407
426
|
- test/test-logger.rb
|
408
|
-
- test/
|
409
|
-
- test/test-
|
410
|
-
- test/test-
|
427
|
+
- test/test-memory-pool.rb
|
428
|
+
- test/test-name.rb
|
429
|
+
- test/test-normalizer.rb
|
411
430
|
- test/test-operator.rb
|
412
|
-
- test/test-
|
413
|
-
- test/test-table-group.rb
|
414
|
-
- test/test-column.rb
|
431
|
+
- test/test-package-label.rb
|
415
432
|
- test/test-pagination.rb
|
416
|
-
- test/test-error-message.rb
|
417
|
-
- test/test-fix-size-column.rb
|
418
|
-
- test/test-table-arrow.rb
|
419
|
-
- test/test-sub-records.rb
|
420
|
-
- test/test-table-select-normalize.rb
|
421
|
-
- test/test-config.rb
|
422
433
|
- test/test-patricia-trie.rb
|
423
|
-
- test/test-
|
424
|
-
- test/test-
|
434
|
+
- test/test-plugin.rb
|
435
|
+
- test/test-procedure.rb
|
436
|
+
- test/test-query-logger.rb
|
437
|
+
- test/test-ractor.rb
|
438
|
+
- test/test-record.rb
|
439
|
+
- test/test-remote.rb
|
440
|
+
- test/test-request-canceler.rb
|
441
|
+
- test/test-request-timer.rb
|
425
442
|
- test/test-schema-create-table.rb
|
443
|
+
- test/test-schema-dumper.rb
|
444
|
+
- test/test-schema-type.rb
|
426
445
|
- test/test-schema.rb
|
427
|
-
- test/test-
|
428
|
-
- test/test-
|
429
|
-
- test/test-
|
430
|
-
- test/test-
|
431
|
-
- test/test-
|
432
|
-
- test/test-
|
433
|
-
- test/test-
|
446
|
+
- test/test-snippet.rb
|
447
|
+
- test/test-sub-records.rb
|
448
|
+
- test/test-table-arrow.rb
|
449
|
+
- test/test-table-dumper.rb
|
450
|
+
- test/test-table-group.rb
|
451
|
+
- test/test-table-key-support.rb
|
452
|
+
- test/test-table-offset-and-limit.rb
|
453
|
+
- test/test-table-select-mecab.rb
|
454
|
+
- test/test-table-select-normalize.rb
|
434
455
|
- test/test-table-select-weight.rb
|
435
|
-
- test/test-database-inspector.rb
|
436
|
-
- test/test-encoding.rb
|
437
|
-
- test/test-hash.rb
|
438
|
-
- test/test-schema-type.rb
|
439
|
-
- test/test-type.rb
|
440
|
-
- test/test-context.rb
|
441
|
-
- test/test-flushable.rb
|
442
|
-
- test/test-normalizer.rb
|
443
456
|
- test/test-table-select.rb
|
444
|
-
- test/test-index-cursor.rb
|
445
|
-
- test/test-remote.rb
|
446
|
-
- test/test-snippet.rb
|
447
|
-
- test/test-exception.rb
|
448
|
-
- test/groonga-test-utils.rb
|
449
457
|
- test/test-table-traverse.rb
|
450
|
-
- test/test-
|
458
|
+
- test/test-table.rb
|
451
459
|
- test/test-thread.rb
|
452
|
-
- test/test-
|
453
|
-
- test/test-
|
454
|
-
- test/test-
|
455
|
-
- test/test-data-column.rb
|
456
|
-
- test/test-ractor.rb
|
457
|
-
- test/test-geo-point.rb
|
458
|
-
- test/test-request-timer.rb
|
459
|
-
- test/test-table-select-mecab.rb
|
460
|
-
- test/test-version.rb
|
461
|
-
- test/test-package-label.rb
|
460
|
+
- test/test-token-regexp.rb
|
461
|
+
- test/test-type.rb
|
462
|
+
- test/test-variable-size-column.rb
|
462
463
|
- test/test-variable.rb
|
463
|
-
- test/test-
|
464
|
-
- test/test-
|
465
|
-
- test/test-
|
466
|
-
- test/test-name.rb
|
464
|
+
- test/test-vector-column.rb
|
465
|
+
- test/test-version.rb
|
466
|
+
- test/test-windows-event-logger.rb
|