rroonga 4.0.4 → 4.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +73 -0
- data/Rakefile +13 -0
- data/doc/text/news.textile +26 -2
- data/ext/groonga/extconf.rb +3 -1
- data/ext/groonga/rb-grn-context.c +1 -1
- data/ext/groonga/rb-grn-double-array-trie.c +160 -4
- data/ext/groonga/rb-grn-object.c +10 -1
- data/ext/groonga/rb-grn-posting.c +4 -4
- data/ext/groonga/rb-grn-table-key-support.c +9 -4
- data/ext/groonga/rb-grn-table.c +1 -1
- data/ext/groonga/rb-grn-utils.c +2 -6
- data/ext/groonga/rb-grn-variable-size-column.c +2 -2
- data/ext/groonga/rb-grn.h +27 -2
- data/lib/groonga/record.rb +19 -2
- data/lib/groonga/schema.rb +2 -2
- data/rroonga-build.rb +1 -1
- data/rroonga.gemspec +5 -5
- data/test/test-column.rb +6 -6
- data/test/test-database.rb +6 -2
- data/test/test-double-array-trie.rb +18 -0
- data/test/test-expression-builder.rb +3 -2
- data/test/test-hash.rb +13 -1
- data/test/test-plugin.rb +3 -1
- data/test/test-record.rb +10 -0
- data/test/test-variable-size-column.rb +4 -4
- metadata +79 -81
- data/README.textile +0 -73
data/ext/groonga/rb-grn-table.c
CHANGED
data/ext/groonga/rb-grn-utils.c
CHANGED
@@ -670,12 +670,8 @@ rb_grn_add_vector_element (VALUE rb_element, grn_ctx *context, grn_obj *vector,
|
|
670
670
|
if (RVAL2CBOOL(rb_obj_is_kind_of(rb_element, rb_cHash))) {
|
671
671
|
VALUE rb_value;
|
672
672
|
VALUE rb_weight;
|
673
|
-
|
674
|
-
|
675
|
-
CONST_ID(id_value, "value");
|
676
|
-
CONST_ID(id_weight, "weight");
|
677
|
-
rb_value = rb_hash_aref(rb_element, ID2SYM(id_value));
|
678
|
-
rb_weight = rb_hash_aref(rb_element, ID2SYM(id_weight));
|
673
|
+
rb_value = rb_hash_aref(rb_element, RB_GRN_INTERN("value"));
|
674
|
+
rb_weight = rb_hash_aref(rb_element, RB_GRN_INTERN("weight"));
|
679
675
|
RVAL2GRNOBJ(rb_value, context, &value_buffer);
|
680
676
|
if (!NIL_P(rb_weight)) {
|
681
677
|
weight = NUM2UINT(rb_weight);
|
@@ -210,10 +210,10 @@ rb_grn_variable_size_column_array_reference (VALUE self, VALUE rb_id)
|
|
210
210
|
|
211
211
|
rb_element = rb_hash_new();
|
212
212
|
rb_hash_aset(rb_element,
|
213
|
-
|
213
|
+
RB_GRN_INTERN("value"),
|
214
214
|
rb_element_value);
|
215
215
|
rb_hash_aset(rb_element,
|
216
|
-
|
216
|
+
RB_GRN_INTERN("weight"),
|
217
217
|
UINT2NUM(weight));
|
218
218
|
|
219
219
|
rb_ary_push(rb_value, rb_element);
|
data/ext/groonga/rb-grn.h
CHANGED
@@ -40,6 +40,14 @@
|
|
40
40
|
# define NUM2USHORT(object) NUM2UINT(object)
|
41
41
|
#endif
|
42
42
|
|
43
|
+
#ifndef HAVE_RB_SYM2STR
|
44
|
+
# define rb_sym2str(symbol) (rb_id2str(SYM2ID(symbol)))
|
45
|
+
#endif
|
46
|
+
|
47
|
+
#ifndef HAVE_RB_TO_SYMBOL
|
48
|
+
# define rb_to_symbol(rb_string) (rb_str_intern(rb_string))
|
49
|
+
#endif
|
50
|
+
|
43
51
|
#include <groonga.h>
|
44
52
|
|
45
53
|
#if defined(__cplusplus)
|
@@ -84,7 +92,7 @@ RB_GRN_BEGIN_DECLS
|
|
84
92
|
|
85
93
|
#define RB_GRN_MAJOR_VERSION 4
|
86
94
|
#define RB_GRN_MINOR_VERSION 0
|
87
|
-
#define RB_GRN_MICRO_VERSION
|
95
|
+
#define RB_GRN_MICRO_VERSION 5
|
88
96
|
|
89
97
|
#define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
|
90
98
|
|
@@ -94,6 +102,7 @@ RB_GRN_BEGIN_DECLS
|
|
94
102
|
#define RB_GRN_NAMED_OBJECT(object) ((RbGrnNamedObject *)(object))
|
95
103
|
#define RB_GRN_TABLE(object) ((RbGrnTable *)(object))
|
96
104
|
#define RB_GRN_TABLE_KEY_SUPPORT(object) ((RbGrnTableKeySupport *)(object))
|
105
|
+
#define RB_GRN_DOUBLE_ARRAY_TRIE(object) ((RbGrnDoubleArrayTrie *)(object))
|
97
106
|
#define RB_GRN_TABLE_CURSOR(object) ((RbGrnTableCursort *)(object))
|
98
107
|
#define RB_GRN_COLUMN(object) ((RbGrnColumn *)(object))
|
99
108
|
#define RB_GRN_VARIABLE_SIZE_COLUMN(object) ((RbGrnVariableSizeColumn *)(object))
|
@@ -153,6 +162,13 @@ struct _RbGrnTableKeySupport
|
|
153
162
|
grn_obj *key;
|
154
163
|
};
|
155
164
|
|
165
|
+
typedef struct _RbGrnDoubleArrayTrie RbGrnDoubleArrayTrie;
|
166
|
+
struct _RbGrnDoubleArrayTrie
|
167
|
+
{
|
168
|
+
RbGrnTableKeySupport parent;
|
169
|
+
grn_obj *new_key;
|
170
|
+
};
|
171
|
+
|
156
172
|
typedef struct _RbGrnColumn RbGrnColumn;
|
157
173
|
struct _RbGrnColumn
|
158
174
|
{
|
@@ -486,6 +502,13 @@ void rb_grn_table_key_support_deconstruct (RbGrnTableKeySupport *rb_gr
|
|
486
502
|
grn_id rb_grn_table_key_support_get (VALUE self,
|
487
503
|
VALUE rb_key);
|
488
504
|
|
505
|
+
void rb_grn_double_array_trie_bind (RbGrnDoubleArrayTrie *rb_grn_double_array_trie,
|
506
|
+
grn_ctx *context,
|
507
|
+
grn_obj *double_array_trie);
|
508
|
+
void rb_grn_double_array_trie_finalizer (grn_ctx *context,
|
509
|
+
grn_obj *grn_object,
|
510
|
+
RbGrnDoubleArrayTrie *rb_grn_double_array_trie);
|
511
|
+
|
489
512
|
void rb_grn_column_bind (RbGrnColumn *rb_grn_column,
|
490
513
|
grn_ctx *context,
|
491
514
|
grn_obj *column);
|
@@ -576,11 +599,13 @@ VALUE rb_grn_column_expression_builder_build
|
|
576
599
|
(VALUE self);
|
577
600
|
|
578
601
|
|
579
|
-
#define RB_GRN_INTERN(
|
602
|
+
#define RB_GRN_INTERN(c_string) (rb_to_symbol(rb_str_new2(c_string)))
|
580
603
|
|
581
604
|
#define RVAL2CBOOL(object) (RTEST(object))
|
582
605
|
#define CBOOL2RVAL(boolean) ((boolean) ? Qtrue : Qfalse)
|
583
606
|
|
607
|
+
#define RSYMBOL2CSTR(rb_symbol) (RSTRING_PTR(rb_sym2str(rb_symbol)))
|
608
|
+
|
584
609
|
#define RVAL2GRNENCODING(object, context) \
|
585
610
|
(rb_grn_encoding_from_ruby_object(object, context))
|
586
611
|
#define GRNENCODING2RVAL(encoding) (rb_grn_encoding_to_ruby_object(encoding))
|
data/lib/groonga/record.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
+
# Copyright (C) 2014 Masafumi Yokoyama <myokoym@gmail.com>
|
3
4
|
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
4
5
|
#
|
5
6
|
# This library is free software; you can redistribute it and/or
|
@@ -278,9 +279,25 @@ module Groonga
|
|
278
279
|
as_json.to_json(*args)
|
279
280
|
end
|
280
281
|
|
281
|
-
#
|
282
|
+
# Delete the record.
|
282
283
|
def delete
|
283
|
-
|
284
|
+
if support_key?
|
285
|
+
@table.delete(@id, :id => true)
|
286
|
+
else
|
287
|
+
@table.delete(@id)
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
# Renames key of the record. Only available for
|
292
|
+
# {Groonga::DoubleArrayTrie} table.
|
293
|
+
#
|
294
|
+
# @since 4.0.5
|
295
|
+
def rename(new_key)
|
296
|
+
if @table.is_a?(DoubleArrayTrie)
|
297
|
+
@table.update(@id, new_key, :id => true)
|
298
|
+
else
|
299
|
+
raise OperationNotSupported, "Only Groonga::DoubleArrayTrie table supports Groonga::Record#rename: <#{@table.class}>"
|
300
|
+
end
|
284
301
|
end
|
285
302
|
|
286
303
|
# レコードが所属するテーブルをロックする。ロックに失敗した場
|
data/lib/groonga/schema.rb
CHANGED
@@ -73,7 +73,7 @@ module Groonga
|
|
73
73
|
def initialize(table, options)
|
74
74
|
@table = table
|
75
75
|
@options = options
|
76
|
-
super("creating table with
|
76
|
+
super("creating table with different options: " +
|
77
77
|
"#{@table.inspect}: #{@options.inspect}")
|
78
78
|
end
|
79
79
|
end
|
@@ -85,7 +85,7 @@ module Groonga
|
|
85
85
|
def initialize(column, options)
|
86
86
|
@column = column
|
87
87
|
@options = options
|
88
|
-
super("creating column with
|
88
|
+
super("creating column with different option: " +
|
89
89
|
"#{@column.inspect}: #{@options.inspect}")
|
90
90
|
end
|
91
91
|
end
|
data/rroonga-build.rb
CHANGED
data/rroonga.gemspec
CHANGED
@@ -54,12 +54,12 @@ Gem::Specification.new do |s|
|
|
54
54
|
s.authors = authors
|
55
55
|
s.email = emails
|
56
56
|
|
57
|
-
readme_path = File.join(base_dir, "README.
|
58
|
-
entries = File.read(readme_path).split(
|
57
|
+
readme_path = File.join(base_dir, "README.md")
|
58
|
+
entries = File.read(readme_path).split(/^##\s(.*)$/)
|
59
59
|
description = clean_white_space.call(entries[entries.index("Description") + 1])
|
60
60
|
s.summary, s.description, = description.split(/\n\n+/, 3)
|
61
61
|
|
62
|
-
s.files = ["README.
|
62
|
+
s.files = ["README.md", "AUTHORS", "Rakefile", "Gemfile", ".yardopts"]
|
63
63
|
s.files += Dir.glob("doc/text/*.textile")
|
64
64
|
s.files += ["#{s.name}.gemspec"]
|
65
65
|
s.files += ["rroonga-build.rb", "extconf.rb"]
|
@@ -67,7 +67,7 @@ Gem::Specification.new do |s|
|
|
67
67
|
s.files += Dir.glob("{lib,benchmark,misc,example}/**/*.rb")
|
68
68
|
s.files += Dir.glob("ext/**/*.{c,h,rb,def}")
|
69
69
|
s.extensions = ["ext/groonga/extconf.rb"]
|
70
|
-
s.extra_rdoc_files = ["README.
|
70
|
+
s.extra_rdoc_files = ["README.md"]
|
71
71
|
s.test_files = Dir.glob("test/**/*.rb")
|
72
72
|
Dir.chdir("bin") do
|
73
73
|
s.executables = Dir.glob("*")
|
@@ -85,7 +85,7 @@ Gem::Specification.new do |s|
|
|
85
85
|
s.add_runtime_dependency("groonga-client", ">= 0.0.3")
|
86
86
|
s.add_runtime_dependency("json")
|
87
87
|
s.add_runtime_dependency("archive-zip")
|
88
|
-
s.add_development_dependency("test-unit", [">=
|
88
|
+
s.add_development_dependency("test-unit", [">= 3.0.0"])
|
89
89
|
s.add_development_dependency("test-unit-notify")
|
90
90
|
s.add_development_dependency("rake")
|
91
91
|
s.add_development_dependency("rake-compiler")
|
data/test/test-column.rb
CHANGED
@@ -169,7 +169,7 @@ class ColumnTest < Test::Unit::TestCase
|
|
169
169
|
result.records.collect do |record|
|
170
170
|
record["body"]
|
171
171
|
end)
|
172
|
-
assert_equal("#<Groonga::Expression noname($1
|
172
|
+
assert_equal("#<Groonga::Expression noname($1:null)" +
|
173
173
|
"{2body GET_VALUE,0\"drive\",0MATCH}>",
|
174
174
|
result.expression.inspect)
|
175
175
|
end
|
@@ -200,7 +200,7 @@ class ColumnTest < Test::Unit::TestCase
|
|
200
200
|
result.records.collect do |record|
|
201
201
|
record["body"]
|
202
202
|
end)
|
203
|
-
assert_equal("#<Groonga::Expression noname($1
|
203
|
+
assert_equal("#<Groonga::Expression noname($1:null)" +
|
204
204
|
"{2body GET_VALUE,0\"drive\",0MATCH}>",
|
205
205
|
result.expression.inspect)
|
206
206
|
end
|
@@ -218,8 +218,8 @@ class ColumnTest < Test::Unit::TestCase
|
|
218
218
|
result.records.collect do |record|
|
219
219
|
record["body"]
|
220
220
|
end)
|
221
|
-
assert_equal("#<Groonga::Expression noname($1
|
222
|
-
"{
|
221
|
+
assert_equal("#<Groonga::Expression noname($1:null)" +
|
222
|
+
"{0null,2body GET_VALUE,0\"drive\",0MATCH}>",
|
223
223
|
result.expression.inspect)
|
224
224
|
end
|
225
225
|
|
@@ -233,8 +233,8 @@ class ColumnTest < Test::Unit::TestCase
|
|
233
233
|
result.records.collect do |record|
|
234
234
|
record["body"]
|
235
235
|
end)
|
236
|
-
assert_equal("#<Groonga::Expression noname($1
|
237
|
-
"{
|
236
|
+
assert_equal("#<Groonga::Expression noname($1:null)" +
|
237
|
+
"{1null,2body GET_VALUE,0\"drive\",0MATCH}>",
|
238
238
|
result.expression.inspect)
|
239
239
|
end
|
240
240
|
|
data/test/test-database.rb
CHANGED
@@ -90,13 +90,17 @@ class DatabaseTest < Test::Unit::TestCase
|
|
90
90
|
def test_each
|
91
91
|
setup_database
|
92
92
|
default_object_names = @database.collect {|object| object.name}.sort
|
93
|
-
|
93
|
+
assert do
|
94
|
+
default_object_names.include?("Bool")
|
95
|
+
end
|
94
96
|
end
|
95
97
|
|
96
98
|
def test_each_without_block
|
97
99
|
setup_database
|
98
100
|
default_object_names = @database.each.collect {|object| object.name}.sort
|
99
|
-
|
101
|
+
assert do
|
102
|
+
default_object_names.include?("Bool")
|
103
|
+
end
|
100
104
|
end
|
101
105
|
|
102
106
|
def test_encoding
|
@@ -134,6 +134,24 @@ class DoubleArrayTrieTest < Test::Unit::TestCase
|
|
134
134
|
assert_equal(expected, actual)
|
135
135
|
end
|
136
136
|
|
137
|
+
def test_update_by_key
|
138
|
+
users = Groonga::DoubleArrayTrie.create(:name => "Users",
|
139
|
+
:key_type => "ShortText")
|
140
|
+
users.add("Bob")
|
141
|
+
|
142
|
+
users.update("Bob", "Alice")
|
143
|
+
assert_equal(["Alice"], users.collect {|user| user.key})
|
144
|
+
end
|
145
|
+
|
146
|
+
def test_update_by_id
|
147
|
+
users = Groonga::DoubleArrayTrie.create(:name => "Users",
|
148
|
+
:key_type => "ShortText")
|
149
|
+
users.add("Bob")
|
150
|
+
|
151
|
+
users.update(users["Bob"].id, "Alice", :id => true)
|
152
|
+
assert_equal(["Alice"], users.collect {|user| user.key})
|
153
|
+
end
|
154
|
+
|
137
155
|
def test_add_uint_key
|
138
156
|
numbers = Groonga::DoubleArrayTrie.create(:name => "Numbers",
|
139
157
|
:key_type => "UInt32")
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
+
# Copyright (C) 2014 Masafumi Yokoyama <myokoym@gmail.com>
|
3
4
|
# Copyright (C) 2009-2012 Kouhei Sutou <kou@clear-code.com>
|
4
5
|
#
|
5
6
|
# This library is free software; you can redistribute it and/or
|
@@ -386,7 +387,7 @@ EOC
|
|
386
387
|
result = @documents.select do |record|
|
387
388
|
record.content.similar_search("fast full text search real time")
|
388
389
|
end
|
389
|
-
assert_equal(["Groonga overview"
|
390
|
+
assert_equal(["Groonga overview"],
|
390
391
|
result.collect {|record| record.key.key}.sort)
|
391
392
|
end
|
392
393
|
|
@@ -394,7 +395,7 @@ EOC
|
|
394
395
|
result = @documents.column("content").select do |content|
|
395
396
|
content.similar_search("fast full text search real time")
|
396
397
|
end
|
397
|
-
assert_equal(["Groonga overview"
|
398
|
+
assert_equal(["Groonga overview"],
|
398
399
|
result.collect {|record| record.key.key}.sort)
|
399
400
|
end
|
400
401
|
end
|
data/test/test-hash.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
+
# Copyright (C) 2014 Masafumi Yokoyama <myokoym@gmail.com>
|
3
4
|
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
4
5
|
#
|
5
6
|
# This library is free software; you can redistribute it and/or
|
@@ -55,7 +56,7 @@ class HashTest < Test::Unit::TestCase
|
|
55
56
|
end
|
56
57
|
|
57
58
|
def test_id
|
58
|
-
@bookmarks.delete(@google.id)
|
59
|
+
@bookmarks.delete(@google.id, :id => true)
|
59
60
|
assert_equal(["groonga", "Cutter"],
|
60
61
|
@bookmarks.collect {|bookmark| bookmark.key})
|
61
62
|
end
|
@@ -73,6 +74,17 @@ class HashTest < Test::Unit::TestCase
|
|
73
74
|
assert_equal(["Google", "Cutter"],
|
74
75
|
@bookmarks.collect {|bookmark| bookmark.key})
|
75
76
|
end
|
77
|
+
|
78
|
+
def test_key_of_int32
|
79
|
+
numbers = Groonga::Hash.create(:name => "Numbers",
|
80
|
+
:key_type => "Int32")
|
81
|
+
numbers.add(100)
|
82
|
+
numbers.add(200)
|
83
|
+
|
84
|
+
numbers.delete(100)
|
85
|
+
assert_equal([200],
|
86
|
+
numbers.collect {|number| number.key})
|
87
|
+
end
|
76
88
|
end
|
77
89
|
|
78
90
|
def test_value
|
data/test/test-plugin.rb
CHANGED
@@ -30,6 +30,8 @@ class PluginTest < Test::Unit::TestCase
|
|
30
30
|
def test_system_plugins_dir
|
31
31
|
suggest_plugin_path = "#{Groonga::Plugin.system_plugins_dir}/"
|
32
32
|
suggest_plugin_path << "suggest/suggest#{Groonga::Plugin.suffix}"
|
33
|
-
|
33
|
+
assert do
|
34
|
+
File.exist?(suggest_plugin_path)
|
35
|
+
end
|
34
36
|
end
|
35
37
|
end
|
data/test/test-record.rb
CHANGED
@@ -176,6 +176,15 @@ class RecordTest < Test::Unit::TestCase
|
|
176
176
|
assert_equal(2, @bookmarks.size)
|
177
177
|
end
|
178
178
|
|
179
|
+
def test_rename
|
180
|
+
users = Groonga::DoubleArrayTrie.create(:name => "DATUsers",
|
181
|
+
:key_type => "ShortText")
|
182
|
+
bob = users.add("Bob")
|
183
|
+
|
184
|
+
bob.rename("Alice")
|
185
|
+
assert_equal("Alice", bob._key)
|
186
|
+
end
|
187
|
+
|
179
188
|
def test_key
|
180
189
|
documents = Groonga::PatriciaTrie.create(:name => "Documents",
|
181
190
|
:key_type => "ShortText")
|
@@ -625,6 +634,7 @@ class RecordTest < Test::Unit::TestCase
|
|
625
634
|
end
|
626
635
|
|
627
636
|
def test_to_json
|
637
|
+
ENV["TZ"] = "Japan"
|
628
638
|
created_at = Time.parse("2013-05-16T16:57:34+09:00")
|
629
639
|
values = {
|
630
640
|
"uri" => "http://groonga.org/",
|
@@ -79,9 +79,9 @@ class VariableSizeColumnTest < Test::Unit::TestCase
|
|
79
79
|
description = @users.define_column("description", "ShortText",
|
80
80
|
:compress => :zlib)
|
81
81
|
if context.support_zlib?
|
82
|
-
|
82
|
+
assert {description.compressed?(:zlib)}
|
83
83
|
else
|
84
|
-
|
84
|
+
assert {not description.compressed?(:zlib)}
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
@@ -89,9 +89,9 @@ class VariableSizeColumnTest < Test::Unit::TestCase
|
|
89
89
|
description = @users.define_column("description", "ShortText",
|
90
90
|
:compress => :lzo)
|
91
91
|
if context.support_lzo?
|
92
|
-
|
92
|
+
assert {description.compressed?(:lzo)}
|
93
93
|
else
|
94
|
-
|
94
|
+
assert {not description.compressed?(:lzo)}
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
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: 4.0.
|
4
|
+
version: 4.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -12,183 +12,181 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-10-05 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: pkg-config
|
19
19
|
requirement: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: '0'
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: groonga-client
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - ">="
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: 0.0.3
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
|
-
- -
|
42
|
+
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: 0.0.3
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: json
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
|
-
- -
|
49
|
+
- - ">="
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: '0'
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
|
-
- -
|
56
|
+
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: '0'
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: archive-zip
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
|
-
- -
|
63
|
+
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- -
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: test-unit
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- -
|
77
|
+
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
79
|
+
version: 3.0.0
|
80
80
|
type: :development
|
81
81
|
prerelease: false
|
82
82
|
version_requirements: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- -
|
84
|
+
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
86
|
+
version: 3.0.0
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: test-unit-notify
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ">="
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
type: :development
|
95
95
|
prerelease: false
|
96
96
|
version_requirements: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
|
-
- -
|
98
|
+
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
102
|
name: rake
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- -
|
105
|
+
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
type: :development
|
109
109
|
prerelease: false
|
110
110
|
version_requirements: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
|
-
- -
|
112
|
+
- - ">="
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: rake-compiler
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
|
-
- -
|
119
|
+
- - ">="
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
type: :development
|
123
123
|
prerelease: false
|
124
124
|
version_requirements: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
|
-
- -
|
126
|
+
- - ">="
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0'
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: bundler
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|
132
132
|
requirements:
|
133
|
-
- -
|
133
|
+
- - ">="
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: '0'
|
136
136
|
type: :development
|
137
137
|
prerelease: false
|
138
138
|
version_requirements: !ruby/object:Gem::Requirement
|
139
139
|
requirements:
|
140
|
-
- -
|
140
|
+
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
- !ruby/object:Gem::Dependency
|
144
144
|
name: yard
|
145
145
|
requirement: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
|
-
- -
|
147
|
+
- - ">="
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
type: :development
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- -
|
154
|
+
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: packnga
|
159
159
|
requirement: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- -
|
161
|
+
- - ">="
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: 1.0.0
|
164
164
|
type: :development
|
165
165
|
prerelease: false
|
166
166
|
version_requirements: !ruby/object:Gem::Requirement
|
167
167
|
requirements:
|
168
|
-
- -
|
168
|
+
- - ">="
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: 1.0.0
|
171
171
|
- !ruby/object:Gem::Dependency
|
172
172
|
name: RedCloth
|
173
173
|
requirement: !ruby/object:Gem::Requirement
|
174
174
|
requirements:
|
175
|
-
- -
|
175
|
+
- - ">="
|
176
176
|
- !ruby/object:Gem::Version
|
177
177
|
version: '0'
|
178
178
|
type: :development
|
179
179
|
prerelease: false
|
180
180
|
version_requirements: !ruby/object:Gem::Requirement
|
181
181
|
requirements:
|
182
|
-
- -
|
182
|
+
- - ">="
|
183
183
|
- !ruby/object:Gem::Version
|
184
184
|
version: '0'
|
185
|
-
description:
|
186
|
-
|
185
|
+
description: |-
|
186
|
+
Rroonga is an extension library to use Groonga's DB-API
|
187
187
|
layer. Rroonga provides Rubyish readable and writable API
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
functional features from Ruby with Rubyish form.'
|
188
|
+
not C like API. You can use Groonga's fast and highly
|
189
|
+
functional features from Ruby with Rubyish form.
|
192
190
|
email:
|
193
191
|
- kou@clear-code.com
|
194
192
|
- a@razil.jp
|
@@ -197,18 +195,18 @@ email:
|
|
197
195
|
- dara@shidara.net
|
198
196
|
executables:
|
199
197
|
- grndump
|
200
|
-
- groonga-database-inspect
|
201
198
|
- groonga-index-dump
|
202
199
|
- grntest-log-analyze
|
200
|
+
- groonga-database-inspect
|
203
201
|
extensions:
|
204
202
|
- ext/groonga/extconf.rb
|
205
203
|
extra_rdoc_files:
|
206
|
-
- README.
|
204
|
+
- README.md
|
207
205
|
files:
|
208
|
-
- .yardopts
|
206
|
+
- ".yardopts"
|
209
207
|
- AUTHORS
|
210
208
|
- Gemfile
|
211
|
-
- README.
|
209
|
+
- README.md
|
212
210
|
- Rakefile
|
213
211
|
- benchmark/common.rb
|
214
212
|
- benchmark/create-wikipedia-database.rb
|
@@ -360,73 +358,73 @@ require_paths:
|
|
360
358
|
- ext/groonga
|
361
359
|
required_ruby_version: !ruby/object:Gem::Requirement
|
362
360
|
requirements:
|
363
|
-
- -
|
361
|
+
- - ">="
|
364
362
|
- !ruby/object:Gem::Version
|
365
363
|
version: 1.9.3
|
366
364
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
367
365
|
requirements:
|
368
|
-
- -
|
366
|
+
- - ">="
|
369
367
|
- !ruby/object:Gem::Version
|
370
368
|
version: '0'
|
371
369
|
requirements: []
|
372
370
|
rubyforge_project: groonga
|
373
|
-
rubygems_version: 2.
|
371
|
+
rubygems_version: 2.2.2
|
374
372
|
signing_key:
|
375
373
|
specification_version: 4
|
376
374
|
summary: Ruby bindings for Groonga that provide full text search and column store
|
377
375
|
features.
|
378
376
|
test_files:
|
379
|
-
- test/test-
|
380
|
-
- test/test-
|
381
|
-
- test/test-table-
|
377
|
+
- test/test-table-select-weight.rb
|
378
|
+
- test/test-statistic-measurer.rb
|
379
|
+
- test/test-table-select-normalize.rb
|
380
|
+
- test/test-procedure.rb
|
381
|
+
- test/test-context.rb
|
382
382
|
- test/test-remote.rb
|
383
|
-
- test/test-
|
384
|
-
- test/test-expression.rb
|
385
|
-
- test/test-version.rb
|
386
|
-
- test/test-index-cursor.rb
|
387
|
-
- test/test-vector-column.rb
|
388
|
-
- test/test-exception.rb
|
389
|
-
- test/test-encoding.rb
|
390
|
-
- test/test-array.rb
|
391
|
-
- test/test-column.rb
|
383
|
+
- test/test-table-select-mecab.rb
|
392
384
|
- test/test-memory-pool.rb
|
393
|
-
- test/test-
|
394
|
-
- test/test-table-offset-and-limit.rb
|
395
|
-
- test/test-context.rb
|
385
|
+
- test/test-patricia-trie.rb
|
396
386
|
- test/test-schema-type.rb
|
387
|
+
- test/test-table-offset-and-limit.rb
|
388
|
+
- test/test-double-array-trie.rb
|
389
|
+
- test/test-schema-create-table.rb
|
390
|
+
- test/test-array.rb
|
391
|
+
- test/test-variable.rb
|
392
|
+
- test/test-index-cursor.rb
|
393
|
+
- test/test-sub-records.rb
|
394
|
+
- test/test-plugin.rb
|
397
395
|
- test/test-type.rb
|
398
396
|
- test/test-geo-point.rb
|
399
397
|
- test/test-command-select.rb
|
400
|
-
- test/
|
401
|
-
- test/test-
|
402
|
-
- test/test-
|
403
|
-
- test/test-
|
404
|
-
- test/test-table-select-normalize.rb
|
398
|
+
- test/test-schema-dumper.rb
|
399
|
+
- test/test-accessor.rb
|
400
|
+
- test/test-logger.rb
|
401
|
+
- test/test-version.rb
|
405
402
|
- test/test-expression-builder.rb
|
406
|
-
- test/test-
|
407
|
-
- test/test-
|
408
|
-
- test/
|
409
|
-
- test/test-database-dumper.rb
|
403
|
+
- test/test-variable-size-column.rb
|
404
|
+
- test/test-encoding.rb
|
405
|
+
- test/test-pagination.rb
|
410
406
|
- test/test-table-traverse.rb
|
407
|
+
- test/test-database-dumper.rb
|
408
|
+
- test/test-exception.rb
|
409
|
+
- test/test-normalizer.rb
|
410
|
+
- test/test-table-dumper.rb
|
411
411
|
- test/test-database.rb
|
412
|
-
- test/test-
|
413
|
-
- test/test-lock-timeout.rb
|
414
|
-
- test/test-accessor.rb
|
415
|
-
- test/test-procedure.rb
|
416
|
-
- test/test-statistic-measurer.rb
|
412
|
+
- test/test-database-inspector.rb
|
417
413
|
- test/test-schema.rb
|
418
|
-
- test/test-
|
419
|
-
- test/test-
|
420
|
-
- test/test-
|
421
|
-
- test/test-index-column.rb
|
414
|
+
- test/test-fix-size-column.rb
|
415
|
+
- test/test-expression.rb
|
416
|
+
- test/test-gqtp.rb
|
422
417
|
- test/test-hash.rb
|
418
|
+
- test/groonga-test-utils.rb
|
419
|
+
- test/test-table-key-support.rb
|
423
420
|
- test/test-table.rb
|
424
|
-
- test/test-
|
425
|
-
- test/test-
|
426
|
-
- test/test-
|
427
|
-
- test/test-
|
428
|
-
- test/test-fix-size-column.rb
|
421
|
+
- test/test-vector-column.rb
|
422
|
+
- test/test-table-select.rb
|
423
|
+
- test/test-index-column.rb
|
424
|
+
- test/test-record.rb
|
429
425
|
- test/test-convert.rb
|
430
|
-
- test/test-
|
431
|
-
- test/test
|
426
|
+
- test/test-column.rb
|
427
|
+
- test/run-test.rb
|
428
|
+
- test/test-lock-timeout.rb
|
429
|
+
- test/test-snippet.rb
|
432
430
|
has_rdoc:
|