rroonga 1.3.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/Gemfile +1 -1
  2. data/Rakefile +2 -7
  3. data/bug.rb +36 -0
  4. data/crash.rb +17 -0
  5. data/ext/groonga/Makefile +260 -0
  6. data/ext/groonga/groonga.so +0 -0
  7. data/ext/groonga/rb-grn-accessor.o +0 -0
  8. data/ext/groonga/rb-grn-array-cursor.o +0 -0
  9. data/ext/groonga/rb-grn-array.o +0 -0
  10. data/ext/groonga/rb-grn-column.c +34 -37
  11. data/ext/groonga/rb-grn-column.o +0 -0
  12. data/ext/groonga/rb-grn-context.c +63 -2
  13. data/ext/groonga/rb-grn-context.o +0 -0
  14. data/ext/groonga/rb-grn-database.o +0 -0
  15. data/ext/groonga/rb-grn-double-array-trie-cursor.o +0 -0
  16. data/ext/groonga/rb-grn-double-array-trie.o +0 -0
  17. data/ext/groonga/rb-grn-encoding-support.o +0 -0
  18. data/ext/groonga/rb-grn-encoding.o +0 -0
  19. data/ext/groonga/rb-grn-exception.o +0 -0
  20. data/ext/groonga/rb-grn-expression-builder.o +0 -0
  21. data/ext/groonga/rb-grn-expression.c +21 -13
  22. data/ext/groonga/rb-grn-expression.o +0 -0
  23. data/ext/groonga/rb-grn-fix-size-column.o +0 -0
  24. data/ext/groonga/rb-grn-hash-cursor.o +0 -0
  25. data/ext/groonga/rb-grn-hash.o +0 -0
  26. data/ext/groonga/rb-grn-index-column.o +0 -0
  27. data/ext/groonga/rb-grn-index-cursor.o +0 -0
  28. data/ext/groonga/rb-grn-logger.o +0 -0
  29. data/ext/groonga/rb-grn-object.c +2 -0
  30. data/ext/groonga/rb-grn-object.o +0 -0
  31. data/ext/groonga/rb-grn-operator.o +0 -0
  32. data/ext/groonga/rb-grn-patricia-trie-cursor.o +0 -0
  33. data/ext/groonga/rb-grn-patricia-trie.o +0 -0
  34. data/ext/groonga/rb-grn-plugin.o +0 -0
  35. data/ext/groonga/rb-grn-posting.o +0 -0
  36. data/ext/groonga/rb-grn-procedure.o +0 -0
  37. data/ext/groonga/rb-grn-record.o +0 -0
  38. data/ext/groonga/rb-grn-snippet.o +0 -0
  39. data/ext/groonga/rb-grn-table-cursor-key-support.o +0 -0
  40. data/ext/groonga/rb-grn-table-cursor.o +0 -0
  41. data/ext/groonga/rb-grn-table-key-support.o +0 -0
  42. data/ext/groonga/rb-grn-table.c +57 -51
  43. data/ext/groonga/rb-grn-table.o +0 -0
  44. data/ext/groonga/rb-grn-type.o +0 -0
  45. data/ext/groonga/rb-grn-utils.o +0 -0
  46. data/ext/groonga/rb-grn-variable-size-column.o +0 -0
  47. data/ext/groonga/rb-grn-variable.o +0 -0
  48. data/ext/groonga/rb-grn-view-accessor.o +0 -0
  49. data/ext/groonga/rb-grn-view-cursor.o +0 -0
  50. data/ext/groonga/rb-grn-view-record.o +0 -0
  51. data/ext/groonga/rb-grn-view.o +0 -0
  52. data/ext/groonga/rb-grn.h +10 -4
  53. data/ext/groonga/rb-groonga.o +0 -0
  54. data/lib/groonga.rb +9 -6
  55. data/lib/groonga/schema.rb +75 -46
  56. data/rroonga-build.rb +2 -2
  57. data/test/run-test.rb +1 -2
  58. data/test/test-table-select.rb +0 -5
  59. data/test/test-type.rb +2 -2
  60. data/test/test-version.rb +40 -10
  61. metadata +198 -191
Binary file
data/lib/groonga.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2009-2012 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
@@ -58,12 +58,15 @@ module Groonga
58
58
  BUILD_VERSION.join(".")
59
59
  end
60
60
 
61
- ##
62
- # VERSIONを"."で結合して<tt>"メジャーバージョン.マイナー
63
- # バージョン.マイクロバージョン"</tt>という形式の文字列に
64
- # したもの。
61
+ # Format version.
62
+ #
63
+ # @return [String] If Groonga::VERSION has tag,
64
+ # @MAJOR.MINOR.MICRO-TAG@. Otherwise, @MAJOR.MINOR.MICRO@.
65
65
  def version
66
- VERSION.join(".")
66
+ major, minor, micro, tag = VERSION
67
+ version_string = [major, minor, micro].join(".")
68
+ version_string << "-#{tag}" if tag
69
+ version_string
67
70
  end
68
71
 
69
72
  ##
@@ -151,11 +151,13 @@ module Groonga
151
151
  # スキーマを定義する。ブロックにはGroonga::Schemaオブ
152
152
  # ジェクトがわたるので、そのオブジェクトを利用してスキー
153
153
  # マを定義する。以下の省略形。
154
+ #
154
155
  # <pre>
155
- # schema = Groonga::Scheme.new(options)
156
- # ==...==
157
- # schema.define
156
+ # schema = Groonga::Scheme.new(options)
157
+ # # ...
158
+ # schema.define
158
159
  # </pre>
160
+ #
159
161
  # @param [::Hash] options The name and value
160
162
  # pairs. Omitted names are initialized as the default value.
161
163
  # @option options [Groonga::Context] :content (Groonga::Context.default) The context
@@ -170,7 +172,7 @@ module Groonga
170
172
  # @example 名前が _name_ のテーブルを作成する。以下の省略形。
171
173
  # Groonga::Schema.define do |schema|
172
174
  # schema.create_table(name, options) do |table|
173
- # ...
175
+ # # ...
174
176
  # end
175
177
  # end
176
178
  # ブロックにはGroonga::Schema::TableDefinitionオブジェ
@@ -328,12 +330,13 @@ module Groonga
328
330
  end
329
331
 
330
332
  # 名前が _name_ のテーブルを変更する。以下の省略形。
333
+ #
331
334
  # <pre>
332
- # Groonga::Schema.define do |schema|
333
- # schema.change_table(name, options) do |table|
334
- # ==...==
335
- # end
335
+ # Groonga::Schema.define do |schema|
336
+ # schema.change_table(name, options) do |table|
337
+ # # ...
336
338
  # end
339
+ # end
337
340
  # </pre>
338
341
  #
339
342
  # ブロックにはGroonga::Schema::TableDefinitionオブジェ
@@ -353,12 +356,12 @@ module Groonga
353
356
 
354
357
  # (See Groonga::Schema#rename_table)
355
358
  #
356
- # This is a syntax sugar the following code:
359
+ # This is a syntax sugar of the following code:
357
360
  #
358
361
  # <pre>
359
- # Groonga::Schema.define do |schema|
360
- # schema.rename_table(current_name, new_name, options)
361
- # end
362
+ # Groonga::Schema.define do |schema|
363
+ # schema.rename_table(current_name, new_name, options)
364
+ # end
362
365
  # </pre>
363
366
  def rename_table(current_name, new_name, options={})
364
367
  define do |schema|
@@ -367,12 +370,13 @@ module Groonga
367
370
  end
368
371
 
369
372
  # 名前が_name_のビューを作成する。以下の省略形。
373
+ #
370
374
  # <pre>
371
- # Groonga::Schema.define do |schema|
372
- # schema.create_view(name, options) do |view|
373
- # ==...==
374
- # end
375
+ # Groonga::Schema.define do |schema|
376
+ # schema.create_view(name, options) do |view|
377
+ # # ...
375
378
  # end
379
+ # end
376
380
  # </pre>
377
381
  # ブロックにはGroonga::Schema::ViewDefinitionオブジェ
378
382
  # クトがわたるので、そのオブジェクトを利用してビュー
@@ -415,12 +419,13 @@ module Groonga
415
419
  end
416
420
 
417
421
  # 名前が_name_のビューを変更する。以下の省略形。
422
+ #
418
423
  # <pre>
419
- # Groonga::Schema.define do |schema|
420
- # schema.change_view(name, options) do |view|
421
- # ==...==
422
- # end
424
+ # Groonga::Schema.define do |schema|
425
+ # schema.change_view(name, options) do |view|
426
+ # # ...
423
427
  # end
428
+ # end
424
429
  # </pre>
425
430
  #
426
431
  # ブロックにはGroonga::Schema::ViewDefinitionオブジェ
@@ -440,9 +445,11 @@ module Groonga
440
445
 
441
446
  # 以下と同様:
442
447
  #
443
- # Groonga::Schema.change_table(table_name) do |table|
444
- # table.remove_column(column_name)
445
- # end
448
+ # <pre>
449
+ # Groonga::Schema.change_table(table_name) do |table|
450
+ # table.remove_column(column_name)
451
+ # end
452
+ # </pre>
446
453
  def remove_column(table_name, column_name)
447
454
  change_table(table_name) do |table|
448
455
  table.remove_column(column_name)
@@ -451,10 +458,12 @@ module Groonga
451
458
 
452
459
  # This is a syntax sugar of the following:
453
460
  #
454
- # Groonga::Schema.define do |schema|
455
- # schema.rename_column(table_name,
456
- # current_column_name, new_column_name)
457
- # end
461
+ # <pre>
462
+ # Groonga::Schema.define do |schema|
463
+ # schema.rename_column(table_name,
464
+ # current_column_name, new_column_name)
465
+ # end
466
+ # </pre>
458
467
  def rename_column(table_name, current_column_name, new_column_name)
459
468
  define do |schema|
460
469
  schema.rename_column(table_name, current_column_name, new_column_name)
@@ -466,25 +475,39 @@ module Groonga
466
475
  # Rubyスクリプト形式で返された値は
467
476
  # Groonga::Schema.restoreすることによりスキーマ内に組み
468
477
  # 込むことができる。
478
+ #
479
+ # dump.rb:
480
+ #
469
481
  # <pre>
470
- # ==dump.rb:
471
- # File.open("/tmp/groonga-schema.rb", "w") do |schema|
472
- # dumped_text = Groonga::Schema.dump
473
- # end
474
- # restore.rb:
475
- # dumped_text = Groonga::Schema.dump
476
- # Groonga::Database.create(:path => "/tmp/new-db.grn")
477
- # Groonga::Schema.restore(dumped_text)==
482
+ # File.open("/tmp/groonga-schema.rb", "w") do |schema|
483
+ # dumped_text = Groonga::Schema.dump
484
+ # end
478
485
  # </pre>
486
+ #
487
+ # restore.rb:
488
+ #
489
+ # <pre>
490
+ # dumped_text = Groonga::Schema.dump
491
+ # Groonga::Database.create(:path => "/tmp/new-db.grn")
492
+ # Groonga::Schema.restore(dumped_text)
493
+ # </pre>
494
+ #
479
495
  # grn式形式で返された値はgroongaコマンドで読み込むこと
480
496
  # ができる。
497
+ #
498
+ # dump.rb:
499
+ #
481
500
  # <pre>
482
- # ==dump.rb:
483
- # File.open("/tmp/groonga-schema.grn", "w") do |schema|
484
- # dumped_text = Groonga::Schema.dump(:syntax => :command)
485
- # end
486
- # % groonga db/path < /tmp/groonga-schema.grn==
501
+ # File.open("/tmp/groonga-schema.grn", "w") do |schema|
502
+ # dumped_text = Groonga::Schema.dump(:syntax => :command)
503
+ # end
487
504
  # </pre>
505
+ #
506
+ # <pre>
507
+ # !!!text
508
+ # % groonga db/path < /tmp/groonga-schema.grn
509
+ # </pre>
510
+ #
488
511
  # @param options [::Hash] The name and value
489
512
  # pairs. Omitted names are initialized as the default value.
490
513
  # @option options :context (Groonga::Context.default) The context
@@ -914,9 +937,12 @@ module Groonga
914
937
  end
915
938
 
916
939
  # 以下と同様:
917
- # schema.change_table(table_name) do |table|
918
- # table.remove_column(column_name)
919
- # end
940
+ #
941
+ # <pre>
942
+ # schema.change_table(table_name) do |table|
943
+ # table.remove_column(column_name)
944
+ # end
945
+ # </pre>
920
946
  def remove_column(table_name, column_name)
921
947
  change_table(table_name) do |table|
922
948
  table.remove_column(column_name)
@@ -924,9 +950,12 @@ module Groonga
924
950
  end
925
951
 
926
952
  # It is a syntax sugar of the following:
927
- # schema.change_table(table_name) do |table|
928
- # table.rename_column(current_column_name, new_column_name)
929
- # end
953
+ #
954
+ # <pre>
955
+ # schema.change_table(table_name) do |table|
956
+ # table.rename_column(current_column_name, new_column_name)
957
+ # end
958
+ # </pre>
930
959
  def rename_column(table_name, current_column_name, new_column_name)
931
960
  change_table(table_name) do |table|
932
961
  table.rename_column(current_column_name, new_column_name)
data/rroonga-build.rb CHANGED
@@ -17,8 +17,8 @@
17
17
 
18
18
  module RroongaBuild
19
19
  module RequiredGroongaVersion
20
- MAJOR = 1
21
- MINOR = 3
20
+ MAJOR = 2
21
+ MINOR = 0
22
22
  MICRO = 0
23
23
  VERSION = [MAJOR, MINOR, MICRO]
24
24
  end
data/test/run-test.rb CHANGED
@@ -36,8 +36,7 @@ if make
36
36
  system("cd #{base_dir.dump} && #{make} > /dev/null") or exit(false)
37
37
  end
38
38
 
39
- require "rubygems"
40
- gem "test-unit-notify"
39
+ require "test-unit"
41
40
  require "test/unit/notify"
42
41
 
43
42
  Test::Unit::Priority.enable
@@ -58,11 +58,6 @@ class TableSelectTest < Test::Unit::TestCase
58
58
  @result = nil
59
59
  end
60
60
 
61
- teardown
62
- def teardown_expression_close
63
- @result.expression.close if @result # TODO: We want to remove it.
64
- end
65
-
66
61
  def test_sub_expression
67
62
  @result = @comments.select do |record|
68
63
  record.match("Hello", "content") &
data/test/test-type.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2009-2012 Kouhei Sutou <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
@@ -28,7 +28,7 @@ class TypeTest < Test::Unit::TestCase
28
28
  Groonga::Type.new("user id", :type => :integer)
29
29
  end
30
30
  message =
31
- "name can't start with '_' and contains only 0-9, A-Z, a-z, #, - or _"
31
+ "name can't start with '_' and contains only 0-9, A-Z, a-z, #, @, - or _"
32
32
  assert_match(/#{Regexp.escape(message)}/,
33
33
  exception.message)
34
34
  end
data/test/test-version.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2009-2012 Kouhei Sutou <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
@@ -14,18 +14,48 @@
14
14
  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
15
 
16
16
  class VersionTest < Test::Unit::TestCase
17
- def test_build_version
18
- assert_match(/\A\d+\.\d+\.\d+\z/, Groonga.build_version)
19
- assert_match(Groonga.build_version, Groonga::BUILD_VERSION.join("."))
17
+ def test_build_version_format
18
+ assert_equal("X.X.X", normalize(Groonga.build_version))
20
19
  end
21
20
 
22
- def test_version
23
- assert_match(/\A\d+\.\d+\.\d+(?:\.\d+-[a-zA-Z\d]+)?\z/, Groonga.version)
24
- assert_match(Groonga.version, Groonga::VERSION.join("."))
21
+ def test_build_version_value
22
+ assert_equal(Groonga.build_version, Groonga::BUILD_VERSION.join("."))
25
23
  end
26
24
 
27
- def test_bindings_version
28
- assert_match(/\A\d+\.\d+\.\d+\z/, Groonga.bindings_version)
29
- assert_match(Groonga.bindings_version, Groonga::BINDINGS_VERSION.join("."))
25
+ def test_version_format
26
+ if /-/ =~ Groonga.version
27
+ assert_equal("X.X.X-XXX", normalize(Groonga.version))
28
+ else
29
+ assert_equal("X.X.X", normalize(Groonga.version))
30
+ end
31
+ end
32
+
33
+ def test_version_value
34
+ major, minor, micro, tag = Groonga::VERSION
35
+ versions = [major, minor, micro]
36
+ assert_equal(Groonga.version, [versions.join("."), tag].compact.join("-"))
37
+ end
38
+
39
+ def test_bindings_version_format
40
+ assert_equal("X.X.X", normalize(Groonga.bindings_version))
41
+ end
42
+
43
+ def test_bindings_version_value
44
+ assert_equal(Groonga.bindings_version, Groonga::BINDINGS_VERSION.join("."))
45
+ end
46
+
47
+ private
48
+ def normalize(version)
49
+ versions_component, tag_component = version.split(/-/, 2)
50
+ versions = versions_component.split(/\./)
51
+ normalized_versions = versions.collect do |component|
52
+ component.gsub(/\d+/, "X")
53
+ end
54
+ if tag_component
55
+ normalized_tag = "XXX"
56
+ else
57
+ normalized_tag = nil
58
+ end
59
+ [normalized_versions.join("."), normalized_tag].compact.join("-")
30
60
  end
31
61
  end
metadata CHANGED
@@ -1,15 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rroonga
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 3
9
- - 1
10
- version: 1.3.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Kouhei Sutou
14
9
  - Tasuku SUENAGA
15
10
  - daijiro
@@ -18,155 +13,131 @@ authors:
18
13
  autorequire:
19
14
  bindir: bin
20
15
  cert_chain: []
21
-
22
- date: 2012-01-30 00:00:00 Z
23
- dependencies:
24
- - !ruby/object:Gem::Dependency
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
16
+ date: 2012-03-22 00:00:00.000000000 Z
17
+ dependencies:
18
+ - !ruby/object:Gem::Dependency
34
19
  name: pkg-config
35
- prerelease: false
36
- type: :runtime
37
- requirement: *id001
38
- - !ruby/object:Gem::Dependency
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
20
+ requirement: &13014000 !ruby/object:Gem::Requirement
40
21
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
48
- name: json
49
- prerelease: false
22
+ requirements:
23
+ - - ! '>='
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
50
26
  type: :runtime
51
- requirement: *id002
52
- - !ruby/object:Gem::Dependency
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
62
- name: test-unit
63
27
  prerelease: false
64
- type: :development
65
- requirement: *id003
66
- - !ruby/object:Gem::Dependency
67
- version_requirements: &id004 !ruby/object:Gem::Requirement
28
+ version_requirements: *13014000
29
+ - !ruby/object:Gem::Dependency
30
+ name: json
31
+ requirement: &13013080 !ruby/object:Gem::Requirement
68
32
  none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- hash: 3
73
- segments:
74
- - 0
75
- version: "0"
76
- name: test-unit-notify
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ type: :runtime
77
38
  prerelease: false
78
- type: :development
79
- requirement: *id004
80
- - !ruby/object:Gem::Dependency
81
- version_requirements: &id005 !ruby/object:Gem::Requirement
39
+ version_requirements: *13013080
40
+ - !ruby/object:Gem::Dependency
41
+ name: test-unit
42
+ requirement: &13012160 !ruby/object:Gem::Requirement
82
43
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
90
- name: rake
91
- prerelease: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 2.4.6
92
48
  type: :development
93
- requirement: *id005
94
- - !ruby/object:Gem::Dependency
95
- version_requirements: &id006 !ruby/object:Gem::Requirement
96
- none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- hash: 3
101
- segments:
102
- - 0
103
- version: "0"
104
- name: rake-compiler
105
49
  prerelease: false
106
- type: :development
107
- requirement: *id006
108
- - !ruby/object:Gem::Dependency
109
- version_requirements: &id007 !ruby/object:Gem::Requirement
50
+ version_requirements: *13012160
51
+ - !ruby/object:Gem::Dependency
52
+ name: test-unit-notify
53
+ requirement: &13027880 !ruby/object:Gem::Requirement
110
54
  none: false
111
- requirements:
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- hash: 3
115
- segments:
116
- - 0
117
- version: "0"
118
- name: jeweler
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ type: :development
119
60
  prerelease: false
61
+ version_requirements: *13027880
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: &13026400 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
120
70
  type: :development
121
- requirement: *id007
122
- - !ruby/object:Gem::Dependency
123
- version_requirements: &id008 !ruby/object:Gem::Requirement
71
+ prerelease: false
72
+ version_requirements: *13026400
73
+ - !ruby/object:Gem::Dependency
74
+ name: rake-compiler
75
+ requirement: &13025460 !ruby/object:Gem::Requirement
124
76
  none: false
125
- requirements:
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- hash: 3
129
- segments:
130
- - 0
131
- version: "0"
132
- name: yard
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ type: :development
133
82
  prerelease: false
83
+ version_requirements: *13025460
84
+ - !ruby/object:Gem::Dependency
85
+ name: jeweler
86
+ requirement: &13024420 !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
134
92
  type: :development
135
- requirement: *id008
136
- - !ruby/object:Gem::Dependency
137
- version_requirements: &id009 !ruby/object:Gem::Requirement
93
+ prerelease: false
94
+ version_requirements: *13024420
95
+ - !ruby/object:Gem::Dependency
96
+ name: yard
97
+ requirement: &13023020 !ruby/object:Gem::Requirement
138
98
  none: false
139
- requirements:
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- hash: 3
143
- segments:
144
- - 0
145
- version: "0"
146
- name: packnga
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ type: :development
147
104
  prerelease: false
105
+ version_requirements: *13023020
106
+ - !ruby/object:Gem::Dependency
107
+ name: packnga
108
+ requirement: &13022200 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
148
114
  type: :development
149
- requirement: *id009
150
- description: |-
151
- rroonga is an extension library to use groonga's DB-API
115
+ prerelease: false
116
+ version_requirements: *13022200
117
+ description: ! 'rroonga is an extension library to use groonga''s DB-API
118
+
152
119
  layer. rroonga provides Rubyish readable and writable API
153
- not C like API. You can use groonga's fast and highly
154
- functional features from Ruby with Rubyish form.
155
- email:
120
+
121
+ not C like API. You can use groonga''s fast and highly
122
+
123
+ functional features from Ruby with Rubyish form.'
124
+ email:
156
125
  - groonga-users-en@rubyforge.org
157
126
  - groonga-dev@lists.sourceforge.jp
158
- executables:
159
- - grntest-log-analyze
127
+ executables:
160
128
  - grndump
129
+ - grntest-log-analyze
161
130
  - groonga-query-log-extract
162
- extensions:
131
+ extensions:
163
132
  - ext/groonga/extconf.rb
164
- extra_rdoc_files:
133
+ extra_rdoc_files:
165
134
  - README.textile
166
135
  - TODO
167
- files:
136
+ files:
168
137
  - Gemfile
138
+ - README.textile
169
139
  - Rakefile
140
+ - TODO
170
141
  - benchmark/common.rb
171
142
  - benchmark/create-wikipedia-database.rb
172
143
  - benchmark/read-write-many-small-items.rb
@@ -176,52 +147,97 @@ files:
176
147
  - bin/grndump
177
148
  - bin/grntest-log-analyze
178
149
  - bin/groonga-query-log-extract
150
+ - bug.rb
151
+ - crash.rb
179
152
  - example/bookmark.rb
180
153
  - example/index-html.rb
154
+ - ext/groonga/Makefile
181
155
  - ext/groonga/extconf.rb
182
156
  - ext/groonga/groonga.def
157
+ - ext/groonga/groonga.so
183
158
  - ext/groonga/rb-grn-accessor.c
159
+ - ext/groonga/rb-grn-accessor.o
184
160
  - ext/groonga/rb-grn-array-cursor.c
161
+ - ext/groonga/rb-grn-array-cursor.o
185
162
  - ext/groonga/rb-grn-array.c
163
+ - ext/groonga/rb-grn-array.o
186
164
  - ext/groonga/rb-grn-column.c
165
+ - ext/groonga/rb-grn-column.o
187
166
  - ext/groonga/rb-grn-context.c
167
+ - ext/groonga/rb-grn-context.o
188
168
  - ext/groonga/rb-grn-database.c
169
+ - ext/groonga/rb-grn-database.o
189
170
  - ext/groonga/rb-grn-double-array-trie-cursor.c
171
+ - ext/groonga/rb-grn-double-array-trie-cursor.o
190
172
  - ext/groonga/rb-grn-double-array-trie.c
173
+ - ext/groonga/rb-grn-double-array-trie.o
191
174
  - ext/groonga/rb-grn-encoding-support.c
175
+ - ext/groonga/rb-grn-encoding-support.o
192
176
  - ext/groonga/rb-grn-encoding.c
177
+ - ext/groonga/rb-grn-encoding.o
193
178
  - ext/groonga/rb-grn-exception.c
179
+ - ext/groonga/rb-grn-exception.o
194
180
  - ext/groonga/rb-grn-expression-builder.c
181
+ - ext/groonga/rb-grn-expression-builder.o
195
182
  - ext/groonga/rb-grn-expression.c
183
+ - ext/groonga/rb-grn-expression.o
196
184
  - ext/groonga/rb-grn-fix-size-column.c
185
+ - ext/groonga/rb-grn-fix-size-column.o
197
186
  - ext/groonga/rb-grn-hash-cursor.c
187
+ - ext/groonga/rb-grn-hash-cursor.o
198
188
  - ext/groonga/rb-grn-hash.c
189
+ - ext/groonga/rb-grn-hash.o
199
190
  - ext/groonga/rb-grn-index-column.c
191
+ - ext/groonga/rb-grn-index-column.o
200
192
  - ext/groonga/rb-grn-index-cursor.c
193
+ - ext/groonga/rb-grn-index-cursor.o
201
194
  - ext/groonga/rb-grn-logger.c
195
+ - ext/groonga/rb-grn-logger.o
202
196
  - ext/groonga/rb-grn-object.c
197
+ - ext/groonga/rb-grn-object.o
203
198
  - ext/groonga/rb-grn-operator.c
199
+ - ext/groonga/rb-grn-operator.o
204
200
  - ext/groonga/rb-grn-patricia-trie-cursor.c
201
+ - ext/groonga/rb-grn-patricia-trie-cursor.o
205
202
  - ext/groonga/rb-grn-patricia-trie.c
203
+ - ext/groonga/rb-grn-patricia-trie.o
206
204
  - ext/groonga/rb-grn-plugin.c
205
+ - ext/groonga/rb-grn-plugin.o
207
206
  - ext/groonga/rb-grn-posting.c
207
+ - ext/groonga/rb-grn-posting.o
208
208
  - ext/groonga/rb-grn-procedure.c
209
+ - ext/groonga/rb-grn-procedure.o
209
210
  - ext/groonga/rb-grn-record.c
211
+ - ext/groonga/rb-grn-record.o
210
212
  - ext/groonga/rb-grn-snippet.c
213
+ - ext/groonga/rb-grn-snippet.o
211
214
  - ext/groonga/rb-grn-table-cursor-key-support.c
215
+ - ext/groonga/rb-grn-table-cursor-key-support.o
212
216
  - ext/groonga/rb-grn-table-cursor.c
217
+ - ext/groonga/rb-grn-table-cursor.o
213
218
  - ext/groonga/rb-grn-table-key-support.c
219
+ - ext/groonga/rb-grn-table-key-support.o
214
220
  - ext/groonga/rb-grn-table.c
221
+ - ext/groonga/rb-grn-table.o
215
222
  - ext/groonga/rb-grn-type.c
223
+ - ext/groonga/rb-grn-type.o
216
224
  - ext/groonga/rb-grn-utils.c
225
+ - ext/groonga/rb-grn-utils.o
217
226
  - ext/groonga/rb-grn-variable-size-column.c
227
+ - ext/groonga/rb-grn-variable-size-column.o
218
228
  - ext/groonga/rb-grn-variable.c
229
+ - ext/groonga/rb-grn-variable.o
219
230
  - ext/groonga/rb-grn-view-accessor.c
231
+ - ext/groonga/rb-grn-view-accessor.o
220
232
  - ext/groonga/rb-grn-view-cursor.c
233
+ - ext/groonga/rb-grn-view-cursor.o
221
234
  - ext/groonga/rb-grn-view-record.c
235
+ - ext/groonga/rb-grn-view-record.o
222
236
  - ext/groonga/rb-grn-view.c
237
+ - ext/groonga/rb-grn-view.o
223
238
  - ext/groonga/rb-grn.h
224
239
  - ext/groonga/rb-groonga.c
240
+ - ext/groonga/rb-groonga.o
225
241
  - extconf.rb
226
242
  - lib/groonga.rb
227
243
  - lib/groonga/command.rb
@@ -239,89 +255,80 @@ files:
239
255
  - lib/groonga/view-record.rb
240
256
  - misc/grnop2ruby.rb
241
257
  - rroonga-build.rb
242
- - README.textile
243
- - TODO
244
- - test/test-schema.rb
245
- - test/test-vector-column.rb
246
- - test/test-schema-dumper.rb
247
- - test/run-test.rb
248
- - test/test-table-cursor.rb
249
- - test/test-procedure.rb
250
- - test/test-hash.rb
251
- - test/test-expression.rb
252
- - test/test-version.rb
253
- - test/test-remote.rb
254
- - test/test-table-offset-and-limit.rb
255
- - test/test-expression-builder.rb
256
- - test/test-encoding.rb
257
- - test/test-snippet.rb
258
- - test/test-index-cursor.rb
259
- - test/test-type.rb
260
- - test/test-table-dumper.rb
261
- - test/test-table.rb
262
- - test/test-pagination.rb
263
258
  - test/groonga-test-utils.rb
264
- - test/test-logger.rb
259
+ - test/run-test.rb
260
+ - test/test-accessor.rb
261
+ - test/test-array.rb
262
+ - test/test-column.rb
263
+ - test/test-command-select.rb
265
264
  - test/test-context.rb
266
- - test/test-table-select-weight.rb
265
+ - test/test-database-dumper.rb
266
+ - test/test-database.rb
267
+ - test/test-double-array-trie.rb
268
+ - test/test-encoding.rb
267
269
  - test/test-exception.rb
268
- - test/test-table-select-normalize.rb
269
- - test/test-command-select.rb
270
+ - test/test-expression-builder.rb
271
+ - test/test-expression.rb
272
+ - test/test-fix-size-column.rb
270
273
  - test/test-gqtp.rb
271
- - test/test-database-dumper.rb
274
+ - test/test-hash.rb
272
275
  - test/test-index-column.rb
276
+ - test/test-index-cursor.rb
277
+ - test/test-logger.rb
278
+ - test/test-pagination.rb
279
+ - test/test-patricia-trie.rb
273
280
  - test/test-plugin.rb
281
+ - test/test-procedure.rb
274
282
  - test/test-query-log.rb
275
- - test/test-variable-size-column.rb
283
+ - test/test-record.rb
284
+ - test/test-remote.rb
276
285
  - test/test-schema-create-table.rb
277
- - test/test-array.rb
278
- - test/test-fix-size-column.rb
286
+ - test/test-schema-dumper.rb
279
287
  - test/test-schema-type.rb
280
- - test/test-table-select.rb
281
288
  - test/test-schema-view.rb
282
- - test/test-view.rb
283
- - test/test-variable.rb
284
- - test/test-column.rb
285
- - test/test-patricia-trie.rb
289
+ - test/test-schema.rb
290
+ - test/test-snippet.rb
291
+ - test/test-table-cursor.rb
292
+ - test/test-table-dumper.rb
293
+ - test/test-table-offset-and-limit.rb
286
294
  - test/test-table-select-mecab.rb
287
- - test/test-accessor.rb
288
- - test/test-database.rb
289
- - test/test-double-array-trie.rb
290
- - test/test-record.rb
295
+ - test/test-table-select-normalize.rb
296
+ - test/test-table-select-weight.rb
297
+ - test/test-table-select.rb
298
+ - test/test-table.rb
299
+ - test/test-type.rb
300
+ - test/test-variable-size-column.rb
301
+ - test/test-variable.rb
302
+ - test/test-vector-column.rb
303
+ - test/test-version.rb
304
+ - test/test-view.rb
291
305
  homepage: http://groonga.rubyforge.org/
292
- licenses:
306
+ licenses:
293
307
  - LGPLv2
294
308
  post_install_message:
295
309
  rdoc_options: []
296
-
297
- require_paths:
310
+ require_paths:
298
311
  - lib
299
- required_ruby_version: !ruby/object:Gem::Requirement
312
+ required_ruby_version: !ruby/object:Gem::Requirement
300
313
  none: false
301
- requirements:
302
- - - ">="
303
- - !ruby/object:Gem::Version
304
- hash: 3
305
- segments:
306
- - 0
307
- version: "0"
308
- required_rubygems_version: !ruby/object:Gem::Requirement
314
+ requirements:
315
+ - - ! '>='
316
+ - !ruby/object:Gem::Version
317
+ version: '0'
318
+ required_rubygems_version: !ruby/object:Gem::Requirement
309
319
  none: false
310
- requirements:
311
- - - ">="
312
- - !ruby/object:Gem::Version
313
- hash: 3
314
- segments:
315
- - 0
316
- version: "0"
320
+ requirements:
321
+ - - ! '>='
322
+ - !ruby/object:Gem::Version
323
+ version: '0'
317
324
  requirements: []
318
-
319
325
  rubyforge_project: groonga
320
- rubygems_version: 1.8.15
326
+ rubygems_version: 1.8.11
321
327
  signing_key:
322
328
  specification_version: 3
323
- summary: Ruby bindings for groonga that provide full text search and column store features.
324
- test_files:
329
+ summary: Ruby bindings for groonga that provide full text search and column store
330
+ features.
331
+ test_files:
325
332
  - test/test-schema.rb
326
333
  - test/test-vector-column.rb
327
334
  - test/test-schema-dumper.rb