rroonga 1.0.1-x86-mingw32 → 1.1.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.ja.rdoc +146 -0
- data/NEWS.rdoc +146 -0
- data/README.ja.rdoc +7 -5
- data/README.rdoc +6 -5
- data/Rakefile +170 -18
- data/benchmark/create-wikipedia-database.rb +212 -0
- data/benchmark/read-write-many-small-items.rb +0 -0
- data/benchmark/repeat-load.rb +213 -0
- data/benchmark/select.rb +1052 -0
- data/benchmark/write-many-small-items.rb +0 -0
- data/example/bookmark.rb +94 -91
- data/example/index-html.rb +0 -0
- data/ext/groonga/extconf.rb +6 -6
- data/ext/groonga/rb-grn-accessor.c +1 -1
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-column.c +201 -10
- data/ext/groonga/rb-grn-context.c +119 -20
- data/ext/groonga/rb-grn-database.c +27 -4
- data/ext/groonga/rb-grn-exception.c +15 -0
- data/ext/groonga/rb-grn-expression.c +14 -10
- data/ext/groonga/rb-grn-hash.c +4 -4
- data/ext/groonga/rb-grn-index-column.c +10 -6
- data/ext/groonga/rb-grn-logger.c +2 -2
- data/ext/groonga/rb-grn-object.c +33 -29
- data/ext/groonga/{rb-grn-operation.c → rb-grn-operator.c} +89 -87
- data/ext/groonga/rb-grn-patricia-trie.c +12 -12
- data/ext/groonga/rb-grn-plugin.c +134 -0
- data/ext/groonga/rb-grn-procedure.c +1 -1
- data/ext/groonga/rb-grn-query.c +7 -7
- data/ext/groonga/rb-grn-snippet.c +4 -3
- data/ext/groonga/rb-grn-table-cursor.c +1 -1
- data/ext/groonga/rb-grn-table-key-support.c +27 -24
- data/ext/groonga/rb-grn-table.c +119 -58
- data/ext/groonga/rb-grn-type.c +1 -1
- data/ext/groonga/rb-grn-utils.c +20 -19
- data/ext/groonga/rb-grn-variable.c +1 -1
- data/ext/groonga/rb-grn-view-accessor.c +1 -1
- data/ext/groonga/rb-grn-view.c +1 -1
- data/ext/groonga/rb-grn.h +26 -20
- data/ext/groonga/rb-groonga.c +6 -4
- data/extconf.rb +10 -4
- data/html/developer.html +8 -2
- data/html/favicon.ico +0 -0
- data/html/favicon.svg +591 -0
- data/html/index.html +78 -12
- data/html/logo.svg +612 -0
- data/html/ranguba.css +92 -7
- data/html/readme.svg +256 -0
- data/lib/groonga.so +0 -0
- data/lib/groonga/context.rb +52 -1
- data/lib/groonga/expression-builder.rb +42 -6
- data/lib/groonga/record.rb +84 -15
- data/lib/groonga/schema.rb +524 -122
- data/pkg/rroonga-1.1.0-x86-mingw32/NEWS.ja.rdoc +326 -0
- data/pkg/rroonga-1.1.0-x86-mingw32/NEWS.rdoc +328 -0
- data/pkg/rroonga-1.1.0-x86-mingw32/README.ja.rdoc +68 -0
- data/pkg/rroonga-1.1.0-x86-mingw32/README.rdoc +68 -0
- data/pkg/rroonga-1.1.0-x86-mingw32/text/expression.rdoc +285 -0
- data/{text/TUTORIAL.ja.rdoc → pkg/rroonga-1.1.0-x86-mingw32/text/tutorial.ja.rdoc} +165 -126
- data/pkg/rroonga-1.1.0/NEWS.ja.rdoc +326 -0
- data/pkg/rroonga-1.1.0/NEWS.rdoc +328 -0
- data/pkg/rroonga-1.1.0/README.ja.rdoc +68 -0
- data/pkg/rroonga-1.1.0/README.rdoc +68 -0
- data/pkg/rroonga-1.1.0/text/expression.rdoc +285 -0
- data/pkg/rroonga-1.1.0/text/tutorial.ja.rdoc +433 -0
- data/rroonga-build.rb +3 -3
- data/test/run-test.rb +1 -1
- data/test/test-array.rb +4 -0
- data/test/test-column.rb +31 -1
- data/test/test-context-select.rb +45 -14
- data/test/test-context.rb +44 -0
- data/test/test-database.rb +21 -1
- data/test/test-expression-builder.rb +46 -5
- data/test/test-fix-size-column.rb +12 -0
- data/test/test-hash.rb +10 -4
- data/test/test-index-column.rb +33 -0
- data/test/test-patricia-trie.rb +6 -0
- data/test/test-plugin.rb +29 -0
- data/test/test-record.rb +84 -1
- data/test/test-remote.rb +3 -2
- data/test/test-schema-create-table.rb +32 -2
- data/test/test-schema-type.rb +167 -0
- data/test/test-schema.rb +159 -12
- data/test/test-table-select-weight.rb +20 -1
- data/test/test-table-select.rb +12 -0
- data/test/test-table.rb +65 -0
- data/test/test-variable-size-column.rb +12 -0
- data/text/tutorial.ja.rdoc +433 -0
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/etc/groonga/init.d/redhat/groonga +1 -9
- data/vendor/local/include/groonga/groonga.h +156 -6
- data/vendor/local/include/groonga/groonga/plugin.h +44 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/{modules → plugins}/suggest/suggest.la +2 -2
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -2
- data/vendor/local/share/groonga/examples/dictionary/edict/edict_import.sh +14 -3
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro_import.sh +3 -1
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene_import.sh +19 -3
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_load +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_time +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_disk +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_memory +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_n_records +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_query_performance +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_status +0 -0
- metadata +91 -341
- data/html/favicon.xcf +0 -0
- data/html/logo.xcf +0 -0
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/license/GPL +0 -340
- data/license/RUBY +0 -59
- data/vendor/local/lib/groonga/modules/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/modules/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/modules/suggest/suggest.dll.a +0 -0
- data/vendor/local/share/groonga/doc/ja/html/.buildinfo +0 -4
- data/vendor/local/share/groonga/doc/ja/html/_sources/characteristic.txt +0 -56
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/cache_limit.txt +0 -52
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/check.txt +0 -164
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/clearlock.txt +0 -61
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_create.txt +0 -93
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_list.txt +0 -97
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_remove.txt +0 -58
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/define_selector.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/defrag.txt +0 -57
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/delete.txt +0 -68
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/dump.txt +0 -62
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/load.txt +0 -98
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_level.txt +0 -65
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_put.txt +0 -69
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_reopen.txt +0 -66
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/quit.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/select.txt +0 -247
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/shutdown.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/status.txt +0 -59
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/suggest.txt +0 -79
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_create.txt +0 -111
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_list.txt +0 -87
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_remove.txt +0 -50
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/view_add.txt +0 -53
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/add.txt +0 -102
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/get.txt +0 -78
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/set.txt +0 -103
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/com.txt +0 -18
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/document.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/query.txt +0 -212
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/test.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/html/_sources/execfile.txt +0 -226
- data/vendor/local/share/groonga/doc/ja/html/_sources/expr.txt +0 -43
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/edit_distance.txt +0 -48
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_distance.txt +0 -51
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_circle.txt +0 -54
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_rectangle.txt +0 -55
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/now.txt +0 -34
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/rand.txt +0 -41
- data/vendor/local/share/groonga/doc/ja/html/_sources/grnslap.txt +0 -64
- data/vendor/local/share/groonga/doc/ja/html/_sources/grntest.txt +0 -259
- data/vendor/local/share/groonga/doc/ja/html/_sources/http.txt +0 -52
- data/vendor/local/share/groonga/doc/ja/html/_sources/index.txt +0 -21
- data/vendor/local/share/groonga/doc/ja/html/_sources/install.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/html/_sources/news.txt +0 -199
- data/vendor/local/share/groonga/doc/ja/html/_sources/process.txt +0 -12
- data/vendor/local/share/groonga/doc/ja/html/_sources/pseudo_column.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/html/_sources/reference.txt +0 -14
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial01.txt +0 -293
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial02.txt +0 -100
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial03.txt +0 -72
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial04.txt +0 -111
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial05.txt +0 -65
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial06.txt +0 -91
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial07.txt +0 -92
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial08.txt +0 -53
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial09.txt +0 -9
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial10.txt +0 -486
- data/vendor/local/share/groonga/doc/ja/html/_sources/type.txt +0 -118
- data/vendor/local/share/groonga/doc/ja/html/_static/basic.css +0 -509
- data/vendor/local/share/groonga/doc/ja/html/_static/default.css +0 -277
- data/vendor/local/share/groonga/doc/ja/html/_static/doctools.js +0 -247
- data/vendor/local/share/groonga/doc/ja/html/_static/file.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/jquery.js +0 -6240
- data/vendor/local/share/groonga/doc/ja/html/_static/minus.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/plus.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/pygments.css +0 -61
- data/vendor/local/share/groonga/doc/ja/html/_static/searchtools.js +0 -518
- data/vendor/local/share/groonga/doc/ja/html/_static/sidebar.js +0 -147
- data/vendor/local/share/groonga/doc/ja/html/_static/underscore.js +0 -16
- data/vendor/local/share/groonga/doc/ja/html/characteristic.html +0 -162
- data/vendor/local/share/groonga/doc/ja/html/commands.html +0 -139
- data/vendor/local/share/groonga/doc/ja/html/commands/cache_limit.html +0 -173
- data/vendor/local/share/groonga/doc/ja/html/commands/check.html +0 -285
- data/vendor/local/share/groonga/doc/ja/html/commands/clearlock.html +0 -180
- data/vendor/local/share/groonga/doc/ja/html/commands/column_create.html +0 -210
- data/vendor/local/share/groonga/doc/ja/html/commands/column_list.html +0 -220
- data/vendor/local/share/groonga/doc/ja/html/commands/column_remove.html +0 -183
- data/vendor/local/share/groonga/doc/ja/html/commands/define_selector.html +0 -221
- data/vendor/local/share/groonga/doc/ja/html/commands/defrag.html +0 -177
- data/vendor/local/share/groonga/doc/ja/html/commands/delete.html +0 -182
- data/vendor/local/share/groonga/doc/ja/html/commands/dump.html +0 -177
- data/vendor/local/share/groonga/doc/ja/html/commands/load.html +0 -208
- data/vendor/local/share/groonga/doc/ja/html/commands/log_level.html +0 -187
- data/vendor/local/share/groonga/doc/ja/html/commands/log_put.html +0 -190
- data/vendor/local/share/groonga/doc/ja/html/commands/log_reopen.html +0 -188
- data/vendor/local/share/groonga/doc/ja/html/commands/quit.html +0 -156
- data/vendor/local/share/groonga/doc/ja/html/commands/select.html +0 -331
- data/vendor/local/share/groonga/doc/ja/html/commands/shutdown.html +0 -156
- data/vendor/local/share/groonga/doc/ja/html/commands/status.html +0 -179
- data/vendor/local/share/groonga/doc/ja/html/commands/suggest.html +0 -191
- data/vendor/local/share/groonga/doc/ja/html/commands/table_create.html +0 -222
- data/vendor/local/share/groonga/doc/ja/html/commands/table_list.html +0 -202
- data/vendor/local/share/groonga/doc/ja/html/commands/table_remove.html +0 -173
- data/vendor/local/share/groonga/doc/ja/html/commands/view_add.html +0 -175
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/add.html +0 -180
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/get.html +0 -161
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/set.html +0 -182
- data/vendor/local/share/groonga/doc/ja/html/developer.html +0 -118
- data/vendor/local/share/groonga/doc/ja/html/developer/com.html +0 -136
- data/vendor/local/share/groonga/doc/ja/html/developer/document.html +0 -159
- data/vendor/local/share/groonga/doc/ja/html/developer/query.html +0 -336
- data/vendor/local/share/groonga/doc/ja/html/developer/test.html +0 -220
- data/vendor/local/share/groonga/doc/ja/html/execfile.html +0 -370
- data/vendor/local/share/groonga/doc/ja/html/expr.html +0 -157
- data/vendor/local/share/groonga/doc/ja/html/functions.html +0 -122
- data/vendor/local/share/groonga/doc/ja/html/functions/edit_distance.html +0 -162
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_distance.html +0 -170
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_circle.html +0 -173
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_rectangle.html +0 -172
- data/vendor/local/share/groonga/doc/ja/html/functions/now.html +0 -152
- data/vendor/local/share/groonga/doc/ja/html/functions/rand.html +0 -159
- data/vendor/local/share/groonga/doc/ja/html/genindex.html +0 -227
- data/vendor/local/share/groonga/doc/ja/html/grnslap.html +0 -183
- data/vendor/local/share/groonga/doc/ja/html/grntest.html +0 -368
- data/vendor/local/share/groonga/doc/ja/html/http.html +0 -163
- data/vendor/local/share/groonga/doc/ja/html/index.html +0 -291
- data/vendor/local/share/groonga/doc/ja/html/install.html +0 -228
- data/vendor/local/share/groonga/doc/ja/html/news.html +0 -310
- data/vendor/local/share/groonga/doc/ja/html/objects.inv +0 -0
- data/vendor/local/share/groonga/doc/ja/html/process.html +0 -120
- data/vendor/local/share/groonga/doc/ja/html/pseudo_column.html +0 -147
- data/vendor/local/share/groonga/doc/ja/html/reference.html +0 -174
- data/vendor/local/share/groonga/doc/ja/html/search.html +0 -96
- data/vendor/local/share/groonga/doc/ja/html/searchindex.js +0 -1
- data/vendor/local/share/groonga/doc/ja/html/tutorial.html +0 -172
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial01.html +0 -388
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial02.html +0 -214
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial03.html +0 -183
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial04.html +0 -212
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial05.html +0 -169
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial06.html +0 -209
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial07.html +0 -212
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial08.html +0 -139
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial09.html +0 -114
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial10.html +0 -458
- data/vendor/local/share/groonga/doc/ja/html/type.html +0 -217
- data/vendor/local/share/groonga/doc/ja/source/__init__.py +0 -0
- data/vendor/local/share/groonga/doc/ja/source/characteristic.txt +0 -56
- data/vendor/local/share/groonga/doc/ja/source/commands.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/source/commands/cache_limit.txt +0 -52
- data/vendor/local/share/groonga/doc/ja/source/commands/check.txt +0 -164
- data/vendor/local/share/groonga/doc/ja/source/commands/clearlock.txt +0 -61
- data/vendor/local/share/groonga/doc/ja/source/commands/column_create.txt +0 -93
- data/vendor/local/share/groonga/doc/ja/source/commands/column_list.txt +0 -97
- data/vendor/local/share/groonga/doc/ja/source/commands/column_remove.txt +0 -58
- data/vendor/local/share/groonga/doc/ja/source/commands/define_selector.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/source/commands/defrag.txt +0 -57
- data/vendor/local/share/groonga/doc/ja/source/commands/delete.txt +0 -68
- data/vendor/local/share/groonga/doc/ja/source/commands/dump.txt +0 -62
- data/vendor/local/share/groonga/doc/ja/source/commands/load.txt +0 -98
- data/vendor/local/share/groonga/doc/ja/source/commands/log_level.txt +0 -65
- data/vendor/local/share/groonga/doc/ja/source/commands/log_put.txt +0 -69
- data/vendor/local/share/groonga/doc/ja/source/commands/log_reopen.txt +0 -66
- data/vendor/local/share/groonga/doc/ja/source/commands/quit.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/source/commands/select.txt +0 -247
- data/vendor/local/share/groonga/doc/ja/source/commands/shutdown.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/source/commands/status.txt +0 -59
- data/vendor/local/share/groonga/doc/ja/source/commands/table_create.txt +0 -111
- data/vendor/local/share/groonga/doc/ja/source/commands/table_list.txt +0 -87
- data/vendor/local/share/groonga/doc/ja/source/commands/table_remove.txt +0 -50
- data/vendor/local/share/groonga/doc/ja/source/commands/view_add.txt +0 -53
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/add.txt +0 -102
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/get.txt +0 -78
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/set.txt +0 -103
- data/vendor/local/share/groonga/doc/ja/source/conf.py +0 -265
- data/vendor/local/share/groonga/doc/ja/source/developer.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/source/developer/com.txt +0 -18
- data/vendor/local/share/groonga/doc/ja/source/developer/document.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/source/developer/query.txt +0 -212
- data/vendor/local/share/groonga/doc/ja/source/developer/test.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-1.log +0 -6
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-10.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-11.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-12.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-13.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-14.log +0 -9
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-15.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-16.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-17.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-2.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-3.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-4.log +0 -7
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-6.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-7.log +0 -16
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-8.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-9.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-1.log +0 -8
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-2.log +0 -6
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-3.log +0 -12
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-1.log +0 -18
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-2.log +0 -10
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-3.log +0 -10
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-1.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-2.log +0 -7
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-3.log +0 -7
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-4.log +0 -13
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-6.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-7.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-1.log +0 -24
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-2.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-3.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-4.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-6.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-1.log +0 -25
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-2.log +0 -9
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-3.log +0 -21
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-4.log +0 -7
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-1.log +0 -22
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-2.log +0 -9
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-3.log +0 -20
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-4.log +0 -9
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial08-1.log +0 -14
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-1.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-10.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-2.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-3.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-4.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-6.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-7.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-8.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-9.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/execfile.txt +0 -226
- data/vendor/local/share/groonga/doc/ja/source/expr.txt +0 -43
- data/vendor/local/share/groonga/doc/ja/source/functions.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/source/functions/edit_distance.txt +0 -48
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_distance.txt +0 -51
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_circle.txt +0 -54
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_rectangle.txt +0 -55
- data/vendor/local/share/groonga/doc/ja/source/functions/now.txt +0 -34
- data/vendor/local/share/groonga/doc/ja/source/functions/rand.txt +0 -41
- data/vendor/local/share/groonga/doc/ja/source/grnslap.txt +0 -64
- data/vendor/local/share/groonga/doc/ja/source/grntest.txt +0 -259
- data/vendor/local/share/groonga/doc/ja/source/http.txt +0 -52
- data/vendor/local/share/groonga/doc/ja/source/index.txt +0 -21
- data/vendor/local/share/groonga/doc/ja/source/install.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/source/news.txt +0 -199
- data/vendor/local/share/groonga/doc/ja/source/process.txt +0 -12
- data/vendor/local/share/groonga/doc/ja/source/pseudo_column.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/source/rdoc.py +0 -762
- data/vendor/local/share/groonga/doc/ja/source/reference.txt +0 -14
- data/vendor/local/share/groonga/doc/ja/source/tutorial.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial01.txt +0 -293
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial02.txt +0 -100
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial03.txt +0 -72
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial04.txt +0 -111
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial05.txt +0 -65
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial06.txt +0 -91
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial07.txt +0 -92
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial08.txt +0 -53
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial09.txt +0 -9
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial10.txt +0 -486
- data/vendor/local/share/groonga/doc/ja/source/type.txt +0 -118
- data/vendor/local/share/groonga/doc/ja/source/update_execution_example.py +0 -113
- data/vendor/local/share/man/man1/groonga.1 +0 -5498
data/NEWS.ja.rdoc
CHANGED
@@ -1,5 +1,151 @@
|
|
1
1
|
= お知らせ
|
2
2
|
|
3
|
+
== 1.1.0: 2011-02-09
|
4
|
+
|
5
|
+
=== 改良
|
6
|
+
|
7
|
+
* groonga 1.1.0対応。
|
8
|
+
* Groonga::Plugin.registerを追加。
|
9
|
+
|
10
|
+
== 1.0.9: 2011-01-29
|
11
|
+
|
12
|
+
=== 改良
|
13
|
+
|
14
|
+
* Windows上でのgem作成に対応。
|
15
|
+
[ongaeshiさんがパッチ提供]
|
16
|
+
* Groonga::Schemaでテーブル・カラムを削除した時に作成したディレクトリを
|
17
|
+
削除するようにした。
|
18
|
+
* Groonga::Context#create_databaseを追加。
|
19
|
+
* Groonga::Context#open_databaseを追加。
|
20
|
+
* Groonga::Column#indexesを追加。
|
21
|
+
* Groonga::Table#select内でのインデックスカラムにマッチする記法をサポート。
|
22
|
+
table.select do |record|
|
23
|
+
record.match("query") do |match_record|
|
24
|
+
(match_record.index("Terms.title") * 1000) |
|
25
|
+
(match_record.index("Terms.description") * 100)
|
26
|
+
match_record.content
|
27
|
+
end
|
28
|
+
end
|
29
|
+
* Groonga::Table#select内での前方一致検索に対応。
|
30
|
+
table.select do |record|
|
31
|
+
record.name.prefix_search("groo")
|
32
|
+
end
|
33
|
+
* Groonga::Table#select内での後方一致検索に対応。
|
34
|
+
table.select do |record|
|
35
|
+
record.name.suffix_search("nga")
|
36
|
+
end
|
37
|
+
* :default_tokenizerのスキーマダンプに対応。
|
38
|
+
* :key_normalizeのスキーマダンプに対応。
|
39
|
+
* Groonga::Table#have_column?が擬似カラムに対応。
|
40
|
+
* Groonga::Record#have_column?が擬似カラムに対応。
|
41
|
+
|
42
|
+
=== 変更
|
43
|
+
|
44
|
+
* Groonga::OperatoionをGroonga::Operatorに変更。
|
45
|
+
(しばらくはGroonga::Operationも使えるが、非推奨。)
|
46
|
+
|
47
|
+
=== 修正
|
48
|
+
|
49
|
+
* 複数のGroonga::Contextを利用した場合に
|
50
|
+
Groonga::Table#selectでクラッシュする問題を修正。
|
51
|
+
* 例外発生時にクラッシュする問題を修正。
|
52
|
+
|
53
|
+
=== 感謝
|
54
|
+
|
55
|
+
* ongaeshioさん
|
56
|
+
|
57
|
+
== 1.0.8: 2010-12-25
|
58
|
+
|
59
|
+
=== 改良
|
60
|
+
|
61
|
+
* Groonga::Schemaのn-gramトークナイザー検出処理を改良。
|
62
|
+
|
63
|
+
=== 修正
|
64
|
+
|
65
|
+
* selectでmatch_targetを利用した場合に生きているオブジェクトもGC
|
66
|
+
される問題を修正。
|
67
|
+
|
68
|
+
== 1.0.7: 2010-12-19
|
69
|
+
|
70
|
+
=== 修正
|
71
|
+
|
72
|
+
* Ruby 1.8でRubyGemsでインストールされたpkg-configを使えるようにした。
|
73
|
+
[@kamipoさんが報告]
|
74
|
+
* Groonga::Table#columnsのメモリリークを修正。
|
75
|
+
|
76
|
+
=== 感謝
|
77
|
+
|
78
|
+
* @kamipoさん
|
79
|
+
|
80
|
+
== 1.0.5: 2010-11-29
|
81
|
+
|
82
|
+
=== 改良
|
83
|
+
|
84
|
+
* Groonga::Schemaでgroongaの組み込み型をshort_textなどのように
|
85
|
+
「小文字 + アンダースコア」でも指定できるようにした。
|
86
|
+
|
87
|
+
=== 修正
|
88
|
+
|
89
|
+
* GC時にクラッシュするバグを修正。 [Ryo Onodera]
|
90
|
+
|
91
|
+
== 1.0.4: 2010-11-29
|
92
|
+
|
93
|
+
=== 改良
|
94
|
+
|
95
|
+
* groonga 1.0.4対応。
|
96
|
+
* Groonga::UnsupportedCommandVersionを追加。
|
97
|
+
* Groonga::Record#support_sub_records?を追加。
|
98
|
+
* Groonga::Record#eql?とGroonga::Record#hashを追加。
|
99
|
+
(同じテーブルの同じレコードIDのオブジェクトを同一のHashキーとして扱う。)
|
100
|
+
* pkg-config gemを利用するようにした。
|
101
|
+
* Groonga::Table#select内でrecord_idメソッドを持っているメソッドはレコード
|
102
|
+
として扱うようにした。
|
103
|
+
* Groonga::Record#record_idを追加。
|
104
|
+
* Groonga::Table#support_key?を追加。
|
105
|
+
* Groonga::Record#support_key?を追加。
|
106
|
+
* Groonga::Record#support_key?を追加。
|
107
|
+
* Groonga::Column#reference_key?を追加。
|
108
|
+
* Groonga::Column#index_column?を追加。
|
109
|
+
* Groonga::Schema#dumpを追加。
|
110
|
+
* Groonga::Schemaが複数のカラムのインデックス作成に対応。
|
111
|
+
* Groonga::Schemaで定義したオブジェクトに対応するファイル名に
|
112
|
+
わかりやすいファイル名を利用するようにした。
|
113
|
+
* Groonga::Schemaで参照カラムを定義時に参照先のテーブル名を省略可能になった。
|
114
|
+
* Groonga::Schema.remove_columnを追加。
|
115
|
+
* Groonga::Schemaでcreated_atカラムとupdated_atカラムを作るための
|
116
|
+
timestamps便利メソッドを追加。
|
117
|
+
* Groonga::Context#support_zlib?を追加。
|
118
|
+
* Groonga::Context#support_lzo?を追加。
|
119
|
+
* Groonga::Database#touchを追加。
|
120
|
+
* Groonga::Table#exist?を追加。
|
121
|
+
* Groonga::Record#valid?を追加。
|
122
|
+
* Groonga::Column#vector?を追加。
|
123
|
+
* Groonga::Column#scalar?を追加。
|
124
|
+
* Groonga::Record#vector_column?を追加。
|
125
|
+
* Groonga::Record#scalar_column?を追加。
|
126
|
+
* レコードIDが必要なところにrecord_raw_idを持つオブジェクトなら
|
127
|
+
Groonga::Record以外も渡せるようにした。
|
128
|
+
* Groonga::Record#record_raw_idを追加。
|
129
|
+
* ベクタの参照カラムの値にArray以外でもto_aryを持つオブジェクトを
|
130
|
+
設定できるようにした。
|
131
|
+
|
132
|
+
== 変更
|
133
|
+
|
134
|
+
* Groonga::PatriciaTrie#open_cursorでは:order_byのデフォルト値として:key
|
135
|
+
を使うようにした。
|
136
|
+
* 非推奨扱いのGroonga::TableKeySupport#findを削除。
|
137
|
+
* Groonga::Hash#createとGroonga::PatriciaTrie#createでキーの型を省略した
|
138
|
+
場合はShortTextを使用するようにした。
|
139
|
+
* Groonga::Schema#loadをGroonga::Schema#restoreに改名。
|
140
|
+
* pkg-config 1.0.7対応。
|
141
|
+
* Groonga::Column#index?を追加。Groonga::Column#index_column?は非推奨。
|
142
|
+
* Groonga::Column#reference?を追加。Groonga::Column#reference_column?は非推奨。
|
143
|
+
|
144
|
+
=== 修正
|
145
|
+
|
146
|
+
* keyにインデックスを張れない問題を修正。
|
147
|
+
* GC時にクラッシュする問題を修正。
|
148
|
+
|
3
149
|
== 1.0.1: 2010-09-12
|
4
150
|
|
5
151
|
=== 修正
|
data/NEWS.rdoc
CHANGED
@@ -1,5 +1,151 @@
|
|
1
1
|
= NEWS
|
2
2
|
|
3
|
+
== 1.1.0: 2011-02-09
|
4
|
+
|
5
|
+
=== Improvements
|
6
|
+
|
7
|
+
* Supported groonga 1.1.0.
|
8
|
+
* Added Groonga::Plugin.register.
|
9
|
+
|
10
|
+
== 1.0.9: 2011-01-29
|
11
|
+
|
12
|
+
=== Improvements
|
13
|
+
|
14
|
+
* Supported gem creation on Windows.
|
15
|
+
[Patch by ongaeshi]
|
16
|
+
* Supported generated directory that is created by Groonga::Schema removal
|
17
|
+
when table or column is removed.
|
18
|
+
* Added Groonga::Context#create_database.
|
19
|
+
* Added Groonga::Context#open_database.
|
20
|
+
* Added Groonga::Column#indexes.
|
21
|
+
* Supported a notation for specifying index column as match target in
|
22
|
+
Groonga::Table#select:
|
23
|
+
table.select do |record|
|
24
|
+
record.match("query") do |match_record|
|
25
|
+
(match_record.index("Terms.title") * 1000) |
|
26
|
+
(match_record.index("Terms.description") * 100)
|
27
|
+
match_record.content
|
28
|
+
end
|
29
|
+
end
|
30
|
+
* Supported prefix search in Groonga::Table#select:
|
31
|
+
table.select do |record|
|
32
|
+
record.name.prefix_search("groo")
|
33
|
+
end
|
34
|
+
* Supported suffix search in Groonga::Table#select:
|
35
|
+
table.select do |record|
|
36
|
+
record.name.suffix_search("nga")
|
37
|
+
end
|
38
|
+
* Supported :default_tokenizer schema dump.
|
39
|
+
* Supported :key_normalize schema dump.
|
40
|
+
* Supported pseudo columns by Groonga::Table#have_column?.
|
41
|
+
* Supported pseudo columns by Groonga::Record#have_column?.
|
42
|
+
|
43
|
+
=== Changes
|
44
|
+
|
45
|
+
* Renamed Groonga::Operatoion to Groonga::Operator.
|
46
|
+
(Groonga::Operation is deprecated but still usable.)
|
47
|
+
|
48
|
+
=== Fixes
|
49
|
+
|
50
|
+
* Fixed a crash bug when not default Groonga::Context is used in
|
51
|
+
Groonga::Table#select.
|
52
|
+
* Fixed a crash bug when an exception is occurred.
|
53
|
+
|
54
|
+
=== Thanks
|
55
|
+
|
56
|
+
* ongaeshio
|
57
|
+
|
58
|
+
== 1.0.8: 2010-12-25
|
59
|
+
|
60
|
+
=== Improvements
|
61
|
+
|
62
|
+
* Improved Groonga::Schema's n-gram tokenizer detect process.
|
63
|
+
|
64
|
+
=== Fixes
|
65
|
+
|
66
|
+
* Fixed GC problem caused by match_target in select.
|
67
|
+
|
68
|
+
== 1.0.7: 2010-12-19
|
69
|
+
|
70
|
+
=== Fixes
|
71
|
+
|
72
|
+
* Supported pkg-config installed by RubyGems on Ruby 1.8.
|
73
|
+
[Reported by @kamipo]
|
74
|
+
* Fixed a memory leak in Groonga::Table#columns.
|
75
|
+
|
76
|
+
=== Thanks
|
77
|
+
|
78
|
+
* @kamipo
|
79
|
+
|
80
|
+
== 1.0.5: 2010-11-29
|
81
|
+
|
82
|
+
=== Improvements
|
83
|
+
|
84
|
+
* Added snail_case type name aliases for built-in groonga types
|
85
|
+
to Groonga::Schema.
|
86
|
+
|
87
|
+
=== Fixes
|
88
|
+
|
89
|
+
* Fixed a crash bug on GC. [Ryo Onodera]
|
90
|
+
|
91
|
+
== 1.0.4: 2010-11-29
|
92
|
+
|
93
|
+
=== Improvements
|
94
|
+
|
95
|
+
* Supported groonga 1.0.4.
|
96
|
+
* Added Groonga::UnsupportedCommandVersion.
|
97
|
+
* Added Groonga::Record#support_sub_records?.
|
98
|
+
* Added Groonga::Record#eql?とGroonga::Record#hash.
|
99
|
+
(treat two the same table and the same record ID object as the same Hash key.)
|
100
|
+
* Supported pkg-config gem.
|
101
|
+
* Supported generic #record_id object handle for custom record object
|
102
|
+
in Groonga::Table#select.
|
103
|
+
* Added Groonga::Record#record_id.
|
104
|
+
* Added Groonga::Table#support_key?.
|
105
|
+
* Added Groonga::Record#support_key?.
|
106
|
+
* Added Groonga::Record#support_key?.
|
107
|
+
* Added Groonga::Column#reference_key?.
|
108
|
+
* Added Groonga::Column#index_column?.
|
109
|
+
* Added Groonga::Schema#dump.
|
110
|
+
* Supported multi columns index creation in Groonga::Schema.
|
111
|
+
* Supported meaningful path in Groonga::Schema.
|
112
|
+
* Made reference table omissible when index column definition
|
113
|
+
in Groonga::Schema.
|
114
|
+
* Added Groonga::Schema.remove_column.
|
115
|
+
* Added convenience timestamps methods to define "created_at" and
|
116
|
+
"updated_at" columns in Groonga::Schema.
|
117
|
+
* Added Groonga::Context#support_zlib?.
|
118
|
+
* Added Groonga::Context#support_lzo?.
|
119
|
+
* Added Groonga::Database#touch.
|
120
|
+
* Added Groonga::Table#exist?.
|
121
|
+
* Added Groonga::Record#valid?.
|
122
|
+
* Added Groonga::Column#vector?.
|
123
|
+
* Added Groonga::Column#scalar?.
|
124
|
+
* Added Groonga::Record#vector_column?.
|
125
|
+
* Added Groonga::Record#scalar_column?.
|
126
|
+
* Accepted any object that has record_raw_id method for record ID required
|
127
|
+
location. Groonga::Record isn't required.
|
128
|
+
* Added Groonga::Record#record_raw_id.
|
129
|
+
* Accepted any object that as to_ary method for reference vector column value.
|
130
|
+
|
131
|
+
== Changes
|
132
|
+
|
133
|
+
* Used :key as the default value of :order_by of
|
134
|
+
Groonga::PatriciaTrie#open_cursor.
|
135
|
+
* Removed a deprecated Groonga::TableKeySupport#find.
|
136
|
+
* Used ShortText as the default key type of
|
137
|
+
Groonga::Hash#create and Groonga::PatriciaTrie#create.
|
138
|
+
* Renamed Groonga::Schema#load to Groonga::Schema#restore.
|
139
|
+
* Supported pkg-confg 1.0.7.
|
140
|
+
* Added Groonga::Column#index? and deprecated Groonga::Column#index_column?.
|
141
|
+
* Added Groonga::Column#reference? and deprecated
|
142
|
+
Groonga::Column#reference_column?.
|
143
|
+
|
144
|
+
=== Fixes
|
145
|
+
|
146
|
+
* Fixed index for key isn't be able to define.
|
147
|
+
* Fixed a crash problem on GC.
|
148
|
+
|
3
149
|
== 1.0.1: 2010-09-12
|
4
150
|
|
5
151
|
=== Fixes
|
data/README.ja.rdoc
CHANGED
@@ -30,13 +30,13 @@ SHIDARA Yoji:: <tt><dara@shidara.net></tt>
|
|
30
30
|
|
31
31
|
LGPL 2.1です。詳しくはlicense/LGPLを見てください。
|
32
32
|
|
33
|
-
|
34
|
-
|
33
|
+
(コントリビュートされたパッチなども含み、Kouhei Sutouが
|
34
|
+
ライセンスを変更する権利を持ちます。)
|
35
35
|
|
36
36
|
== 依存ソフトウェア
|
37
37
|
|
38
|
-
* Ruby >= 1.8 (1.9.
|
39
|
-
* groonga >= 1.
|
38
|
+
* Ruby >= 1.8 (1.9.2対応)
|
39
|
+
* groonga >= 1.1.0
|
40
40
|
|
41
41
|
== インストール
|
42
42
|
|
@@ -61,6 +61,8 @@ http://lists.sourceforge.jp/mailman/listinfo/groonga-dev
|
|
61
61
|
* テストを書いてくれました。
|
62
62
|
* バグを直してくれました。
|
63
63
|
* id:mat_akiさん: チュートリアルのバグを教えてくれました。
|
64
|
-
* @yune_kotomi
|
64
|
+
* @yune_kotomiさん: バグレポートしてくれました。
|
65
65
|
* 咳さん: バグレポートしてくれました。
|
66
66
|
* 小野マトペさん: バグレポートしてくれました。
|
67
|
+
* @kamipoさん: バグレポートしてくれました。
|
68
|
+
* ongaeshiさん: Windows上でgemをビルドするためのパッチをくれました。
|
data/README.rdoc
CHANGED
@@ -30,14 +30,13 @@ SHIDARA Yoji:: <tt><dara@shidara.net></tt>
|
|
30
30
|
|
31
31
|
LGPL 2.1. See license/LGPL for details.
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
license/GPL for details.
|
33
|
+
(Kouhei Sutou has a right to change the license
|
34
|
+
inclidng contributed patches.)
|
36
35
|
|
37
36
|
== Dependencies
|
38
37
|
|
39
|
-
* Ruby >= 1.8 (including 1.9.
|
40
|
-
* groonga >= 1.
|
38
|
+
* Ruby >= 1.8 (including 1.9.2)
|
39
|
+
* groonga >= 1.1.0
|
41
40
|
|
42
41
|
== Install
|
43
42
|
|
@@ -65,3 +64,5 @@ http://rubyforge.org/mailman/listinfo/groonga-users-en
|
|
65
64
|
* @yune_kotomi: sent a bug report.
|
66
65
|
* m_seki: sent bug reports.
|
67
66
|
* ono matope: sent bug reports.
|
67
|
+
* @kamipo: send a bug report.
|
68
|
+
* ongaeshi: sent a patch to build gem on Windows.
|
data/Rakefile
CHANGED
@@ -22,7 +22,9 @@ require 'fileutils'
|
|
22
22
|
require 'pathname'
|
23
23
|
require 'erb'
|
24
24
|
require 'rubygems'
|
25
|
-
|
25
|
+
if RUBY_VERSION < "1.9"
|
26
|
+
gem 'rdoc'
|
27
|
+
end
|
26
28
|
require 'hoe'
|
27
29
|
require 'rake/extensiontask'
|
28
30
|
|
@@ -39,9 +41,17 @@ $LOAD_PATH.unshift(groonga_ext_dir)
|
|
39
41
|
$LOAD_PATH.unshift(groonga_lib_dir)
|
40
42
|
ENV["RUBYLIB"] = "#{groonga_lib_dir}:#{groonga_ext_dir}:#{ENV['RUBYLIB']}"
|
41
43
|
|
42
|
-
def guess_version
|
43
|
-
|
44
|
-
|
44
|
+
def guess_version(groonga_ext_dir)
|
45
|
+
version = {}
|
46
|
+
File.open(File.join(groonga_ext_dir, "rb-grn.h")) do |rb_grn_h|
|
47
|
+
rb_grn_h.each_line do |line|
|
48
|
+
case line
|
49
|
+
when /\A#define RB_GRN_([A-Z]+)_VERSION (\d+)/
|
50
|
+
version[$1.downcase] = $2
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
[version["major"], version["minor"], version["micro"]].join(".")
|
45
55
|
end
|
46
56
|
|
47
57
|
manifest = File.join(base_dir, "Manifest.txt")
|
@@ -81,7 +91,7 @@ def cleanup_white_space(entry)
|
|
81
91
|
entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
|
82
92
|
end
|
83
93
|
|
84
|
-
ENV["VERSION"] ||= guess_version
|
94
|
+
ENV["VERSION"] ||= guess_version(groonga_ext_dir)
|
85
95
|
version = ENV["VERSION"]
|
86
96
|
project = nil
|
87
97
|
Hoe.spec('rroonga') do
|
@@ -107,7 +117,7 @@ Hoe.spec('rroonga') do
|
|
107
117
|
:require_paths => ["lib", "ext/groonga"],
|
108
118
|
:extra_rdoc_files => Dir.glob("**/*.rdoc"),
|
109
119
|
}
|
110
|
-
project.
|
120
|
+
project.extra_deps << ['pkg-config', '>= 1.0.7']
|
111
121
|
project.readme_file = "README.ja.rdoc"
|
112
122
|
|
113
123
|
news_of_current_release = File.read("NEWS.rdoc").split(/^==\s.*$/)[1]
|
@@ -128,30 +138,47 @@ ObjectSpace.each_object(Rake::RDocTask) do |rdoc_task|
|
|
128
138
|
rdoc_task.options[t_option_index, 2] = nil
|
129
139
|
rdoc_task.title = "rroonga - #{version}"
|
130
140
|
|
131
|
-
rdoc_task.rdoc_files = ["ext/rb-groonga.c"]
|
141
|
+
rdoc_task.rdoc_files = ["ext/groonga/rb-groonga.c"]
|
142
|
+
rdoc_task.rdoc_files += Dir.glob("ext/groonga/rb-grn-*.c")
|
132
143
|
rdoc_task.rdoc_files += Dir.glob("lib/**/*.rb")
|
133
144
|
rdoc_task.rdoc_files += Dir.glob("**/*.rdoc")
|
134
145
|
end
|
135
146
|
|
136
|
-
|
147
|
+
def windows?(platform=nil)
|
148
|
+
platform ||= RUBY_PLATFORM
|
149
|
+
platform =~ /mswin(?!ce)|mingw|cygwin|bccwin/
|
150
|
+
end
|
151
|
+
|
152
|
+
def collect_binary_files(binary_dir)
|
153
|
+
binary_files = []
|
154
|
+
Find.find(binary_dir) do |name|
|
155
|
+
next unless File.file?(name)
|
156
|
+
next if /\.zip\z/i =~ name
|
157
|
+
binary_files << name
|
158
|
+
end
|
159
|
+
binary_files
|
160
|
+
end
|
161
|
+
|
162
|
+
relative_vendor_dir = "vendor"
|
163
|
+
relative_binary_dir = File.join("vendor", "local")
|
164
|
+
vendor_dir = File.join(base_dir, relative_vendor_dir)
|
165
|
+
binary_dir = File.join(base_dir, relative_binary_dir)
|
166
|
+
|
137
167
|
Rake::ExtensionTask.new("groonga", project.spec) do |ext|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
binary_files << name
|
168
|
+
if windows?
|
169
|
+
ext.gem_spec.files += collect_binary_files(relative_binary_dir)
|
170
|
+
else
|
171
|
+
ext.cross_compile = true
|
172
|
+
ext.cross_compiling do |spec|
|
173
|
+
if windows?(spec.platform.to_s)
|
174
|
+
spec.files += collect_binary_files(relative_binary_dir)
|
146
175
|
end
|
147
|
-
spec.files += binary_files
|
148
176
|
end
|
149
177
|
end
|
150
178
|
end
|
151
179
|
|
152
180
|
task :publish_docs => [:prepare_docs_for_publishing]
|
153
181
|
|
154
|
-
|
155
182
|
include ERB::Util
|
156
183
|
|
157
184
|
def apply_template(file, head, header, footer)
|
@@ -194,6 +221,10 @@ task :prepare_docs_for_publishing do
|
|
194
221
|
apply_template(file, head, header, footer)
|
195
222
|
end
|
196
223
|
end
|
224
|
+
File.open("doc/.htaccess", "w") do |file|
|
225
|
+
file.puts("Redirect permanent /rroonga/text/TUTORIAL_ja_rdoc.html " +
|
226
|
+
"http://groonga.rubyforge.org/rroonga/text/tutorial_ja_rdoc.html")
|
227
|
+
end
|
197
228
|
end
|
198
229
|
|
199
230
|
desc "Publish HTML to Web site."
|
@@ -216,3 +247,124 @@ project.spec.executables.clear
|
|
216
247
|
# project.lib_files = project.spec.files.grep(%r|^src/lib/|)
|
217
248
|
|
218
249
|
task(:release).prerequisites.reject! {|name| name == "clean"}
|
250
|
+
|
251
|
+
namespace :win32 do
|
252
|
+
if ENV["GROONGA64"] == "yes"
|
253
|
+
host = "amd64-mingw32msvc"
|
254
|
+
else
|
255
|
+
host = "i586-mingw32msvc"
|
256
|
+
end
|
257
|
+
|
258
|
+
desc "Build MeCab and groonga and install them into vendor/local/."
|
259
|
+
task(:build => [:build_mecab, :build_mecab_dict, :build_groonga])
|
260
|
+
|
261
|
+
desc "Build MeCab and install it into vendor/local/."
|
262
|
+
task(:build_mecab) do
|
263
|
+
tmp_dir = "tmp/mecab"
|
264
|
+
rm_rf(tmp_dir)
|
265
|
+
mkdir_p(tmp_dir)
|
266
|
+
require 'open-uri'
|
267
|
+
mecab_version = "0.98"
|
268
|
+
mecab_base = "mecab-#{mecab_version}"
|
269
|
+
mecab_tar_gz = "#{mecab_base}.tar.gz"
|
270
|
+
mecab_tar_gz_url = "http://sourceforge.net/projects/mecab/files/mecab/#{mecab_version}/#{mecab_tar_gz}/download"
|
271
|
+
Dir.chdir(tmp_dir) do
|
272
|
+
open(mecab_tar_gz_url) do |downloaded_tar_gz|
|
273
|
+
File.open(mecab_tar_gz, "wb") do |tar_gz|
|
274
|
+
tar_gz.print(downloaded_tar_gz.read)
|
275
|
+
end
|
276
|
+
end
|
277
|
+
sh("tar", "xzf", mecab_tar_gz) or exit(false)
|
278
|
+
end
|
279
|
+
Dir.chdir(File.join(tmp_dir, mecab_base)) do
|
280
|
+
sh("./configure",
|
281
|
+
"--prefix=#{binary_dir}",
|
282
|
+
"--host=#{host}") or exit(false)
|
283
|
+
sh("env", "GREP_OPTIONS=--text", "nice", "make", "-j8") or exit(false)
|
284
|
+
sh("env", "GREP_OPTIONS=--text", "make", "install") or exit(false)
|
285
|
+
|
286
|
+
mecab_files_dir = File.join(vendor_dir, "mecab")
|
287
|
+
mkdir_p(mecab_files_dir)
|
288
|
+
files = ["AUTHORS", "BSD", "COPYING", "GPL", "LGPL"]
|
289
|
+
cp(files, mecab_files_dir)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
task(:build_mecab_dict => :build_mecab) do
|
294
|
+
tmp_dir = "tmp/mecab_dict"
|
295
|
+
rm_rf(tmp_dir)
|
296
|
+
mkdir_p(tmp_dir)
|
297
|
+
require 'open-uri'
|
298
|
+
naist_jdic_base = "mecab-naist-jdic-0.6.3-20100801"
|
299
|
+
naist_jdic_tar_gz = "#{naist_jdic_base}.tar.gz"
|
300
|
+
naist_jdic_tar_gz_url = "http://osdn.dl.sourceforge.jp/naist-jdic/48487/#{naist_jdic_tar_gz}"
|
301
|
+
Dir.chdir(tmp_dir) do
|
302
|
+
open(naist_jdic_tar_gz_url) do |downloaded_tar_gz|
|
303
|
+
File.open(naist_jdic_tar_gz, "wb") do |tar_gz|
|
304
|
+
tar_gz.print(downloaded_tar_gz.read)
|
305
|
+
end
|
306
|
+
end
|
307
|
+
sh("tar", "xzf", naist_jdic_tar_gz) or exit(false)
|
308
|
+
end
|
309
|
+
Dir.chdir(File.join(tmp_dir, naist_jdic_base)) do
|
310
|
+
sh("./configure",
|
311
|
+
"--with-dicdir=#{binary_dir}/share/mecab/dic/naist-jdic",
|
312
|
+
"--with-charset=utf-8") or exit(false)
|
313
|
+
sh("make", "-j8") or exit(false)
|
314
|
+
sh("make", "install-data") or exit(false)
|
315
|
+
|
316
|
+
naist_jdic_files_dir = File.join(vendor_dir, "mecab-naist-jdic")
|
317
|
+
mkdir_p(naist_jdic_files_dir)
|
318
|
+
files = ["AUTHORS", "COPYING"]
|
319
|
+
cp(files, naist_jdic_files_dir)
|
320
|
+
end
|
321
|
+
dictionary_dir = '$(rcpath)\..\share/mecab\dic\naist-jdic'
|
322
|
+
mecab_rc_path = File.join(binary_dir, "etc", "mecabrc")
|
323
|
+
mecab_rc_content = File.read(mecab_rc_path)
|
324
|
+
File.open(mecab_rc_path, "w") do |mecab_rc|
|
325
|
+
mecab_rc.print(mecab_rc_content.gsub(/\Adictdir\s*=.+$/,
|
326
|
+
"dictdir = #{dictionary_dir}"))
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
desc "Build groonga and install it into vendor/local/."
|
331
|
+
task(:build_groonga) do
|
332
|
+
tmp_dir = "tmp/groonga"
|
333
|
+
rm_rf(tmp_dir)
|
334
|
+
mkdir_p(tmp_dir)
|
335
|
+
Dir.chdir(tmp_dir) do
|
336
|
+
sh("git", "clone", "git://github.com/groonga/groonga.git") or exit(false)
|
337
|
+
end
|
338
|
+
Dir.chdir(File.join(tmp_dir, "groonga")) do
|
339
|
+
sh("./autogen.sh") or exit(false)
|
340
|
+
mecab_config = File.join(binary_dir, "bin", "mecab-config")
|
341
|
+
args = ["./configure",
|
342
|
+
"--prefix=#{binary_dir}",
|
343
|
+
"--host=#{host}",
|
344
|
+
"--without-cutter",
|
345
|
+
"--disable-benchmark"]
|
346
|
+
if File.exist?(mecab_config)
|
347
|
+
args << "--with-mecab-config=#{mecab_config}"
|
348
|
+
else
|
349
|
+
args << "--without-mecab"
|
350
|
+
end
|
351
|
+
sh(*args) or exit(false)
|
352
|
+
sh("env", "GREP_OPTIONS=--text", "nice", "make", "-j8") or exit(false)
|
353
|
+
sh("env", "GREP_OPTIONS=--text", "make", "install") or exit(false)
|
354
|
+
|
355
|
+
groonga_files_dir = File.join(vendor_dir, "groonga")
|
356
|
+
mkdir_p(groonga_files_dir)
|
357
|
+
files = ["AUTHORS", "COPYING"]
|
358
|
+
cp(files, groonga_files_dir)
|
359
|
+
end
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
desc "generate rroonga.gemspec"
|
364
|
+
task :generate_gemspec do
|
365
|
+
spec = project.spec
|
366
|
+
spec_name = File.join(base_dir, project.spec.spec_name)
|
367
|
+
File.open(spec_name, "w") do |spec_file|
|
368
|
+
spec_file.puts(spec.to_ruby)
|
369
|
+
end
|
370
|
+
end
|