rroonga 0.9.5-x86-mingw32 → 1.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.ja.rdoc +24 -0
- data/NEWS.rdoc +24 -0
- data/README.ja.rdoc +3 -2
- data/README.rdoc +3 -2
- data/Rakefile +15 -6
- data/ext/groonga/extconf.rb +25 -25
- data/ext/groonga/groonga.def +2 -0
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-exception.c +14 -0
- data/ext/groonga/rb-grn-hash.c +1 -1
- data/ext/groonga/rb-grn-index-column.c +13 -1
- data/ext/groonga/rb-grn-object.c +2 -2
- data/ext/groonga/rb-grn-patricia-trie.c +394 -1
- data/ext/groonga/rb-grn-table.c +33 -2
- data/ext/groonga/rb-grn.h +3 -3
- data/html/index.html +1 -1
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/record.rb +32 -2
- data/lib/groonga/schema.rb +1 -1
- data/rroonga-build.rb +3 -3
- data/test/test-patricia-trie.rb +172 -1
- data/test/test-record.rb +7 -0
- data/test/test-remote.rb +2 -1
- data/test/test-table-cursor.rb +35 -1
- data/test/test-table-select-normalize.rb +7 -3
- 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/groonga.conf +11 -0
- data/vendor/local/etc/groonga/init.d/redhat/groonga +168 -0
- data/vendor/local/etc/groonga/init.d/redhat/sysconfig/groonga +8 -0
- data/vendor/local/include/groonga/groonga.h +38 -12
- 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/lib/groonga/modules/{functions/cast.la → suggest/suggest.la} +6 -6
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +1 -1
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/images/groonga.png +0 -0
- data/vendor/local/share/groonga/admin_html/images/loading.gif +0 -0
- data/vendor/local/share/groonga/admin_html/js/jquery.json-2.2.min.js +31 -0
- data/vendor/local/share/groonga/doc/ja/html/.buildinfo +4 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/characteristic.txt +56 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/cache_limit.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/check.txt +164 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/clearlock.txt +61 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_create.txt +93 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_list.txt +97 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_remove.txt +58 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/define_selector.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/defrag.txt +57 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/delete.txt +68 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/dump.txt +62 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/load.txt +98 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_level.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_put.txt +69 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_reopen.txt +66 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/quit.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/select.txt +247 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/shutdown.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/status.txt +59 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/suggest.txt +79 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_create.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_list.txt +87 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_remove.txt +50 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/view_add.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/add.txt +102 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/get.txt +78 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/set.txt +103 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/com.txt +18 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/document.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/query.txt +212 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/test.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/execfile.txt +226 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/expr.txt +43 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/edit_distance.txt +48 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_distance.txt +51 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_circle.txt +54 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_rectangle.txt +55 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/now.txt +34 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/rand.txt +41 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/grnslap.txt +64 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/grntest.txt +259 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/http.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/index.txt +21 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/install.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/news.txt +199 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/process.txt +12 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/pseudo_column.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/reference.txt +14 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial01.txt +293 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial02.txt +100 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial03.txt +72 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial04.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial05.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial06.txt +91 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial07.txt +92 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial08.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial09.txt +9 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial10.txt +486 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/type.txt +118 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/basic.css +509 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/default.css +277 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/doctools.js +247 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/file.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/jquery.js +6240 -0
- 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 +61 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/searchtools.js +518 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/sidebar.js +147 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/underscore.js +16 -0
- data/vendor/local/share/groonga/doc/ja/html/characteristic.html +162 -0
- data/vendor/local/share/groonga/doc/ja/html/commands.html +139 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/cache_limit.html +173 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/check.html +285 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/clearlock.html +180 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/column_create.html +210 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/column_list.html +220 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/column_remove.html +183 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/define_selector.html +221 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/defrag.html +177 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/delete.html +182 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/dump.html +177 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/load.html +208 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/log_level.html +187 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/log_put.html +190 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/log_reopen.html +188 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/quit.html +156 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/select.html +331 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/shutdown.html +156 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/status.html +179 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/suggest.html +191 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/table_create.html +222 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/table_list.html +202 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/table_remove.html +173 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/view_add.html +175 -0
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/add.html +180 -0
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/get.html +161 -0
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/set.html +182 -0
- data/vendor/local/share/groonga/doc/ja/html/developer.html +118 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/com.html +136 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/document.html +159 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/query.html +336 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/test.html +220 -0
- data/vendor/local/share/groonga/doc/ja/html/execfile.html +370 -0
- data/vendor/local/share/groonga/doc/ja/html/expr.html +157 -0
- data/vendor/local/share/groonga/doc/ja/html/functions.html +122 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/edit_distance.html +162 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_distance.html +170 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_circle.html +173 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_rectangle.html +172 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/now.html +152 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/rand.html +159 -0
- data/vendor/local/share/groonga/doc/ja/html/genindex.html +227 -0
- data/vendor/local/share/groonga/doc/ja/html/grnslap.html +183 -0
- data/vendor/local/share/groonga/doc/ja/html/grntest.html +368 -0
- data/vendor/local/share/groonga/doc/ja/html/http.html +163 -0
- data/vendor/local/share/groonga/doc/ja/html/index.html +291 -0
- data/vendor/local/share/groonga/doc/ja/html/install.html +228 -0
- data/vendor/local/share/groonga/doc/ja/html/news.html +310 -0
- data/vendor/local/share/groonga/doc/ja/html/objects.inv +0 -0
- data/vendor/local/share/groonga/doc/ja/html/process.html +120 -0
- data/vendor/local/share/groonga/doc/ja/html/pseudo_column.html +147 -0
- data/vendor/local/share/groonga/doc/ja/html/reference.html +174 -0
- data/vendor/local/share/groonga/doc/ja/html/search.html +96 -0
- data/vendor/local/share/groonga/doc/ja/html/searchindex.js +1 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial.html +172 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial01.html +388 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial02.html +214 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial03.html +183 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial04.html +212 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial05.html +169 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial06.html +209 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial07.html +212 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial08.html +139 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial09.html +114 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial10.html +458 -0
- data/vendor/local/share/groonga/doc/ja/html/type.html +217 -0
- data/vendor/local/share/groonga/doc/ja/source/__init__.py +0 -0
- data/vendor/local/share/groonga/doc/ja/source/characteristic.txt +56 -0
- data/vendor/local/share/groonga/doc/ja/source/commands.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/cache_limit.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/check.txt +164 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/clearlock.txt +61 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/column_create.txt +93 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/column_list.txt +97 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/column_remove.txt +58 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/define_selector.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/defrag.txt +57 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/delete.txt +68 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/dump.txt +62 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/load.txt +98 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/log_level.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/log_put.txt +69 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/log_reopen.txt +66 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/quit.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/select.txt +247 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/shutdown.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/status.txt +59 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/table_create.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/table_list.txt +87 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/table_remove.txt +50 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/view_add.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/add.txt +102 -0
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/get.txt +78 -0
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/set.txt +103 -0
- data/vendor/local/share/groonga/doc/ja/source/conf.py +265 -0
- data/vendor/local/share/groonga/doc/ja/source/developer.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/com.txt +18 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/document.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/query.txt +212 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/test.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-1.log +6 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-10.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-11.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-12.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-13.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-14.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-15.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-16.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-17.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-2.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-3.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-4.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-7.log +16 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-8.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-9.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-1.log +8 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-2.log +6 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-3.log +12 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-1.log +18 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-2.log +10 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-3.log +10 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-1.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-2.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-3.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-4.log +13 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-7.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-1.log +24 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-2.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-3.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-4.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-1.log +25 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-2.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-3.log +21 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-4.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-1.log +22 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-2.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-3.log +20 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-4.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial08-1.log +14 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-1.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-10.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-2.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-3.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-4.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-7.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-8.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-9.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/execfile.txt +226 -0
- data/vendor/local/share/groonga/doc/ja/source/expr.txt +43 -0
- data/vendor/local/share/groonga/doc/ja/source/functions.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/edit_distance.txt +48 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_distance.txt +51 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_circle.txt +54 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_rectangle.txt +55 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/now.txt +34 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/rand.txt +41 -0
- data/vendor/local/share/groonga/doc/ja/source/grnslap.txt +64 -0
- data/vendor/local/share/groonga/doc/ja/source/grntest.txt +259 -0
- data/vendor/local/share/groonga/doc/ja/source/http.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/source/index.txt +21 -0
- data/vendor/local/share/groonga/doc/ja/source/install.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/source/news.txt +199 -0
- data/vendor/local/share/groonga/doc/ja/source/process.txt +12 -0
- data/vendor/local/share/groonga/doc/ja/source/pseudo_column.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/rdoc.py +762 -0
- data/vendor/local/share/groonga/doc/ja/source/reference.txt +14 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial01.txt +293 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial02.txt +100 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial03.txt +72 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial04.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial05.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial06.txt +91 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial07.txt +92 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial08.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial09.txt +9 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial10.txt +486 -0
- data/vendor/local/share/groonga/doc/ja/source/type.txt +118 -0
- data/vendor/local/share/groonga/doc/ja/source/update_execution_example.py +113 -0
- data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +46 -0
- data/vendor/local/share/groonga/examples/dictionary/edict/edict_import.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +61 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro_import.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +46 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene_import.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/html/css/dictionary.css +3 -0
- data/vendor/local/share/groonga/examples/dictionary/html/index.html +26 -0
- data/vendor/local/share/groonga/examples/dictionary/html/js/dictionary.js +51 -0
- data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-1.4.2.min.js +154 -0
- data/vendor/local/share/groonga/examples/dictionary/init_db.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +42 -0
- data/vendor/local/share/groonga/examples/dictionary/readme.txt +71 -0
- data/vendor/local/share/man/man1/groonga.1 +5498 -0
- metadata +360 -118
- data/pkg-config.rb +0 -333
- data/pkg/rroonga-0.9.5/NEWS.ja.rdoc +0 -156
- data/pkg/rroonga-0.9.5/NEWS.rdoc +0 -158
- data/pkg/rroonga-0.9.5/README.ja.rdoc +0 -65
- data/pkg/rroonga-0.9.5/README.rdoc +0 -66
- data/pkg/rroonga-0.9.5/text/TUTORIAL.ja.rdoc +0 -394
- data/pkg/rroonga-0.9.5/text/expression.rdoc +0 -285
- data/test-unit/Rakefile +0 -40
- data/test-unit/TODO +0 -5
- data/test-unit/bin/testrb +0 -5
- data/test-unit/html/classic.html +0 -15
- data/test-unit/html/index.html +0 -25
- data/test-unit/html/index.html.ja +0 -27
- data/test-unit/lib/test/unit.rb +0 -323
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
- data/test-unit/lib/test/unit/assertions.rb +0 -1230
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -360
- data/test-unit/lib/test/unit/collector.rb +0 -36
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -144
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/color-scheme.rb +0 -102
- data/test-unit/lib/test/unit/color.rb +0 -96
- data/test-unit/lib/test/unit/diff.rb +0 -724
- data/test-unit/lib/test/unit/error.rb +0 -130
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -136
- data/test-unit/lib/test/unit/fixture.rb +0 -176
- data/test-unit/lib/test/unit/notification.rb +0 -129
- data/test-unit/lib/test/unit/omission.rb +0 -191
- data/test-unit/lib/test/unit/pending.rb +0 -150
- data/test-unit/lib/test/unit/priority.rb +0 -180
- data/test-unit/lib/test/unit/runner/console.rb +0 -52
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/runner/tap.rb +0 -8
- data/test-unit/lib/test/unit/testcase.rb +0 -476
- data/test-unit/lib/test/unit/testresult.rb +0 -89
- data/test-unit/lib/test/unit/testsuite.rb +0 -110
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -466
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -92
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -28
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -77
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -41
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/test_adder.rb +0 -20
- data/test-unit/sample/test_subtracter.rb +0 -20
- data/test-unit/sample/test_user.rb +0 -23
- data/test-unit/test/collector/test-descendant.rb +0 -133
- data/test-unit/test/collector/test-load.rb +0 -442
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_objectspace.rb +0 -100
- data/test-unit/test/run-test.rb +0 -15
- data/test-unit/test/test-attribute.rb +0 -86
- data/test-unit/test/test-color-scheme.rb +0 -67
- data/test-unit/test/test-color.rb +0 -47
- data/test-unit/test/test-diff.rb +0 -518
- data/test-unit/test/test-emacs-runner.rb +0 -60
- data/test-unit/test/test-fixture.rb +0 -287
- data/test-unit/test/test-notification.rb +0 -33
- data/test-unit/test/test-omission.rb +0 -81
- data/test-unit/test/test-pending.rb +0 -70
- data/test-unit/test/test-priority.rb +0 -119
- data/test-unit/test/test-testcase.rb +0 -544
- data/test-unit/test/test_assertions.rb +0 -1151
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -129
- data/test-unit/test/testunit-test-util.rb +0 -14
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test-method-owner-finder.rb +0 -38
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/vendor/local/lib/groonga/modules/functions/cast.dll +0 -0
@@ -0,0 +1,277 @@
|
|
1
|
+
/*
|
2
|
+
* default.css_t
|
3
|
+
* ~~~~~~~~~~~~~
|
4
|
+
*
|
5
|
+
* Sphinx stylesheet -- default theme.
|
6
|
+
*
|
7
|
+
* :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
|
8
|
+
* :license: BSD, see LICENSE for details.
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
@import url("basic.css");
|
13
|
+
|
14
|
+
/* -- page layout ----------------------------------------------------------- */
|
15
|
+
|
16
|
+
body {
|
17
|
+
font-family: #666666;
|
18
|
+
font-size: 100%;
|
19
|
+
background-color: #11303d;
|
20
|
+
color: #000;
|
21
|
+
margin: 0;
|
22
|
+
padding: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
div.document {
|
26
|
+
background-color: #1c4e63;
|
27
|
+
}
|
28
|
+
|
29
|
+
div.documentwrapper {
|
30
|
+
float: left;
|
31
|
+
width: 100%;
|
32
|
+
}
|
33
|
+
|
34
|
+
div.bodywrapper {
|
35
|
+
margin: 0 0 0 230px;
|
36
|
+
}
|
37
|
+
|
38
|
+
div.body {
|
39
|
+
background-color: #ffffff;
|
40
|
+
color: #000000;
|
41
|
+
padding: 0 20px 30px 20px;
|
42
|
+
}
|
43
|
+
div.bodywrapper {
|
44
|
+
margin: 0 230px 0 0;
|
45
|
+
}
|
46
|
+
|
47
|
+
div.footer {
|
48
|
+
color: #ffffff;
|
49
|
+
width: 100%;
|
50
|
+
padding: 9px 0 9px 0;
|
51
|
+
text-align: center;
|
52
|
+
font-size: 75%;
|
53
|
+
}
|
54
|
+
|
55
|
+
div.footer a {
|
56
|
+
color: #ffffff;
|
57
|
+
text-decoration: underline;
|
58
|
+
}
|
59
|
+
|
60
|
+
div.related {
|
61
|
+
background-color: #133f52;
|
62
|
+
line-height: 30px;
|
63
|
+
color: #ffffff;
|
64
|
+
}
|
65
|
+
|
66
|
+
div.related a {
|
67
|
+
color: #ffffff;
|
68
|
+
}
|
69
|
+
|
70
|
+
div.sphinxsidebar {
|
71
|
+
top: 30px;
|
72
|
+
bottom: 0;
|
73
|
+
margin: 0;
|
74
|
+
position: fixed;
|
75
|
+
overflow: auto;
|
76
|
+
height: auto;
|
77
|
+
float: right;
|
78
|
+
right: 0;
|
79
|
+
}
|
80
|
+
/* this is nice, but it it leads to hidden headings when jumping
|
81
|
+
to an anchor */
|
82
|
+
/*
|
83
|
+
div.related {
|
84
|
+
position: fixed;
|
85
|
+
}
|
86
|
+
|
87
|
+
div.documentwrapper {
|
88
|
+
margin-top: 30px;
|
89
|
+
}
|
90
|
+
*/
|
91
|
+
|
92
|
+
div.sphinxsidebar h3 {
|
93
|
+
font-family: 'Trebuchet MS', sans-serif;
|
94
|
+
color: #ffffff;
|
95
|
+
font-size: 1.4em;
|
96
|
+
font-weight: normal;
|
97
|
+
margin: 0;
|
98
|
+
padding: 0;
|
99
|
+
}
|
100
|
+
|
101
|
+
div.sphinxsidebar h3 a {
|
102
|
+
color: #ffffff;
|
103
|
+
}
|
104
|
+
|
105
|
+
div.sphinxsidebar h4 {
|
106
|
+
font-family: 'Trebuchet MS', sans-serif;
|
107
|
+
color: #ffffff;
|
108
|
+
font-size: 1.3em;
|
109
|
+
font-weight: normal;
|
110
|
+
margin: 5px 0 0 0;
|
111
|
+
padding: 0;
|
112
|
+
}
|
113
|
+
|
114
|
+
div.sphinxsidebar p {
|
115
|
+
color: #ffffff;
|
116
|
+
}
|
117
|
+
|
118
|
+
div.sphinxsidebar p.topless {
|
119
|
+
margin: 5px 10px 10px 10px;
|
120
|
+
}
|
121
|
+
|
122
|
+
div.sphinxsidebar ul {
|
123
|
+
margin: 10px;
|
124
|
+
padding: 0;
|
125
|
+
color: #ffffff;
|
126
|
+
}
|
127
|
+
|
128
|
+
div.sphinxsidebar a {
|
129
|
+
color: #98dbcc;
|
130
|
+
}
|
131
|
+
|
132
|
+
div.sphinxsidebar input {
|
133
|
+
border: 1px solid #98dbcc;
|
134
|
+
font-family: sans-serif;
|
135
|
+
font-size: 1em;
|
136
|
+
}
|
137
|
+
|
138
|
+
|
139
|
+
/* -- hyperlink styles ------------------------------------------------------ */
|
140
|
+
|
141
|
+
a {
|
142
|
+
color: #355f7c;
|
143
|
+
text-decoration: none;
|
144
|
+
}
|
145
|
+
|
146
|
+
a:visited {
|
147
|
+
color: #355f7c;
|
148
|
+
text-decoration: none;
|
149
|
+
}
|
150
|
+
|
151
|
+
a:hover {
|
152
|
+
text-decoration: underline;
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
/* -- body styles ----------------------------------------------------------- */
|
158
|
+
|
159
|
+
div.body h1,
|
160
|
+
div.body h2,
|
161
|
+
div.body h3,
|
162
|
+
div.body h4,
|
163
|
+
div.body h5,
|
164
|
+
div.body h6 {
|
165
|
+
font-family: 'Trebuchet MS', sans-serif;
|
166
|
+
background-color: #f2f2f2;
|
167
|
+
font-weight: normal;
|
168
|
+
color: #20435c;
|
169
|
+
border-bottom: 1px solid #ccc;
|
170
|
+
margin: 20px -20px 10px -20px;
|
171
|
+
padding: 3px 0 3px 10px;
|
172
|
+
}
|
173
|
+
|
174
|
+
div.body h1 { margin-top: 0; font-size: 200%; }
|
175
|
+
div.body h2 { font-size: 160%; }
|
176
|
+
div.body h3 { font-size: 140%; }
|
177
|
+
div.body h4 { font-size: 120%; }
|
178
|
+
div.body h5 { font-size: 110%; }
|
179
|
+
div.body h6 { font-size: 100%; }
|
180
|
+
|
181
|
+
a.headerlink {
|
182
|
+
color: #c60f0f;
|
183
|
+
font-size: 0.8em;
|
184
|
+
padding: 0 4px 0 4px;
|
185
|
+
text-decoration: none;
|
186
|
+
}
|
187
|
+
|
188
|
+
a.headerlink:hover {
|
189
|
+
background-color: #c60f0f;
|
190
|
+
color: white;
|
191
|
+
}
|
192
|
+
|
193
|
+
div.body p, div.body dd, div.body li {
|
194
|
+
text-align: justify;
|
195
|
+
line-height: 130%;
|
196
|
+
}
|
197
|
+
|
198
|
+
div.admonition p.admonition-title + p {
|
199
|
+
display: inline;
|
200
|
+
}
|
201
|
+
|
202
|
+
div.admonition p {
|
203
|
+
margin-bottom: 5px;
|
204
|
+
}
|
205
|
+
|
206
|
+
div.admonition pre {
|
207
|
+
margin-bottom: 5px;
|
208
|
+
}
|
209
|
+
|
210
|
+
div.admonition ul, div.admonition ol {
|
211
|
+
margin-bottom: 5px;
|
212
|
+
}
|
213
|
+
|
214
|
+
div.note {
|
215
|
+
background-color: #eee;
|
216
|
+
border: 1px solid #ccc;
|
217
|
+
}
|
218
|
+
|
219
|
+
div.seealso {
|
220
|
+
background-color: #ffc;
|
221
|
+
border: 1px solid #ff6;
|
222
|
+
}
|
223
|
+
|
224
|
+
div.topic {
|
225
|
+
background-color: #eee;
|
226
|
+
}
|
227
|
+
|
228
|
+
div.warning {
|
229
|
+
background-color: #ffe4e4;
|
230
|
+
border: 1px solid #f66;
|
231
|
+
}
|
232
|
+
|
233
|
+
p.admonition-title {
|
234
|
+
display: inline;
|
235
|
+
}
|
236
|
+
|
237
|
+
p.admonition-title:after {
|
238
|
+
content: ":";
|
239
|
+
}
|
240
|
+
|
241
|
+
pre {
|
242
|
+
padding: 5px;
|
243
|
+
background-color: #eeffcc;
|
244
|
+
color: #333333;
|
245
|
+
line-height: 120%;
|
246
|
+
border: 1px solid #ac9;
|
247
|
+
border-left: none;
|
248
|
+
border-right: none;
|
249
|
+
}
|
250
|
+
|
251
|
+
tt {
|
252
|
+
background-color: #ecf0f3;
|
253
|
+
padding: 0 1px 0 1px;
|
254
|
+
font-size: 0.95em;
|
255
|
+
}
|
256
|
+
|
257
|
+
th {
|
258
|
+
background-color: #ede;
|
259
|
+
}
|
260
|
+
|
261
|
+
.warning tt {
|
262
|
+
background: #efc2c2;
|
263
|
+
}
|
264
|
+
|
265
|
+
.note tt {
|
266
|
+
background: #d6d6d6;
|
267
|
+
}
|
268
|
+
|
269
|
+
.viewcode-back {
|
270
|
+
font-family: #666666;
|
271
|
+
}
|
272
|
+
|
273
|
+
div.viewcode-block:target {
|
274
|
+
background-color: #f4debf;
|
275
|
+
border-top: 1px solid #ac9;
|
276
|
+
border-bottom: 1px solid #ac9;
|
277
|
+
}
|
@@ -0,0 +1,247 @@
|
|
1
|
+
/*
|
2
|
+
* doctools.js
|
3
|
+
* ~~~~~~~~~~~
|
4
|
+
*
|
5
|
+
* Sphinx JavaScript utilties for all documentation.
|
6
|
+
*
|
7
|
+
* :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
|
8
|
+
* :license: BSD, see LICENSE for details.
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
/**
|
13
|
+
* select a different prefix for underscore
|
14
|
+
*/
|
15
|
+
$u = _.noConflict();
|
16
|
+
|
17
|
+
/**
|
18
|
+
* make the code below compatible with browsers without
|
19
|
+
* an installed firebug like debugger
|
20
|
+
if (!window.console || !console.firebug) {
|
21
|
+
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
|
22
|
+
"dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace",
|
23
|
+
"profile", "profileEnd"];
|
24
|
+
window.console = {};
|
25
|
+
for (var i = 0; i < names.length; ++i)
|
26
|
+
window.console[names[i]] = function() {};
|
27
|
+
}
|
28
|
+
*/
|
29
|
+
|
30
|
+
/**
|
31
|
+
* small helper function to urldecode strings
|
32
|
+
*/
|
33
|
+
jQuery.urldecode = function(x) {
|
34
|
+
return decodeURIComponent(x).replace(/\+/g, ' ');
|
35
|
+
}
|
36
|
+
|
37
|
+
/**
|
38
|
+
* small helper function to urlencode strings
|
39
|
+
*/
|
40
|
+
jQuery.urlencode = encodeURIComponent;
|
41
|
+
|
42
|
+
/**
|
43
|
+
* This function returns the parsed url parameters of the
|
44
|
+
* current request. Multiple values per key are supported,
|
45
|
+
* it will always return arrays of strings for the value parts.
|
46
|
+
*/
|
47
|
+
jQuery.getQueryParameters = function(s) {
|
48
|
+
if (typeof s == 'undefined')
|
49
|
+
s = document.location.search;
|
50
|
+
var parts = s.substr(s.indexOf('?') + 1).split('&');
|
51
|
+
var result = {};
|
52
|
+
for (var i = 0; i < parts.length; i++) {
|
53
|
+
var tmp = parts[i].split('=', 2);
|
54
|
+
var key = jQuery.urldecode(tmp[0]);
|
55
|
+
var value = jQuery.urldecode(tmp[1]);
|
56
|
+
if (key in result)
|
57
|
+
result[key].push(value);
|
58
|
+
else
|
59
|
+
result[key] = [value];
|
60
|
+
}
|
61
|
+
return result;
|
62
|
+
};
|
63
|
+
|
64
|
+
/**
|
65
|
+
* small function to check if an array contains
|
66
|
+
* a given item.
|
67
|
+
*/
|
68
|
+
jQuery.contains = function(arr, item) {
|
69
|
+
for (var i = 0; i < arr.length; i++) {
|
70
|
+
if (arr[i] == item)
|
71
|
+
return true;
|
72
|
+
}
|
73
|
+
return false;
|
74
|
+
};
|
75
|
+
|
76
|
+
/**
|
77
|
+
* highlight a given string on a jquery object by wrapping it in
|
78
|
+
* span elements with the given class name.
|
79
|
+
*/
|
80
|
+
jQuery.fn.highlightText = function(text, className) {
|
81
|
+
function highlight(node) {
|
82
|
+
if (node.nodeType == 3) {
|
83
|
+
var val = node.nodeValue;
|
84
|
+
var pos = val.toLowerCase().indexOf(text);
|
85
|
+
if (pos >= 0 && !jQuery(node.parentNode).hasClass(className)) {
|
86
|
+
var span = document.createElement("span");
|
87
|
+
span.className = className;
|
88
|
+
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
|
89
|
+
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
|
90
|
+
document.createTextNode(val.substr(pos + text.length)),
|
91
|
+
node.nextSibling));
|
92
|
+
node.nodeValue = val.substr(0, pos);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
else if (!jQuery(node).is("button, select, textarea")) {
|
96
|
+
jQuery.each(node.childNodes, function() {
|
97
|
+
highlight(this);
|
98
|
+
});
|
99
|
+
}
|
100
|
+
}
|
101
|
+
return this.each(function() {
|
102
|
+
highlight(this);
|
103
|
+
});
|
104
|
+
};
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Small JavaScript module for the documentation.
|
108
|
+
*/
|
109
|
+
var Documentation = {
|
110
|
+
|
111
|
+
init : function() {
|
112
|
+
this.fixFirefoxAnchorBug();
|
113
|
+
this.highlightSearchWords();
|
114
|
+
this.initIndexTable();
|
115
|
+
},
|
116
|
+
|
117
|
+
/**
|
118
|
+
* i18n support
|
119
|
+
*/
|
120
|
+
TRANSLATIONS : {},
|
121
|
+
PLURAL_EXPR : function(n) { return n == 1 ? 0 : 1; },
|
122
|
+
LOCALE : 'unknown',
|
123
|
+
|
124
|
+
// gettext and ngettext don't access this so that the functions
|
125
|
+
// can safely bound to a different name (_ = Documentation.gettext)
|
126
|
+
gettext : function(string) {
|
127
|
+
var translated = Documentation.TRANSLATIONS[string];
|
128
|
+
if (typeof translated == 'undefined')
|
129
|
+
return string;
|
130
|
+
return (typeof translated == 'string') ? translated : translated[0];
|
131
|
+
},
|
132
|
+
|
133
|
+
ngettext : function(singular, plural, n) {
|
134
|
+
var translated = Documentation.TRANSLATIONS[singular];
|
135
|
+
if (typeof translated == 'undefined')
|
136
|
+
return (n == 1) ? singular : plural;
|
137
|
+
return translated[Documentation.PLURALEXPR(n)];
|
138
|
+
},
|
139
|
+
|
140
|
+
addTranslations : function(catalog) {
|
141
|
+
for (var key in catalog.messages)
|
142
|
+
this.TRANSLATIONS[key] = catalog.messages[key];
|
143
|
+
this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')');
|
144
|
+
this.LOCALE = catalog.locale;
|
145
|
+
},
|
146
|
+
|
147
|
+
/**
|
148
|
+
* add context elements like header anchor links
|
149
|
+
*/
|
150
|
+
addContextElements : function() {
|
151
|
+
$('div[id] > :header:first').each(function() {
|
152
|
+
$('<a class="headerlink">\u00B6</a>').
|
153
|
+
attr('href', '#' + this.id).
|
154
|
+
attr('title', _('Permalink to this headline')).
|
155
|
+
appendTo(this);
|
156
|
+
});
|
157
|
+
$('dt[id]').each(function() {
|
158
|
+
$('<a class="headerlink">\u00B6</a>').
|
159
|
+
attr('href', '#' + this.id).
|
160
|
+
attr('title', _('Permalink to this definition')).
|
161
|
+
appendTo(this);
|
162
|
+
});
|
163
|
+
},
|
164
|
+
|
165
|
+
/**
|
166
|
+
* workaround a firefox stupidity
|
167
|
+
*/
|
168
|
+
fixFirefoxAnchorBug : function() {
|
169
|
+
if (document.location.hash && $.browser.mozilla)
|
170
|
+
window.setTimeout(function() {
|
171
|
+
document.location.href += '';
|
172
|
+
}, 10);
|
173
|
+
},
|
174
|
+
|
175
|
+
/**
|
176
|
+
* highlight the search words provided in the url in the text
|
177
|
+
*/
|
178
|
+
highlightSearchWords : function() {
|
179
|
+
var params = $.getQueryParameters();
|
180
|
+
var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : [];
|
181
|
+
if (terms.length) {
|
182
|
+
var body = $('div.body');
|
183
|
+
window.setTimeout(function() {
|
184
|
+
$.each(terms, function() {
|
185
|
+
body.highlightText(this.toLowerCase(), 'highlighted');
|
186
|
+
});
|
187
|
+
}, 10);
|
188
|
+
$('<li class="highlight-link"><a href="javascript:Documentation.' +
|
189
|
+
'hideSearchWords()">' + _('Hide Search Matches') + '</a></li>')
|
190
|
+
.appendTo($('.sidebar .this-page-menu'));
|
191
|
+
}
|
192
|
+
},
|
193
|
+
|
194
|
+
/**
|
195
|
+
* init the domain index toggle buttons
|
196
|
+
*/
|
197
|
+
initIndexTable : function() {
|
198
|
+
var togglers = $('img.toggler').click(function() {
|
199
|
+
var src = $(this).attr('src');
|
200
|
+
var idnum = $(this).attr('id').substr(7);
|
201
|
+
$('tr.cg-' + idnum).toggle();
|
202
|
+
if (src.substr(-9) == 'minus.png')
|
203
|
+
$(this).attr('src', src.substr(0, src.length-9) + 'plus.png');
|
204
|
+
else
|
205
|
+
$(this).attr('src', src.substr(0, src.length-8) + 'minus.png');
|
206
|
+
}).css('display', '');
|
207
|
+
if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) {
|
208
|
+
togglers.click();
|
209
|
+
}
|
210
|
+
},
|
211
|
+
|
212
|
+
/**
|
213
|
+
* helper function to hide the search marks again
|
214
|
+
*/
|
215
|
+
hideSearchWords : function() {
|
216
|
+
$('.sidebar .this-page-menu li.highlight-link').fadeOut(300);
|
217
|
+
$('span.highlighted').removeClass('highlighted');
|
218
|
+
},
|
219
|
+
|
220
|
+
/**
|
221
|
+
* make the url absolute
|
222
|
+
*/
|
223
|
+
makeURL : function(relativeURL) {
|
224
|
+
return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL;
|
225
|
+
},
|
226
|
+
|
227
|
+
/**
|
228
|
+
* get the current relative url
|
229
|
+
*/
|
230
|
+
getCurrentURL : function() {
|
231
|
+
var path = document.location.pathname;
|
232
|
+
var parts = path.split(/\//);
|
233
|
+
$.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() {
|
234
|
+
if (this == '..')
|
235
|
+
parts.pop();
|
236
|
+
});
|
237
|
+
var url = parts.join('/');
|
238
|
+
return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
|
239
|
+
}
|
240
|
+
};
|
241
|
+
|
242
|
+
// quick alias for translations
|
243
|
+
_ = Documentation.gettext;
|
244
|
+
|
245
|
+
$(document).ready(function() {
|
246
|
+
Documentation.init();
|
247
|
+
});
|