rroonga 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/NEWS.ja.rdoc +47 -0
  2. data/NEWS.rdoc +48 -0
  3. data/README.ja.rdoc +1 -0
  4. data/README.rdoc +1 -0
  5. data/Rakefile +32 -13
  6. data/benchmark/create-wikipedia-database.rb +212 -0
  7. data/benchmark/repeat-load.rb +213 -0
  8. data/benchmark/select.rb +1052 -0
  9. data/ext/groonga/mkmf.log +99 -0
  10. data/ext/groonga/rb-grn-column.c +57 -6
  11. data/ext/groonga/rb-grn-context.c +15 -9
  12. data/ext/groonga/rb-grn-expression.c +7 -7
  13. data/ext/groonga/{rb-grn-operation.c → rb-grn-operator.c} +89 -87
  14. data/ext/groonga/rb-grn-patricia-trie.c +5 -5
  15. data/ext/groonga/rb-grn-query.c +4 -4
  16. data/ext/groonga/rb-grn-table.c +16 -19
  17. data/ext/groonga/rb-grn.h +3 -3
  18. data/ext/groonga/rb-groonga.c +1 -1
  19. data/html/index.html +4 -4
  20. data/lib/groonga/context.rb +34 -0
  21. data/lib/groonga/expression-builder.rb +34 -2
  22. data/lib/groonga/record.rb +8 -6
  23. data/lib/groonga/schema.rb +40 -4
  24. data/rroonga-build.rb +2 -2
  25. data/test-unit/Rakefile +5 -18
  26. data/test-unit/html/classic.html +15 -0
  27. data/test-unit/html/index.html +13 -235
  28. data/test-unit/html/index.html.ja +15 -258
  29. data/test-unit/lib/test/unit.rb +1 -6
  30. data/test-unit/lib/test/unit/assertions.rb +11 -115
  31. data/test-unit/lib/test/unit/autorunner.rb +2 -5
  32. data/test-unit/lib/test/unit/collector/load.rb +1 -1
  33. data/test-unit/lib/test/unit/color-scheme.rb +2 -6
  34. data/test-unit/lib/test/unit/diff.rb +1 -17
  35. data/test-unit/lib/test/unit/testcase.rb +0 -7
  36. data/test-unit/lib/test/unit/testresult.rb +2 -34
  37. data/test-unit/lib/test/unit/ui/console/testrunner.rb +45 -9
  38. data/test-unit/lib/test/unit/ui/tap/testrunner.rb +12 -2
  39. data/test-unit/lib/test/unit/ui/testrunner.rb +0 -25
  40. data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -1
  41. data/test-unit/lib/test/unit/version.rb +1 -1
  42. data/test-unit/test/test-color-scheme.rb +2 -4
  43. data/test-unit/test/test_assertions.rb +5 -51
  44. data/test/test-column.rb +31 -1
  45. data/test/test-context-select.rb +45 -14
  46. data/test/test-context.rb +36 -0
  47. data/test/test-database.rb +13 -0
  48. data/test/test-expression-builder.rb +32 -5
  49. data/test/test-record.rb +34 -1
  50. data/test/test-schema.rb +52 -2
  51. data/test/test-table-select-weight.rb +20 -1
  52. data/test/test-table.rb +58 -0
  53. metadata +13 -41
  54. data/test-unit-notify/Rakefile +0 -47
  55. data/test-unit-notify/lib/test/unit/notify.rb +0 -104
  56. data/test-unit/COPYING +0 -56
  57. data/test-unit/GPL +0 -340
  58. data/test-unit/PSFL +0 -271
  59. data/test-unit/html/bar.svg +0 -153
  60. data/test-unit/html/developer.svg +0 -469
  61. data/test-unit/html/favicon.ico +0 -0
  62. data/test-unit/html/favicon.svg +0 -82
  63. data/test-unit/html/heading-mark.svg +0 -393
  64. data/test-unit/html/install.svg +0 -636
  65. data/test-unit/html/logo.svg +0 -483
  66. data/test-unit/html/test-unit.css +0 -339
  67. data/test-unit/html/tutorial.svg +0 -559
  68. data/test-unit/lib/test/unit/util/output.rb +0 -31
  69. data/test-unit/test/ui/test_tap.rb +0 -33
  70. data/test-unit/test/util/test-output.rb +0 -11
@@ -1,483 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
- <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns:svg="http://www.w3.org/2000/svg"
9
- xmlns="http://www.w3.org/2000/svg"
10
- xmlns:xlink="http://www.w3.org/1999/xlink"
11
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
13
- width="170"
14
- height="65"
15
- id="svg2"
16
- version="1.1"
17
- inkscape:version="0.47 r22583"
18
- sodipodi:docname="logo.svg"
19
- inkscape:export-filename="/home/kou/work/ruby/test-unit/html/logo.png"
20
- inkscape:export-xdpi="90"
21
- inkscape:export-ydpi="90">
22
- <defs
23
- id="defs4">
24
- <inkscape:perspective
25
- sodipodi:type="inkscape:persp3d"
26
- inkscape:vp_x="0 : 526.18109 : 1"
27
- inkscape:vp_y="0 : 1000 : 0"
28
- inkscape:vp_z="744.09448 : 526.18109 : 1"
29
- inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
30
- id="perspective10" />
31
- <inkscape:perspective
32
- id="perspective2845"
33
- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
34
- inkscape:vp_z="1 : 0.5 : 1"
35
- inkscape:vp_y="0 : 1000 : 0"
36
- inkscape:vp_x="0 : 0.5 : 1"
37
- sodipodi:type="inkscape:persp3d" />
38
- <inkscape:perspective
39
- id="perspective2859"
40
- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
41
- inkscape:vp_z="1 : 0.5 : 1"
42
- inkscape:vp_y="0 : 1000 : 0"
43
- inkscape:vp_x="0 : 0.5 : 1"
44
- sodipodi:type="inkscape:persp3d" />
45
- <linearGradient
46
- gradientUnits="userSpaceOnUse"
47
- y2="24.842253"
48
- x2="37.124462"
49
- y1="30.748846"
50
- x1="32.647972"
51
- id="linearGradient2696"
52
- xlink:href="#linearGradient2690"
53
- inkscape:collect="always" />
54
- <linearGradient
55
- gradientUnits="userSpaceOnUse"
56
- y2="24.842253"
57
- x2="37.124462"
58
- y1="31.455952"
59
- x1="36.713837"
60
- id="linearGradient2688"
61
- xlink:href="#linearGradient2682"
62
- inkscape:collect="always" />
63
- <linearGradient
64
- gradientUnits="userSpaceOnUse"
65
- y2="26.649363"
66
- x2="53.588623"
67
- y1="23.667896"
68
- x1="18.935766"
69
- id="linearGradient2408"
70
- xlink:href="#linearGradient2402"
71
- inkscape:collect="always" />
72
- <linearGradient
73
- gradientUnits="userSpaceOnUse"
74
- y2="20.60858"
75
- x2="15.984863"
76
- y1="36.061237"
77
- x1="62.513836"
78
- id="linearGradient2386"
79
- xlink:href="#linearGradient2380"
80
- inkscape:collect="always" />
81
- <radialGradient
82
- r="15.644737"
83
- fy="36.421127"
84
- fx="24.837126"
85
- cy="36.421127"
86
- cx="24.837126"
87
- gradientTransform="matrix(1,0,0,0.536723,0,16.87306)"
88
- gradientUnits="userSpaceOnUse"
89
- id="radialGradient1503"
90
- xlink:href="#linearGradient8662"
91
- inkscape:collect="always" />
92
- <linearGradient
93
- y2="50.939667"
94
- x2="45.380436"
95
- y1="45.264122"
96
- x1="46.834816"
97
- gradientUnits="userSpaceOnUse"
98
- id="linearGradient1501"
99
- xlink:href="#linearGradient2871"
100
- inkscape:collect="always" />
101
- <linearGradient
102
- y2="26.048164"
103
- x2="52.854095"
104
- y1="26.048164"
105
- x1="5.9649177"
106
- gradientUnits="userSpaceOnUse"
107
- id="linearGradient1493"
108
- xlink:href="#linearGradient2797"
109
- inkscape:collect="always" />
110
- <linearGradient
111
- y2="26.048164"
112
- x2="52.854095"
113
- y1="26.048164"
114
- x1="5.9649177"
115
- gradientUnits="userSpaceOnUse"
116
- id="linearGradient1491"
117
- xlink:href="#linearGradient2797"
118
- inkscape:collect="always" />
119
- <linearGradient
120
- y2="26.194071"
121
- x2="37.065414"
122
- y1="29.729605"
123
- x1="37.128052"
124
- gradientTransform="matrix(-1,0,0,-1,47.52791,45.84741)"
125
- gradientUnits="userSpaceOnUse"
126
- id="linearGradient1488"
127
- xlink:href="#linearGradient2847"
128
- inkscape:collect="always" />
129
- <linearGradient
130
- y2="19.115122"
131
- x2="15.419417"
132
- y1="10.612206"
133
- x1="13.478554"
134
- gradientTransform="translate(0.465413,-0.277593)"
135
- gradientUnits="userSpaceOnUse"
136
- id="linearGradient1486"
137
- xlink:href="#linearGradient2831"
138
- inkscape:collect="always" />
139
- <linearGradient
140
- id="linearGradient8662"
141
- inkscape:collect="always">
142
- <stop
143
- id="stop8664"
144
- offset="0"
145
- style="stop-color:#000000;stop-opacity:1;" />
146
- <stop
147
- id="stop8666"
148
- offset="1"
149
- style="stop-color:#000000;stop-opacity:0;" />
150
- </linearGradient>
151
- <linearGradient
152
- id="linearGradient2797"
153
- inkscape:collect="always">
154
- <stop
155
- id="stop2799"
156
- offset="0"
157
- style="stop-color:#ffffff;stop-opacity:1;" />
158
- <stop
159
- id="stop2801"
160
- offset="1"
161
- style="stop-color:#ffffff;stop-opacity:0;" />
162
- </linearGradient>
163
- <linearGradient
164
- id="linearGradient2831">
165
- <stop
166
- id="stop2833"
167
- offset="0"
168
- style="stop-color:#3465a4;stop-opacity:1;" />
169
- <stop
170
- style="stop-color:#5b86be;stop-opacity:1;"
171
- offset="0.33333334"
172
- id="stop2855" />
173
- <stop
174
- id="stop2835"
175
- offset="1"
176
- style="stop-color:#83a8d8;stop-opacity:0;" />
177
- </linearGradient>
178
- <linearGradient
179
- id="linearGradient2847"
180
- inkscape:collect="always">
181
- <stop
182
- id="stop2849"
183
- offset="0"
184
- style="stop-color:#3465a4;stop-opacity:1;" />
185
- <stop
186
- id="stop2851"
187
- offset="1"
188
- style="stop-color:#3465a4;stop-opacity:0;" />
189
- </linearGradient>
190
- <linearGradient
191
- id="linearGradient2871"
192
- inkscape:collect="always">
193
- <stop
194
- id="stop2873"
195
- offset="0"
196
- style="stop-color:#3465a4;stop-opacity:1;" />
197
- <stop
198
- id="stop2875"
199
- offset="1"
200
- style="stop-color:#3465a4;stop-opacity:1" />
201
- </linearGradient>
202
- <linearGradient
203
- id="linearGradient2380">
204
- <stop
205
- id="stop2382"
206
- offset="0"
207
- style="stop-color:#b9cfe7;stop-opacity:1" />
208
- <stop
209
- id="stop2384"
210
- offset="1"
211
- style="stop-color:#729fcf;stop-opacity:1" />
212
- </linearGradient>
213
- <linearGradient
214
- id="linearGradient2402">
215
- <stop
216
- id="stop2404"
217
- offset="0"
218
- style="stop-color:#729fcf;stop-opacity:1;" />
219
- <stop
220
- id="stop2406"
221
- offset="1"
222
- style="stop-color:#528ac5;stop-opacity:1;" />
223
- </linearGradient>
224
- <linearGradient
225
- id="linearGradient2682">
226
- <stop
227
- id="stop2684"
228
- offset="0"
229
- style="stop-color:#3977c3;stop-opacity:1;" />
230
- <stop
231
- id="stop2686"
232
- offset="1"
233
- style="stop-color:#89aedc;stop-opacity:0;" />
234
- </linearGradient>
235
- <linearGradient
236
- id="linearGradient2690"
237
- inkscape:collect="always">
238
- <stop
239
- id="stop2692"
240
- offset="0"
241
- style="stop-color:#c4d7eb;stop-opacity:1;" />
242
- <stop
243
- id="stop2694"
244
- offset="1"
245
- style="stop-color:#c4d7eb;stop-opacity:0;" />
246
- </linearGradient>
247
- <inkscape:perspective
248
- id="perspective58"
249
- inkscape:persp3d-origin="24 : 16 : 1"
250
- inkscape:vp_z="48 : 24 : 1"
251
- inkscape:vp_y="0 : 1000 : 0"
252
- inkscape:vp_x="0 : 24 : 1"
253
- sodipodi:type="inkscape:persp3d" />
254
- <linearGradient
255
- inkscape:collect="always"
256
- xlink:href="#linearGradient2380"
257
- id="linearGradient2979"
258
- gradientUnits="userSpaceOnUse"
259
- x1="62.513836"
260
- y1="36.061237"
261
- x2="15.984863"
262
- y2="20.60858" />
263
- <linearGradient
264
- inkscape:collect="always"
265
- xlink:href="#linearGradient2871"
266
- id="linearGradient2981"
267
- gradientUnits="userSpaceOnUse"
268
- x1="46.834816"
269
- y1="45.264122"
270
- x2="45.380436"
271
- y2="50.939667" />
272
- <linearGradient
273
- inkscape:collect="always"
274
- xlink:href="#linearGradient2402"
275
- id="linearGradient2983"
276
- gradientUnits="userSpaceOnUse"
277
- x1="18.935766"
278
- y1="23.667896"
279
- x2="53.588623"
280
- y2="26.649363" />
281
- <linearGradient
282
- inkscape:collect="always"
283
- xlink:href="#linearGradient2871"
284
- id="linearGradient2985"
285
- gradientUnits="userSpaceOnUse"
286
- x1="46.834816"
287
- y1="45.264122"
288
- x2="45.380436"
289
- y2="50.939667" />
290
- <radialGradient
291
- r="20.530962"
292
- fy="35.87817"
293
- fx="24.44569"
294
- cy="35.87817"
295
- cx="24.44569"
296
- gradientTransform="matrix(1.995058,0,0,1.995058,-24.32488,-35.70087)"
297
- gradientUnits="userSpaceOnUse"
298
- id="radialGradient1366"
299
- xlink:href="#linearGradient11520"
300
- inkscape:collect="always" />
301
- <radialGradient
302
- r="6.5659914"
303
- fy="44.565483"
304
- fx="30.203562"
305
- cy="44.565483"
306
- cx="30.203562"
307
- gradientTransform="matrix(1,0,0,0.338462,0,29.48178)"
308
- gradientUnits="userSpaceOnUse"
309
- id="radialGradient1348"
310
- xlink:href="#linearGradient11508"
311
- inkscape:collect="always" />
312
- <linearGradient
313
- inkscape:collect="always"
314
- id="linearGradient11508">
315
- <stop
316
- style="stop-color:#000000;stop-opacity:1;"
317
- offset="0"
318
- id="stop11510" />
319
- <stop
320
- style="stop-color:#000000;stop-opacity:0;"
321
- offset="1"
322
- id="stop11512" />
323
- </linearGradient>
324
- <linearGradient
325
- id="linearGradient11520">
326
- <stop
327
- style="stop-color:#ffffff;stop-opacity:1.0000000;"
328
- offset="0.0000000"
329
- id="stop11522" />
330
- <stop
331
- style="stop-color:#dcdcdc;stop-opacity:1.0000000;"
332
- offset="1.0000000"
333
- id="stop11524" />
334
- </linearGradient>
335
- <linearGradient
336
- y2="609.50507"
337
- x2="302.85715"
338
- y1="366.64789"
339
- x1="302.85715"
340
- gradientTransform="matrix(2.774389,0,0,1.969706,-1892.179,-872.8854)"
341
- gradientUnits="userSpaceOnUse"
342
- id="linearGradient6715"
343
- xlink:href="#linearGradient5048"
344
- inkscape:collect="always" />
345
- <linearGradient
346
- id="linearGradient5048">
347
- <stop
348
- id="stop5050"
349
- offset="0"
350
- style="stop-color:black;stop-opacity:0;" />
351
- <stop
352
- style="stop-color:black;stop-opacity:1;"
353
- offset="0.5"
354
- id="stop5056" />
355
- <stop
356
- id="stop5052"
357
- offset="1"
358
- style="stop-color:black;stop-opacity:0;" />
359
- </linearGradient>
360
- <radialGradient
361
- r="117.14286"
362
- fy="486.64789"
363
- fx="605.71429"
364
- cy="486.64789"
365
- cx="605.71429"
366
- gradientTransform="matrix(2.774389,0,0,1.969706,-1891.633,-872.8854)"
367
- gradientUnits="userSpaceOnUse"
368
- id="radialGradient6717"
369
- xlink:href="#linearGradient5060"
370
- inkscape:collect="always" />
371
- <linearGradient
372
- id="linearGradient5060"
373
- inkscape:collect="always">
374
- <stop
375
- id="stop5062"
376
- offset="0"
377
- style="stop-color:black;stop-opacity:1;" />
378
- <stop
379
- id="stop5064"
380
- offset="1"
381
- style="stop-color:black;stop-opacity:0;" />
382
- </linearGradient>
383
- <radialGradient
384
- r="117.14286"
385
- fy="486.64789"
386
- fx="605.71429"
387
- cy="486.64789"
388
- cx="605.71429"
389
- gradientTransform="matrix(-2.774389,0,0,1.969706,112.7623,-872.8854)"
390
- gradientUnits="userSpaceOnUse"
391
- id="radialGradient6719"
392
- xlink:href="#linearGradient5060"
393
- inkscape:collect="always" />
394
- <inkscape:perspective
395
- id="perspective32"
396
- inkscape:persp3d-origin="24 : 16 : 1"
397
- inkscape:vp_z="48 : 24 : 1"
398
- inkscape:vp_y="0 : 1000 : 0"
399
- inkscape:vp_x="0 : 24 : 1"
400
- sodipodi:type="inkscape:persp3d" />
401
- </defs>
402
- <sodipodi:namedview
403
- id="base"
404
- pagecolor="#ffffff"
405
- bordercolor="#666666"
406
- borderopacity="1.0"
407
- inkscape:pageopacity="0.0"
408
- inkscape:pageshadow="2"
409
- inkscape:zoom="0.98994949"
410
- inkscape:cx="78.012854"
411
- inkscape:cy="37.131513"
412
- inkscape:document-units="px"
413
- inkscape:current-layer="layer1"
414
- showgrid="false"
415
- inkscape:window-width="963"
416
- inkscape:window-height="691"
417
- inkscape:window-x="522"
418
- inkscape:window-y="339"
419
- inkscape:window-maximized="0" />
420
- <metadata
421
- id="metadata7">
422
- <rdf:RDF>
423
- <cc:Work
424
- rdf:about="">
425
- <dc:format>image/svg+xml</dc:format>
426
- <dc:type
427
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
428
- <dc:title></dc:title>
429
- </cc:Work>
430
- </rdf:RDF>
431
- </metadata>
432
- <g
433
- inkscape:label="レイヤー 1"
434
- inkscape:groupmode="layer"
435
- id="layer1"
436
- transform="translate(-159.84096,-231.72985)">
437
- <text
438
- xml:space="preserve"
439
- style="font-size:40px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Penguin Attack;-inkscape-font-specification:Penguin Attack"
440
- x="161.42857"
441
- y="263.79077"
442
- id="text2865"
443
- sodipodi:linespacing="100%"><tspan
444
- sodipodi:role="line"
445
- id="tspan2867"
446
- x="161.42857"
447
- y="263.79077">Test::Unit</tspan></text>
448
- <image
449
- y="264.43433"
450
- x="297.67633"
451
- id="image2847"
452
- height="30.352503"
453
- width="30.352503"
454
- xlink:href="file:///home/kou/work/ruby/test-unit/html/kinotan-pass.png" />
455
- <image
456
- y="264.94879"
457
- x="245.87198"
458
- id="image2861"
459
- height="30.352503"
460
- width="30.352503"
461
- xlink:href="file:///home/kou/work/ruby/test-unit/html/kinotan-failure.png" />
462
- <g
463
- inkscape:label="Layer 1"
464
- id="layer1-2"
465
- transform="matrix(0.55737679,0,0,0.55737679,277.13781,260.67373)">
466
- <path
467
- style="opacity:0.69886361;color:#000000;fill:#888a85;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9999997;marker:none;visibility:visible;display:block;overflow:visible"
468
- d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 l 4.910045,-4.733267 c 0,0 0.01958,14.753833 0.01958,14.753833 L 22.160136,31.97807 c 0,0 4.837612,-4.837613 4.837612,-4.837613 -8.469163,-8.876235 -13.706049,-1.909961 -15.497708,4.296045 z"
469
- id="path2177"
470
- sodipodi:nodetypes="ccccccc" />
471
- </g>
472
- <g
473
- transform="matrix(-0.55737679,0,0,-0.55737679,297.50595,297.68924)"
474
- id="g3209"
475
- inkscape:label="Layer 1">
476
- <path
477
- sodipodi:nodetypes="ccccccc"
478
- id="path3211"
479
- d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 l 4.910045,-4.733267 c 0,0 0.01958,14.753833 0.01958,14.753833 L 22.160136,31.97807 c 0,0 4.837612,-4.837613 4.837612,-4.837613 -8.469163,-8.876235 -13.706049,-1.909961 -15.497708,4.296045 z"
480
- style="opacity:0.69886361;color:#000000;fill:#888a85;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9999997;marker:none;visibility:visible;display:block;overflow:visible" />
481
- </g>
482
- </g>
483
- </svg>