rroonga 5.0.1-x86-mingw32 → 5.0.2-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
 - data/README.md +1 -1
 - data/ext/groonga/rb-grn-logger.c +159 -3
 - data/ext/groonga/rb-grn-plugin.c +17 -1
 - data/ext/groonga/rb-grn-query-logger.c +129 -3
 - data/ext/groonga/rb-grn.h +1 -1
 - data/lib/1.9/groonga.so +0 -0
 - data/lib/2.0/groonga.so +0 -0
 - data/lib/2.1/groonga.so +0 -0
 - data/lib/2.2/groonga.so +0 -0
 - data/lib/groonga/query-logger.rb +48 -3
 - data/lib/groonga/schema.rb +16 -3
 - data/rroonga-build.rb +3 -3
 - data/test/test-logger.rb +97 -2
 - data/test/test-plugin.rb +5 -1
 - data/test/test-query-logger.rb +149 -0
 - data/test/test-schema.rb +19 -0
 - data/vendor/local/bin/grndb.exe +0 -0
 - data/vendor/local/bin/groonga-benchmark.exe +0 -0
 - data/vendor/local/bin/groonga.exe +0 -0
 - data/vendor/local/bin/libgroonga-0.dll +0 -0
 - data/vendor/local/bin/libmecab-1.dll +0 -0
 - data/vendor/local/bin/libmsgpack-4.dll +0 -0
 - data/vendor/local/bin/libmsgpackc-2.dll +0 -0
 - data/vendor/local/bin/libonig-5.dll +0 -0
 - data/vendor/local/bin/lz4.exe +0 -0
 - data/vendor/local/bin/lz4c.exe +0 -0
 - data/vendor/local/bin/lz4cat +0 -0
 - data/vendor/local/bin/mecab-config +2 -2
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/bin/onig-config +1 -1
 - data/vendor/local/bin/zlib1.dll +0 -0
 - data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
 - data/vendor/local/include/groonga/groonga.h +1 -0
 - data/vendor/local/include/groonga/groonga/groonga.h +12 -6
 - data/vendor/local/include/groonga/groonga/portability.h +158 -0
 - data/vendor/local/include/msgpack.h +1 -0
 - data/vendor/local/include/msgpack.hpp +2 -1
 - data/vendor/local/include/msgpack/adaptor/bool.hpp +58 -0
 - data/vendor/local/include/msgpack/{type/bool.hpp → adaptor/bool_fwd.hpp} +11 -27
 - data/vendor/local/include/msgpack/adaptor/char_ptr.hpp +78 -0
 - data/vendor/local/include/msgpack/adaptor/char_ptr_fwd.hpp +43 -0
 - data/vendor/local/include/msgpack/adaptor/check_container_size.hpp +61 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/array.hpp +76 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/array_char.hpp +84 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/array_char_fwd.hpp +45 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/array_fwd.hpp +44 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/forward_list.hpp +75 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/forward_list_fwd.hpp +44 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/tuple.hpp +152 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/tuple_fwd.hpp +62 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/unordered_map.hpp +142 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/unordered_map_fwd.hpp +53 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/unordered_set.hpp +134 -0
 - data/vendor/local/include/msgpack/adaptor/cpp11/unordered_set_fwd.hpp +52 -0
 - data/vendor/local/include/msgpack/adaptor/define.hpp +29 -0
 - data/vendor/local/include/msgpack/adaptor/deque.hpp +83 -0
 - data/vendor/local/include/msgpack/adaptor/deque_fwd.hpp +40 -0
 - data/vendor/local/include/msgpack/adaptor/detail/cpp03_define.hpp +3475 -0
 - data/vendor/local/include/msgpack/adaptor/detail/cpp03_msgpack_tuple.hpp +13918 -0
 - data/vendor/local/include/msgpack/adaptor/detail/cpp03_msgpack_tuple_fwd.hpp +4341 -0
 - data/vendor/local/include/msgpack/adaptor/detail/cpp11_define.hpp +184 -0
 - data/vendor/local/include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp +212 -0
 - data/vendor/local/include/msgpack/adaptor/detail/cpp11_msgpack_tuple_fwd.hpp +84 -0
 - data/vendor/local/include/msgpack/adaptor/fixint.hpp +212 -0
 - data/vendor/local/include/msgpack/adaptor/fixint_fwd.hpp +100 -0
 - data/vendor/local/include/msgpack/adaptor/float.hpp +105 -0
 - data/vendor/local/include/msgpack/adaptor/float_fwd.hpp +44 -0
 - data/vendor/local/include/msgpack/adaptor/int.hpp +308 -0
 - data/vendor/local/include/msgpack/adaptor/int_fwd.hpp +100 -0
 - data/vendor/local/include/msgpack/adaptor/list.hpp +83 -0
 - data/vendor/local/include/msgpack/adaptor/list_fwd.hpp +40 -0
 - data/vendor/local/include/msgpack/adaptor/map.hpp +219 -0
 - data/vendor/local/include/msgpack/adaptor/map_fwd.hpp +69 -0
 - data/vendor/local/include/msgpack/adaptor/msgpack_tuple.hpp +29 -0
 - data/vendor/local/include/msgpack/adaptor/msgpack_tuple_fwd.hpp +29 -0
 - data/vendor/local/include/msgpack/adaptor/nil.hpp +68 -0
 - data/vendor/local/include/msgpack/adaptor/nil_fwd.hpp +51 -0
 - data/vendor/local/include/msgpack/adaptor/pair.hpp +63 -0
 - data/vendor/local/include/msgpack/{type/pair.hpp → adaptor/pair_fwd.hpp} +10 -29
 - data/vendor/local/include/msgpack/adaptor/raw.hpp +98 -0
 - data/vendor/local/include/msgpack/{type/nil.hpp → adaptor/raw_fwd.hpp} +15 -30
 - data/vendor/local/include/msgpack/adaptor/set.hpp +134 -0
 - data/vendor/local/include/msgpack/adaptor/set_fwd.hpp +52 -0
 - data/vendor/local/include/msgpack/adaptor/string.hpp +78 -0
 - data/vendor/local/include/msgpack/adaptor/string_fwd.hpp +42 -0
 - data/vendor/local/include/msgpack/adaptor/tr1/unordered_map.hpp +164 -0
 - data/vendor/local/include/msgpack/adaptor/tr1/unordered_map_fwd.hpp +75 -0
 - data/vendor/local/include/msgpack/adaptor/tr1/unordered_set.hpp +157 -0
 - data/vendor/local/include/msgpack/adaptor/tr1/unordered_set_fwd.hpp +75 -0
 - data/vendor/local/include/msgpack/adaptor/vector.hpp +87 -0
 - data/vendor/local/include/msgpack/adaptor/vector_bool.hpp +80 -0
 - data/vendor/local/include/msgpack/adaptor/vector_bool_fwd.hpp +40 -0
 - data/vendor/local/include/msgpack/adaptor/vector_char.hpp +81 -0
 - data/vendor/local/include/msgpack/adaptor/vector_char_fwd.hpp +42 -0
 - data/vendor/local/include/msgpack/adaptor/vector_fwd.hpp +42 -0
 - data/vendor/local/include/msgpack/cpp_config.hpp +109 -0
 - data/vendor/local/include/msgpack/detail/cpp03_zone.hpp +662 -0
 - data/vendor/local/include/msgpack/detail/cpp11_zone.hpp +368 -0
 - data/vendor/local/include/msgpack/fbuffer.h +3 -4
 - data/vendor/local/include/msgpack/fbuffer.hpp +24 -16
 - data/vendor/local/include/msgpack/gcc_atomic.h +33 -0
 - data/vendor/local/include/msgpack/iterator.hpp +42 -0
 - data/vendor/local/include/msgpack/object.h +51 -30
 - data/vendor/local/include/msgpack/object.hpp +564 -273
 - data/vendor/local/include/msgpack/object_fwd.hpp +182 -0
 - data/vendor/local/include/msgpack/pack.h +23 -17
 - data/vendor/local/include/msgpack/pack.hpp +889 -164
 - data/vendor/local/include/msgpack/pack_define.h +2 -2
 - data/vendor/local/include/msgpack/pack_template.h +452 -356
 - data/vendor/local/include/msgpack/sbuffer.h +43 -37
 - data/vendor/local/include/msgpack/sbuffer.hpp +98 -76
 - data/vendor/local/include/msgpack/sysdep.h +48 -53
 - data/vendor/local/include/msgpack/type.hpp +35 -17
 - data/vendor/local/include/msgpack/unpack.h +62 -44
 - data/vendor/local/include/msgpack/unpack.hpp +1578 -217
 - data/vendor/local/include/msgpack/unpack_define.h +49 -47
 - data/vendor/local/include/msgpack/unpack_template.h +344 -284
 - data/vendor/local/include/msgpack/util.h +23 -0
 - data/vendor/local/include/msgpack/version.h +12 -6
 - data/vendor/local/include/msgpack/version.hpp +44 -0
 - data/vendor/local/include/msgpack/version_master.h +3 -0
 - data/vendor/local/include/msgpack/versioning.hpp +77 -0
 - data/vendor/local/include/msgpack/vrefbuffer.h +40 -34
 - data/vendor/local/include/msgpack/vrefbuffer.hpp +261 -64
 - data/vendor/local/include/msgpack/zbuffer.h +79 -79
 - data/vendor/local/include/msgpack/zbuffer.hpp +136 -67
 - data/vendor/local/include/msgpack/zone.h +65 -42
 - data/vendor/local/include/msgpack/zone.hpp +10 -445
 - data/vendor/local/include/msgpack_fwd.hpp +28 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.la +41 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
 - data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.la +2 -2
 - data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.la +2 -2
 - data/vendor/local/lib/groonga/plugins/sharding.rb +1 -0
 - data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +17 -45
 - data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +15 -6
 - data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +63 -75
 - data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +65 -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/plugins/suggest/suggest.la +2 -2
 - data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
 - data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +38 -41
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +3 -0
 - data/vendor/local/lib/libgroonga.a +0 -0
 - data/vendor/local/lib/libgroonga.dll.a +0 -0
 - data/vendor/local/lib/libgroonga.la +2 -2
 - data/vendor/local/lib/liblz4.a +0 -0
 - data/vendor/local/lib/liblz4.dll +0 -0
 - data/vendor/local/lib/liblz4.dll.1 +0 -0
 - data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
 - data/vendor/local/lib/libmecab.a +0 -0
 - data/vendor/local/lib/libmecab.dll.a +0 -0
 - data/vendor/local/lib/libmecab.la +2 -2
 - data/vendor/local/lib/libmsgpack.a +0 -0
 - data/vendor/local/lib/libmsgpack.dll.a +0 -0
 - data/vendor/local/lib/libmsgpack.la +4 -4
 - data/vendor/local/lib/libmsgpackc.a +0 -0
 - data/vendor/local/lib/libmsgpackc.dll.a +0 -0
 - data/vendor/local/lib/libmsgpackc.la +2 -2
 - data/vendor/local/lib/libonig.a +0 -0
 - data/vendor/local/lib/libonig.dll.a +0 -0
 - data/vendor/local/lib/libonig.la +2 -2
 - data/vendor/local/lib/libz.a +0 -0
 - data/vendor/local/lib/libz.dll.a +0 -0
 - data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
 - data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
 - data/vendor/local/lib/pkgconfig/msgpack.pc +2 -2
 - data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
 - data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
 - data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
 - data/vendor/local/sbin/groonga-httpd-restart +1 -1
 - data/vendor/local/sbin/groonga-httpd.exe +0 -0
 - data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +69 -52
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +6 -6
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +56 -5
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +7 -7
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +6 -5
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +14 -14
 - data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +93 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/0.x.txt +2 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/1.1.x.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +10 -10
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/1.3.x.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +13 -13
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +13 -13
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/senna.txt +13 -13
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/dump.txt +135 -27
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +148 -7
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_size.txt +76 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorer.txt +2 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/server/gqtp.txt +38 -6
 - data/vendor/local/share/doc/groonga/en/html/_sources/spec/gqtp.txt +2 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +6 -4
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/client.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/community.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +14 -13
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +58 -42
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/contribution/report.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/development.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/genindex.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/index.html +15 -9
 - data/vendor/local/share/doc/groonga/en/html/install.html +8 -7
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +12 -12
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +70 -13
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +9 -9
 - data/vendor/local/share/doc/groonga/en/html/install/others.html +17 -17
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +9 -9
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +12 -11
 - data/vendor/local/share/doc/groonga/en/html/install/windows.html +21 -21
 - data/vendor/local/share/doc/groonga/en/html/limitations.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/news.html +200 -103
 - data/vendor/local/share/doc/groonga/en/html/news/0.x.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/news/2.x.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/news/4.x.html +27 -27
 - data/vendor/local/share/doc/groonga/en/html/news/senna.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/en/html/reference.html +8 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/column.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +141 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +146 -14
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +7 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +11 -11
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +248 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/operations.html +11 -11
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +8 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/server.html +11 -7
 - data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +53 -8
 - data/vendor/local/share/doc/groonga/en/html/server/http.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/server/memcached.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/spec.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +10 -7
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +15 -11
 - data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +69 -52
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +56 -5
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +6 -5
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +14 -14
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +93 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/0.x.txt +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.1.x.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.3.x.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +13 -13
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +13 -13
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/senna.txt +13 -13
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/dump.txt +135 -27
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +148 -7
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_size.txt +76 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorer.txt +2 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/server/gqtp.txt +38 -6
 - data/vendor/local/share/doc/groonga/ja/html/_sources/spec/gqtp.txt +2 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +6 -4
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/client.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/community.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +14 -13
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +58 -42
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/development.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/genindex.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/index.html +15 -9
 - data/vendor/local/share/doc/groonga/ja/html/install.html +8 -7
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +63 -11
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/others.html +21 -18
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +10 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +20 -20
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/news.html +234 -106
 - data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +27 -27
 - data/vendor/local/share/doc/groonga/ja/html/news/senna.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference.html +8 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/column.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/command.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +141 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +25 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +23 -29
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +146 -14
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +7 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +11 -11
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +249 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +11 -11
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/server.html +11 -7
 - data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +53 -8
 - data/vendor/local/share/doc/groonga/ja/html/server/http.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/package.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +10 -7
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +15 -11
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +6 -6
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/groonga-admin.css +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_217bc0_256x240.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_469bdd_256x240.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/jquery-ui-1.8.18.custom.css +0 -0
 - data/vendor/local/share/groonga/html/admin.old/favicon.ico +0 -0
 - data/vendor/local/share/groonga/html/admin.old/favicon.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/favicon.svg +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/images/groonga.png +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/images/groonga.svg +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/images/loading.gif +0 -0
 - data/vendor/local/share/groonga/html/admin.old/index.html +297 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/index.ja.html +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/js/groonga-admin.ja.js +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/js/groonga-admin.js +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery-1.7.2.js +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery-ui-1.8.18.custom.js +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery.flot-0.7.js +0 -0
 - data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery.flot.license.txt +0 -0
 - data/vendor/local/share/groonga/html/admin/.htaccess +543 -0
 - data/vendor/local/share/groonga/html/admin/404.html +133 -0
 - data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
 - data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +229 -0
 - data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
 - data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
 - data/vendor/local/share/groonga/html/admin/images/yeoman.d2754b85.png +0 -0
 - data/vendor/local/share/groonga/html/admin/index.html +9 -297
 - data/vendor/local/share/groonga/html/admin/robots.txt +3 -0
 - data/vendor/local/share/groonga/html/admin/scripts/oldieshim.a466b7b1.js +1 -0
 - data/vendor/local/share/groonga/html/admin/scripts/scripts.87083bfd.js +1 -0
 - data/vendor/local/share/groonga/html/admin/scripts/vendor.fa48c0ac.js +13 -0
 - data/vendor/local/share/groonga/html/admin/styles/main.0390285b.css +1 -0
 - data/vendor/local/share/groonga/html/admin/styles/vendor.f4ae649a.css +10 -0
 - data/vendor/local/share/groonga/html/admin/views/columns/new.html +1 -0
 - data/vendor/local/share/groonga/html/admin/views/columns/show.html +1 -0
 - data/vendor/local/share/groonga/html/admin/views/tables/index.html +1 -0
 - data/vendor/local/share/groonga/html/admin/views/tables/new.html +29 -0
 - data/vendor/local/share/groonga/html/admin/views/tables/search.html +1 -0
 - data/vendor/local/share/groonga/html/admin/views/tables/show.html +1 -0
 - data/vendor/local/share/groonga/html/admin/views/top.html +1 -0
 - data/vendor/local/share/license/groonga-admin/LICENSE +502 -0
 - data/vendor/local/share/license/groonga-admin/README.md +79 -0
 - data/vendor/local/share/license/msgpack/AUTHORS +0 -1
 - data/vendor/local/share/man/ja/man1/groonga.1 +826 -147
 - data/vendor/local/share/man/man1/groonga.1 +812 -99
 - metadata +138 -55
 - data/doc/text/install.textile +0 -145
 - data/doc/text/tutorial.textile +0 -510
 - data/vendor/local/bin/libmsgpack-3.dll +0 -0
 - data/vendor/local/include/msgpack/type/define.hpp +0 -3465
 - data/vendor/local/include/msgpack/type/deque.hpp +0 -77
 - data/vendor/local/include/msgpack/type/fixint.hpp +0 -172
 - data/vendor/local/include/msgpack/type/float.hpp +0 -102
 - data/vendor/local/include/msgpack/type/int.hpp +0 -276
 - data/vendor/local/include/msgpack/type/list.hpp +0 -77
 - data/vendor/local/include/msgpack/type/map.hpp +0 -205
 - data/vendor/local/include/msgpack/type/raw.hpp +0 -94
 - data/vendor/local/include/msgpack/type/set.hpp +0 -122
 - data/vendor/local/include/msgpack/type/string.hpp +0 -62
 - data/vendor/local/include/msgpack/type/tr1/unordered_map.hpp +0 -150
 - data/vendor/local/include/msgpack/type/tr1/unordered_set.hpp +0 -142
 - data/vendor/local/include/msgpack/type/tuple.hpp +0 -13691
 - data/vendor/local/include/msgpack/type/vector.hpp +0 -81
 - data/vendor/local/share/doc/groonga/en/html/_static/jp.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/us.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/jp.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/us.png +0 -0
 
    
        data/ext/groonga/rb-grn.h
    CHANGED
    
    
    
        data/lib/1.9/groonga.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/2.0/groonga.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/2.1/groonga.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/2.2/groonga.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/groonga/query-logger.rb
    CHANGED
    
    | 
         @@ -18,7 +18,18 @@ 
     | 
|
| 
       18 
18 
     | 
    
         
             
            module Groonga
         
     | 
| 
       19 
19 
     | 
    
         
             
              class QueryLogger
         
     | 
| 
       20 
20 
     | 
    
         
             
                module Flags
         
     | 
| 
      
 21 
     | 
    
         
            +
                  NAMES = {
         
     | 
| 
      
 22 
     | 
    
         
            +
                    :none        => NONE,
         
     | 
| 
      
 23 
     | 
    
         
            +
                    :command     => COMMAND,
         
     | 
| 
      
 24 
     | 
    
         
            +
                    :result_code => RESULT_CODE,
         
     | 
| 
      
 25 
     | 
    
         
            +
                    :destination => DESTINATION,
         
     | 
| 
      
 26 
     | 
    
         
            +
                    :cache       => CACHE,
         
     | 
| 
      
 27 
     | 
    
         
            +
                    :size        => SIZE,
         
     | 
| 
      
 28 
     | 
    
         
            +
                    :score       => SCORE,
         
     | 
| 
      
 29 
     | 
    
         
            +
                  }
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
       21 
31 
     | 
    
         
             
                  LABELS = {
         
     | 
| 
      
 32 
     | 
    
         
            +
                    NONE        => "none",
         
     | 
| 
       22 
33 
     | 
    
         
             
                    COMMAND     => "command",
         
     | 
| 
       23 
34 
     | 
    
         
             
                    RESULT_CODE => "result_code",
         
     | 
| 
       24 
35 
     | 
    
         
             
                    DESTINATION => "destination",
         
     | 
| 
         @@ -28,9 +39,43 @@ module Groonga 
     | 
|
| 
       28 
39 
     | 
    
         
             
                  }
         
     | 
| 
       29 
40 
     | 
    
         | 
| 
       30 
41 
     | 
    
         
             
                  class << self
         
     | 
| 
       31 
     | 
    
         
            -
                     
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
                      base_flags
         
     | 
| 
      
 42 
     | 
    
         
            +
                    # TODO: Document me.
         
     | 
| 
      
 43 
     | 
    
         
            +
                    def parse(input, base_flags=nil)
         
     | 
| 
      
 44 
     | 
    
         
            +
                      base_flags |= Flags::NONE
         
     | 
| 
      
 45 
     | 
    
         
            +
                      case input
         
     | 
| 
      
 46 
     | 
    
         
            +
                      when nil
         
     | 
| 
      
 47 
     | 
    
         
            +
                        base_flags
         
     | 
| 
      
 48 
     | 
    
         
            +
                      when Integer
         
     | 
| 
      
 49 
     | 
    
         
            +
                        input | base_flags
         
     | 
| 
      
 50 
     | 
    
         
            +
                      when String, Symbol
         
     | 
| 
      
 51 
     | 
    
         
            +
                        value = NAMES[input.to_sym]
         
     | 
| 
      
 52 
     | 
    
         
            +
                        if value.nil?
         
     | 
| 
      
 53 
     | 
    
         
            +
                          message =
         
     | 
| 
      
 54 
     | 
    
         
            +
                            "flag name must be one of #{NAMES.keys.inspect}: " +
         
     | 
| 
      
 55 
     | 
    
         
            +
                            "<#{input.inspect}>"
         
     | 
| 
      
 56 
     | 
    
         
            +
                          raise ArgumentError, message
         
     | 
| 
      
 57 
     | 
    
         
            +
                        end
         
     | 
| 
      
 58 
     | 
    
         
            +
                        value | base_flags
         
     | 
| 
      
 59 
     | 
    
         
            +
                      when ::Array
         
     | 
| 
      
 60 
     | 
    
         
            +
                        input.inject(base_flags) do |flags, sub_input|
         
     | 
| 
      
 61 
     | 
    
         
            +
                          parse(sub_input, flags)
         
     | 
| 
      
 62 
     | 
    
         
            +
                        end
         
     | 
| 
      
 63 
     | 
    
         
            +
                      when ::Hash
         
     | 
| 
      
 64 
     | 
    
         
            +
                        flags = base_flags
         
     | 
| 
      
 65 
     | 
    
         
            +
                        input.each do |key, use_key|
         
     | 
| 
      
 66 
     | 
    
         
            +
                          if use_key
         
     | 
| 
      
 67 
     | 
    
         
            +
                            flags = parse(key, flags)
         
     | 
| 
      
 68 
     | 
    
         
            +
                          else
         
     | 
| 
      
 69 
     | 
    
         
            +
                            flags &= ~parse(key, 0)
         
     | 
| 
      
 70 
     | 
    
         
            +
                          end
         
     | 
| 
      
 71 
     | 
    
         
            +
                        end
         
     | 
| 
      
 72 
     | 
    
         
            +
                        flags
         
     | 
| 
      
 73 
     | 
    
         
            +
                      else
         
     | 
| 
      
 74 
     | 
    
         
            +
                        message =
         
     | 
| 
      
 75 
     | 
    
         
            +
                          "flags value must be nil, Integer, names, " +
         
     | 
| 
      
 76 
     | 
    
         
            +
                          "Array of flag or Hash of name and boolean: <#{input.inspect}>"
         
     | 
| 
      
 77 
     | 
    
         
            +
                        raise ArgumentError, message
         
     | 
| 
      
 78 
     | 
    
         
            +
                      end
         
     | 
| 
       34 
79 
     | 
    
         
             
                    end
         
     | 
| 
       35 
80 
     | 
    
         | 
| 
       36 
81 
     | 
    
         
             
                    def label(flags)
         
     | 
    
        data/lib/groonga/schema.rb
    CHANGED
    
    | 
         @@ -1209,8 +1209,16 @@ module Groonga 
     | 
|
| 
       1209 
1209 
     | 
    
         
             
                  # @private
         
     | 
| 
       1210 
1210 
     | 
    
         
             
                  def table_type
         
     | 
| 
       1211 
1211 
     | 
    
         
             
                    type = @options[:type]
         
     | 
| 
      
 1212 
     | 
    
         
            +
                    if type.nil?
         
     | 
| 
      
 1213 
     | 
    
         
            +
                      if @options[:key_type]
         
     | 
| 
      
 1214 
     | 
    
         
            +
                        type = :hash
         
     | 
| 
      
 1215 
     | 
    
         
            +
                      else
         
     | 
| 
      
 1216 
     | 
    
         
            +
                        type = :array
         
     | 
| 
      
 1217 
     | 
    
         
            +
                      end
         
     | 
| 
      
 1218 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1219 
     | 
    
         
            +
             
     | 
| 
       1212 
1220 
     | 
    
         
             
                    case type
         
     | 
| 
       1213 
     | 
    
         
            -
                    when :array 
     | 
| 
      
 1221 
     | 
    
         
            +
                    when :array
         
     | 
| 
       1214 
1222 
     | 
    
         
             
                      Groonga::Array
         
     | 
| 
       1215 
1223 
     | 
    
         
             
                    when :hash
         
     | 
| 
       1216 
1224 
     | 
    
         
             
                      Groonga::Hash
         
     | 
| 
         @@ -1219,8 +1227,13 @@ module Groonga 
     | 
|
| 
       1219 
1227 
     | 
    
         
             
                    when :double_array_trie
         
     | 
| 
       1220 
1228 
     | 
    
         
             
                      Groonga::DoubleArrayTrie
         
     | 
| 
       1221 
1229 
     | 
    
         
             
                    else
         
     | 
| 
       1222 
     | 
    
         
            -
                      supported_types = [ 
     | 
| 
       1223 
     | 
    
         
            -
             
     | 
| 
      
 1230 
     | 
    
         
            +
                      supported_types = [
         
     | 
| 
      
 1231 
     | 
    
         
            +
                        nil,
         
     | 
| 
      
 1232 
     | 
    
         
            +
                        :array,
         
     | 
| 
      
 1233 
     | 
    
         
            +
                        :hash,
         
     | 
| 
      
 1234 
     | 
    
         
            +
                        :patricia_trie,
         
     | 
| 
      
 1235 
     | 
    
         
            +
                        :double_array_trie,
         
     | 
| 
      
 1236 
     | 
    
         
            +
                      ]
         
     | 
| 
       1224 
1237 
     | 
    
         
             
                      raise UnknownTableType.new(type, supported_types)
         
     | 
| 
       1225 
1238 
     | 
    
         
             
                    end
         
     | 
| 
       1226 
1239 
     | 
    
         
             
                  end
         
     | 
    
        data/rroonga-build.rb
    CHANGED
    
    | 
         @@ -20,15 +20,15 @@ module RroongaBuild 
     | 
|
| 
       20 
20 
     | 
    
         
             
              module RequiredGroongaVersion
         
     | 
| 
       21 
21 
     | 
    
         
             
                MAJOR = 5
         
     | 
| 
       22 
22 
     | 
    
         
             
                MINOR = 0
         
     | 
| 
       23 
     | 
    
         
            -
                MICRO =  
     | 
| 
      
 23 
     | 
    
         
            +
                MICRO = 3
         
     | 
| 
       24 
24 
     | 
    
         
             
                VERSION = [MAJOR, MINOR, MICRO]
         
     | 
| 
       25 
     | 
    
         
            -
                RELEASED_DATE = Time.utc(2015,  
     | 
| 
      
 25 
     | 
    
         
            +
                RELEASED_DATE = Time.utc(2015, 3, 31)
         
     | 
| 
       26 
26 
     | 
    
         
             
              end
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
              module LatestGroongaVersion
         
     | 
| 
       29 
29 
     | 
    
         
             
                MAJOR = 5
         
     | 
| 
       30 
30 
     | 
    
         
             
                MINOR = 0
         
     | 
| 
       31 
     | 
    
         
            -
                MICRO =  
     | 
| 
      
 31 
     | 
    
         
            +
                MICRO = 3
         
     | 
| 
       32 
32 
     | 
    
         
             
                VERSION = [MAJOR, MINOR, MICRO]
         
     | 
| 
       33 
33 
     | 
    
         
             
              end
         
     | 
| 
       34 
34 
     | 
    
         | 
    
        data/test/test-logger.rb
    CHANGED
    
    | 
         @@ -18,12 +18,12 @@ class LoggerTest < Test::Unit::TestCase 
     | 
|
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
              def setup
         
     | 
| 
       20 
20 
     | 
    
         
             
                @default_log_path = Groonga::Logger.path
         
     | 
| 
       21 
     | 
    
         
            -
                @ 
     | 
| 
      
 21 
     | 
    
         
            +
                @default_rotate_threshold_size = Groonga::Logger.rotate_threshold_size
         
     | 
| 
       22 
22 
     | 
    
         
             
              end
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
              def teardown
         
     | 
| 
       25 
25 
     | 
    
         
             
                Groonga::Logger.path = @default_log_path
         
     | 
| 
       26 
     | 
    
         
            -
                Groonga:: 
     | 
| 
      
 26 
     | 
    
         
            +
                Groonga::Logger.rotate_threshold_size = @default_rotate_threshold_size
         
     | 
| 
       27 
27 
     | 
    
         
             
              end
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
       29 
29 
     | 
    
         
             
              def test_reopen
         
     | 
| 
         @@ -36,4 +36,99 @@ class LoggerTest < Test::Unit::TestCase 
     | 
|
| 
       36 
36 
     | 
    
         
             
                Groonga::Logger.reopen
         
     | 
| 
       37 
37 
     | 
    
         
             
                assert_true(@log_path.exist?)
         
     | 
| 
       38 
38 
     | 
    
         
             
              end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
              sub_test_case ".log" do
         
     | 
| 
      
 41 
     | 
    
         
            +
                test "no options" do
         
     | 
| 
      
 42 
     | 
    
         
            +
                  messages = []
         
     | 
| 
      
 43 
     | 
    
         
            +
                  Groonga::Logger.register do |event, level, time, title, message, location|
         
     | 
| 
      
 44 
     | 
    
         
            +
                    messages << message
         
     | 
| 
      
 45 
     | 
    
         
            +
                  end
         
     | 
| 
      
 46 
     | 
    
         
            +
                  Groonga::Logger.log("1")
         
     | 
| 
      
 47 
     | 
    
         
            +
                  Groonga::Logger.log("2")
         
     | 
| 
      
 48 
     | 
    
         
            +
                  Groonga::Logger.log("3")
         
     | 
| 
      
 49 
     | 
    
         
            +
                  assert_equal(["1", "2", "3"],
         
     | 
| 
      
 50 
     | 
    
         
            +
                               messages)
         
     | 
| 
      
 51 
     | 
    
         
            +
                end
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
                test ":level" do
         
     | 
| 
      
 54 
     | 
    
         
            +
                  levels = []
         
     | 
| 
      
 55 
     | 
    
         
            +
                  Groonga::Logger.register(:max_level => :dump) do |event, level, *rest|
         
     | 
| 
      
 56 
     | 
    
         
            +
                    levels << level
         
     | 
| 
      
 57 
     | 
    
         
            +
                  end
         
     | 
| 
      
 58 
     | 
    
         
            +
                  Groonga::Logger.log("default")
         
     | 
| 
      
 59 
     | 
    
         
            +
                  Groonga::Logger.log("debug", :level => :debug)
         
     | 
| 
      
 60 
     | 
    
         
            +
                  assert_equal([:notice, :debug],
         
     | 
| 
      
 61 
     | 
    
         
            +
                               levels)
         
     | 
| 
      
 62 
     | 
    
         
            +
                end
         
     | 
| 
      
 63 
     | 
    
         
            +
             
     | 
| 
      
 64 
     | 
    
         
            +
                test "default location" do
         
     | 
| 
      
 65 
     | 
    
         
            +
                  locations = []
         
     | 
| 
      
 66 
     | 
    
         
            +
                  Groonga::Logger.register do |event, level, time, title, message, location|
         
     | 
| 
      
 67 
     | 
    
         
            +
                    locations << location
         
     | 
| 
      
 68 
     | 
    
         
            +
                  end
         
     | 
| 
      
 69 
     | 
    
         
            +
                  Groonga::Logger.log("message"); line = __LINE__
         
     | 
| 
      
 70 
     | 
    
         
            +
                  function = caller_locations(0, 1)[0].label
         
     | 
| 
      
 71 
     | 
    
         
            +
                  assert_equal([
         
     | 
| 
      
 72 
     | 
    
         
            +
                                 "#{Process.pid} #{__FILE__}:#{line} #{function}()",
         
     | 
| 
      
 73 
     | 
    
         
            +
                               ],
         
     | 
| 
      
 74 
     | 
    
         
            +
                               locations)
         
     | 
| 
      
 75 
     | 
    
         
            +
                end
         
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
                test ":file" do
         
     | 
| 
      
 78 
     | 
    
         
            +
                  locations = []
         
     | 
| 
      
 79 
     | 
    
         
            +
                  Groonga::Logger.register do |event, level, time, title, message, location|
         
     | 
| 
      
 80 
     | 
    
         
            +
                    locations << location
         
     | 
| 
      
 81 
     | 
    
         
            +
                  end
         
     | 
| 
      
 82 
     | 
    
         
            +
                  Groonga::Logger.log("message", :file => "file.rb")
         
     | 
| 
      
 83 
     | 
    
         
            +
                  locations = locations.collect do |location|
         
     | 
| 
      
 84 
     | 
    
         
            +
                    location.gsub(/\A(\d+) (.*?):(\d+) (.*?)\(\)\z/,
         
     | 
| 
      
 85 
     | 
    
         
            +
                                  "0 \\2:0 function()")
         
     | 
| 
      
 86 
     | 
    
         
            +
                  end
         
     | 
| 
      
 87 
     | 
    
         
            +
                  assert_equal([
         
     | 
| 
      
 88 
     | 
    
         
            +
                                 "0 file.rb:0 function()",
         
     | 
| 
      
 89 
     | 
    
         
            +
                               ],
         
     | 
| 
      
 90 
     | 
    
         
            +
                               locations)
         
     | 
| 
      
 91 
     | 
    
         
            +
                end
         
     | 
| 
      
 92 
     | 
    
         
            +
             
     | 
| 
      
 93 
     | 
    
         
            +
                test ":line" do
         
     | 
| 
      
 94 
     | 
    
         
            +
                  locations = []
         
     | 
| 
      
 95 
     | 
    
         
            +
                  Groonga::Logger.register do |event, level, time, title, message, location|
         
     | 
| 
      
 96 
     | 
    
         
            +
                    locations << location
         
     | 
| 
      
 97 
     | 
    
         
            +
                  end
         
     | 
| 
      
 98 
     | 
    
         
            +
                  Groonga::Logger.log("message", :line => 100)
         
     | 
| 
      
 99 
     | 
    
         
            +
                  locations = locations.collect do |location|
         
     | 
| 
      
 100 
     | 
    
         
            +
                    location.gsub(/\A(\d+) (.*?):(\d+) (.*?)\(\)\z/,
         
     | 
| 
      
 101 
     | 
    
         
            +
                                  "0 test.rb:\\3 function()")
         
     | 
| 
      
 102 
     | 
    
         
            +
                  end
         
     | 
| 
      
 103 
     | 
    
         
            +
                  assert_equal([
         
     | 
| 
      
 104 
     | 
    
         
            +
                                 "0 test.rb:100 function()",
         
     | 
| 
      
 105 
     | 
    
         
            +
                               ],
         
     | 
| 
      
 106 
     | 
    
         
            +
                               locations)
         
     | 
| 
      
 107 
     | 
    
         
            +
                end
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
                test ":function" do
         
     | 
| 
      
 110 
     | 
    
         
            +
                  locations = []
         
     | 
| 
      
 111 
     | 
    
         
            +
                  Groonga::Logger.register do |event, level, time, title, message, location|
         
     | 
| 
      
 112 
     | 
    
         
            +
                    locations << location
         
     | 
| 
      
 113 
     | 
    
         
            +
                  end
         
     | 
| 
      
 114 
     | 
    
         
            +
                  Groonga::Logger.log("message", :function => "method_name")
         
     | 
| 
      
 115 
     | 
    
         
            +
                  locations = locations.collect do |location|
         
     | 
| 
      
 116 
     | 
    
         
            +
                    location.gsub(/\A(\d+) (.*?):(\d+) (.*?)\(\)\z/,
         
     | 
| 
      
 117 
     | 
    
         
            +
                                  "0 test.rb:0 \\4()")
         
     | 
| 
      
 118 
     | 
    
         
            +
                  end
         
     | 
| 
      
 119 
     | 
    
         
            +
                  assert_equal([
         
     | 
| 
      
 120 
     | 
    
         
            +
                                 "0 test.rb:0 method_name()",
         
     | 
| 
      
 121 
     | 
    
         
            +
                               ],
         
     | 
| 
      
 122 
     | 
    
         
            +
                               locations)
         
     | 
| 
      
 123 
     | 
    
         
            +
                end
         
     | 
| 
      
 124 
     | 
    
         
            +
              end
         
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
      
 126 
     | 
    
         
            +
              def test_rotate_threshold_size
         
     | 
| 
      
 127 
     | 
    
         
            +
                Groonga::Logger.unregister
         
     | 
| 
      
 128 
     | 
    
         
            +
                Groonga::Logger.path = @log_path.to_s
         
     | 
| 
      
 129 
     | 
    
         
            +
                Groonga::Logger.rotate_threshold_size = 10
         
     | 
| 
      
 130 
     | 
    
         
            +
                assert_equal([], Dir.glob("#{@log_path}.*"))
         
     | 
| 
      
 131 
     | 
    
         
            +
                Groonga::Logger.log("Hello")
         
     | 
| 
      
 132 
     | 
    
         
            +
                assert_not_equal([], Dir.glob("#{@log_path}.*"))
         
     | 
| 
      
 133 
     | 
    
         
            +
              end
         
     | 
| 
       39 
134 
     | 
    
         
             
            end
         
     | 
    
        data/test/test-plugin.rb
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Copyright (C) 2011  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
      
 1 
     | 
    
         
            +
            # Copyright (C) 2011-2015  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
       2 
2 
     | 
    
         
             
            #
         
     | 
| 
       3 
3 
     | 
    
         
             
            # This library is free software; you can redistribute it and/or
         
     | 
| 
       4 
4 
     | 
    
         
             
            # modify it under the terms of the GNU Lesser General Public
         
     | 
| 
         @@ -35,6 +35,10 @@ class PluginTest < Test::Unit::TestCase 
     | 
|
| 
       35 
35 
     | 
    
         
             
                end
         
     | 
| 
       36 
36 
     | 
    
         
             
              end
         
     | 
| 
       37 
37 
     | 
    
         | 
| 
      
 38 
     | 
    
         
            +
              def test_ruby_suffix
         
     | 
| 
      
 39 
     | 
    
         
            +
                assert_equal(".rb", Groonga::Plugin.ruby_suffix)
         
     | 
| 
      
 40 
     | 
    
         
            +
              end
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
       38 
42 
     | 
    
         
             
              class UnregisterTest < self
         
     | 
| 
       39 
43 
     | 
    
         
             
                def test_by_name
         
     | 
| 
       40 
44 
     | 
    
         
             
                  context.register_plugin("token_filters/stop_word")
         
     | 
| 
         @@ -0,0 +1,149 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Copyright (C) 2015  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
      
 2 
     | 
    
         
            +
            #
         
     | 
| 
      
 3 
     | 
    
         
            +
            # This library is free software; you can redistribute it and/or
         
     | 
| 
      
 4 
     | 
    
         
            +
            # modify it under the terms of the GNU Lesser General Public
         
     | 
| 
      
 5 
     | 
    
         
            +
            # License version 2.1 as published by the Free Software Foundation.
         
     | 
| 
      
 6 
     | 
    
         
            +
            #
         
     | 
| 
      
 7 
     | 
    
         
            +
            # This library is distributed in the hope that it will be useful,
         
     | 
| 
      
 8 
     | 
    
         
            +
            # but WITHOUT ANY WARRANTY; without even the implied warranty of
         
     | 
| 
      
 9 
     | 
    
         
            +
            # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
         
     | 
| 
      
 10 
     | 
    
         
            +
            # Lesser General Public License for more details.
         
     | 
| 
      
 11 
     | 
    
         
            +
            #
         
     | 
| 
      
 12 
     | 
    
         
            +
            # You should have received a copy of the GNU Lesser General Public
         
     | 
| 
      
 13 
     | 
    
         
            +
            # License along with this library; if not, write to the Free Software
         
     | 
| 
      
 14 
     | 
    
         
            +
            # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            class QueryLoggerTest < Test::Unit::TestCase
         
     | 
| 
      
 17 
     | 
    
         
            +
              include GroongaTestUtils
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
              def setup
         
     | 
| 
      
 20 
     | 
    
         
            +
                @default_log_path = Groonga::QueryLogger.path
         
     | 
| 
      
 21 
     | 
    
         
            +
                @default_rotate_threshold_size = Groonga::QueryLogger.rotate_threshold_size
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              def teardown
         
     | 
| 
      
 25 
     | 
    
         
            +
                Groonga::QueryLogger.path = @default_log_path
         
     | 
| 
      
 26 
     | 
    
         
            +
                Groonga::QueryLogger.rotate_threshold_size = @default_rotate_threshold_size
         
     | 
| 
      
 27 
     | 
    
         
            +
              end
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
              def test_reopen
         
     | 
| 
      
 30 
     | 
    
         
            +
                Groonga::QueryLogger.unregister
         
     | 
| 
      
 31 
     | 
    
         
            +
                Groonga::QueryLogger.path = @query_log_path.to_s
         
     | 
| 
      
 32 
     | 
    
         
            +
                if @query_log_path.exist?
         
     | 
| 
      
 33 
     | 
    
         
            +
                  FileUtils.mv(@query_log_path, "#{@query_log_path}.old")
         
     | 
| 
      
 34 
     | 
    
         
            +
                end
         
     | 
| 
      
 35 
     | 
    
         
            +
                assert do
         
     | 
| 
      
 36 
     | 
    
         
            +
                  not @query_log_path.exist?
         
     | 
| 
      
 37 
     | 
    
         
            +
                end
         
     | 
| 
      
 38 
     | 
    
         
            +
                Groonga::QueryLogger.reopen
         
     | 
| 
      
 39 
     | 
    
         
            +
                assert do
         
     | 
| 
      
 40 
     | 
    
         
            +
                  @query_log_path.exist?
         
     | 
| 
      
 41 
     | 
    
         
            +
                end
         
     | 
| 
      
 42 
     | 
    
         
            +
              end
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
              sub_test_case ".parse" do
         
     | 
| 
      
 45 
     | 
    
         
            +
                def parse(input, base_flags=nil)
         
     | 
| 
      
 46 
     | 
    
         
            +
                  base_flags ||= Groonga::QueryLogger::Flags::NONE
         
     | 
| 
      
 47 
     | 
    
         
            +
                  Groonga::QueryLogger::Flags.parse(input, base_flags)
         
     | 
| 
      
 48 
     | 
    
         
            +
                end
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
      
 50 
     | 
    
         
            +
                test "nil" do
         
     | 
| 
      
 51 
     | 
    
         
            +
                  assert_equal(Groonga::QueryLogger::Flags::NONE,
         
     | 
| 
      
 52 
     | 
    
         
            +
                               parse(nil))
         
     | 
| 
      
 53 
     | 
    
         
            +
                end
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
                test "Integer" do
         
     | 
| 
      
 56 
     | 
    
         
            +
                  assert_equal(Groonga::QueryLogger::Flags::COMMAND,
         
     | 
| 
      
 57 
     | 
    
         
            +
                               parse(Groonga::QueryLogger::Flags::COMMAND))
         
     | 
| 
      
 58 
     | 
    
         
            +
                end
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
                test "String" do
         
     | 
| 
      
 61 
     | 
    
         
            +
                  assert_equal(Groonga::QueryLogger::Flags::COMMAND,
         
     | 
| 
      
 62 
     | 
    
         
            +
                               parse("command"))
         
     | 
| 
      
 63 
     | 
    
         
            +
                end
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                test "Symbol" do
         
     | 
| 
      
 66 
     | 
    
         
            +
                  assert_equal(Groonga::QueryLogger::Flags::COMMAND,
         
     | 
| 
      
 67 
     | 
    
         
            +
                               parse(:command))
         
     | 
| 
      
 68 
     | 
    
         
            +
                end
         
     | 
| 
      
 69 
     | 
    
         
            +
             
     | 
| 
      
 70 
     | 
    
         
            +
                test "Array" do
         
     | 
| 
      
 71 
     | 
    
         
            +
                  assert_equal(Groonga::QueryLogger::Flags::COMMAND |
         
     | 
| 
      
 72 
     | 
    
         
            +
                               Groonga::QueryLogger::Flags::RESULT_CODE,
         
     | 
| 
      
 73 
     | 
    
         
            +
                               parse([:command, :result_code]))
         
     | 
| 
      
 74 
     | 
    
         
            +
                end
         
     | 
| 
      
 75 
     | 
    
         
            +
             
     | 
| 
      
 76 
     | 
    
         
            +
                test "Hash" do
         
     | 
| 
      
 77 
     | 
    
         
            +
                  assert_equal(Groonga::QueryLogger::Flags::COMMAND |
         
     | 
| 
      
 78 
     | 
    
         
            +
                               Groonga::QueryLogger::Flags::DESTINATION,
         
     | 
| 
      
 79 
     | 
    
         
            +
                               parse({
         
     | 
| 
      
 80 
     | 
    
         
            +
                                       :command => true,
         
     | 
| 
      
 81 
     | 
    
         
            +
                                       :result_code => false,
         
     | 
| 
      
 82 
     | 
    
         
            +
                                       :destination => true,
         
     | 
| 
      
 83 
     | 
    
         
            +
                                     },
         
     | 
| 
      
 84 
     | 
    
         
            +
                                     Groonga::QueryLogger::Flags::COMMAND |
         
     | 
| 
      
 85 
     | 
    
         
            +
                                     Groonga::QueryLogger::Flags::RESULT_CODE))
         
     | 
| 
      
 86 
     | 
    
         
            +
                end
         
     | 
| 
      
 87 
     | 
    
         
            +
              end
         
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
              sub_test_case ".log" do
         
     | 
| 
      
 90 
     | 
    
         
            +
                test "no options" do
         
     | 
| 
      
 91 
     | 
    
         
            +
                  messages = []
         
     | 
| 
      
 92 
     | 
    
         
            +
                  Groonga::QueryLogger.register do |action, flag, timestamp, info, message|
         
     | 
| 
      
 93 
     | 
    
         
            +
                    messages << message
         
     | 
| 
      
 94 
     | 
    
         
            +
                  end
         
     | 
| 
      
 95 
     | 
    
         
            +
                  Groonga::QueryLogger.log("1")
         
     | 
| 
      
 96 
     | 
    
         
            +
                  Groonga::QueryLogger.log("2")
         
     | 
| 
      
 97 
     | 
    
         
            +
                  Groonga::QueryLogger.log("3")
         
     | 
| 
      
 98 
     | 
    
         
            +
                  assert_equal(["1", "2", "3"],
         
     | 
| 
      
 99 
     | 
    
         
            +
                               messages)
         
     | 
| 
      
 100 
     | 
    
         
            +
                end
         
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
                test ":flags" do
         
     | 
| 
      
 103 
     | 
    
         
            +
                  infos = []
         
     | 
| 
      
 104 
     | 
    
         
            +
                  Groonga::QueryLogger.register do |action, flag, timestamp, info, message|
         
     | 
| 
      
 105 
     | 
    
         
            +
                    infos << info
         
     | 
| 
      
 106 
     | 
    
         
            +
                  end
         
     | 
| 
      
 107 
     | 
    
         
            +
                  Groonga::QueryLogger.log("default")
         
     | 
| 
      
 108 
     | 
    
         
            +
                  Groonga::QueryLogger.log("flags", :flags => "command")
         
     | 
| 
      
 109 
     | 
    
         
            +
                  normalized_infos = infos.collect do |info|
         
     | 
| 
      
 110 
     | 
    
         
            +
                    info = info.gsub(/\A0x[a-f\d]+\|/,
         
     | 
| 
      
 111 
     | 
    
         
            +
                                     "context_id|")
         
     | 
| 
      
 112 
     | 
    
         
            +
                    info.gsub(/\|[\d]+ \z/,
         
     | 
| 
      
 113 
     | 
    
         
            +
                              "|timestamp ")
         
     | 
| 
      
 114 
     | 
    
         
            +
                  end
         
     | 
| 
      
 115 
     | 
    
         
            +
                  assert_equal([
         
     | 
| 
      
 116 
     | 
    
         
            +
                                 "context_id|timestamp ",
         
     | 
| 
      
 117 
     | 
    
         
            +
                                 "context_id|",
         
     | 
| 
      
 118 
     | 
    
         
            +
                               ],
         
     | 
| 
      
 119 
     | 
    
         
            +
                               normalized_infos)
         
     | 
| 
      
 120 
     | 
    
         
            +
                end
         
     | 
| 
      
 121 
     | 
    
         
            +
             
     | 
| 
      
 122 
     | 
    
         
            +
                test ":mark" do
         
     | 
| 
      
 123 
     | 
    
         
            +
                  infos = []
         
     | 
| 
      
 124 
     | 
    
         
            +
                  Groonga::QueryLogger.register do |action, flag, timestamp, info, message|
         
     | 
| 
      
 125 
     | 
    
         
            +
                    infos << info
         
     | 
| 
      
 126 
     | 
    
         
            +
                  end
         
     | 
| 
      
 127 
     | 
    
         
            +
                  Groonga::QueryLogger.log("default")
         
     | 
| 
      
 128 
     | 
    
         
            +
                  Groonga::QueryLogger.log("mark", :mark => ":")
         
     | 
| 
      
 129 
     | 
    
         
            +
                  normalized_infos = infos.collect do |info|
         
     | 
| 
      
 130 
     | 
    
         
            +
                    info.gsub(/\A0x[a-f\d]+\|([^\d])?[\d]+ \z/,
         
     | 
| 
      
 131 
     | 
    
         
            +
                              "context_id|\\1timestamp ")
         
     | 
| 
      
 132 
     | 
    
         
            +
                  end
         
     | 
| 
      
 133 
     | 
    
         
            +
                  assert_equal([
         
     | 
| 
      
 134 
     | 
    
         
            +
                                 "context_id|timestamp ",
         
     | 
| 
      
 135 
     | 
    
         
            +
                                 "context_id|:timestamp ",
         
     | 
| 
      
 136 
     | 
    
         
            +
                               ],
         
     | 
| 
      
 137 
     | 
    
         
            +
                               normalized_infos)
         
     | 
| 
      
 138 
     | 
    
         
            +
                end
         
     | 
| 
      
 139 
     | 
    
         
            +
              end
         
     | 
| 
      
 140 
     | 
    
         
            +
             
     | 
| 
      
 141 
     | 
    
         
            +
              def test_rotate_threshold_size
         
     | 
| 
      
 142 
     | 
    
         
            +
                Groonga::QueryLogger.unregister
         
     | 
| 
      
 143 
     | 
    
         
            +
                Groonga::QueryLogger.path = @query_log_path.to_s
         
     | 
| 
      
 144 
     | 
    
         
            +
                Groonga::QueryLogger.rotate_threshold_size = 10
         
     | 
| 
      
 145 
     | 
    
         
            +
                assert_equal([], Dir.glob("#{@query_log_path}.*"))
         
     | 
| 
      
 146 
     | 
    
         
            +
                Groonga::QueryLogger.log("command")
         
     | 
| 
      
 147 
     | 
    
         
            +
                assert_not_equal([], Dir.glob("#{@query_log_path}.*"))
         
     | 
| 
      
 148 
     | 
    
         
            +
              end
         
     | 
| 
      
 149 
     | 
    
         
            +
            end
         
     | 
    
        data/test/test-schema.rb
    CHANGED
    
    | 
         @@ -71,6 +71,25 @@ class SchemaTest < Test::Unit::TestCase 
     | 
|
| 
       71 
71 
     | 
    
         
             
                end
         
     | 
| 
       72 
72 
     | 
    
         
             
              end
         
     | 
| 
       73 
73 
     | 
    
         | 
| 
      
 74 
     | 
    
         
            +
              sub_test_case "define table" do
         
     | 
| 
      
 75 
     | 
    
         
            +
                sub_test_case ":key_type" do
         
     | 
| 
      
 76 
     | 
    
         
            +
                  test "exist" do
         
     | 
| 
      
 77 
     | 
    
         
            +
                    Groonga::Schema.create_table("Posts",
         
     | 
| 
      
 78 
     | 
    
         
            +
                                                 :key_type => :short_text) do |table|
         
     | 
| 
      
 79 
     | 
    
         
            +
                    end
         
     | 
| 
      
 80 
     | 
    
         
            +
                    posts = context["Posts"]
         
     | 
| 
      
 81 
     | 
    
         
            +
                    assert_kind_of(Groonga::Hash, posts)
         
     | 
| 
      
 82 
     | 
    
         
            +
                  end
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
                  test "not exist" do
         
     | 
| 
      
 85 
     | 
    
         
            +
                    Groonga::Schema.create_table("Posts") do |table|
         
     | 
| 
      
 86 
     | 
    
         
            +
                    end
         
     | 
| 
      
 87 
     | 
    
         
            +
                    posts = context["Posts"]
         
     | 
| 
      
 88 
     | 
    
         
            +
                    assert_kind_of(Groonga::Array, posts)
         
     | 
| 
      
 89 
     | 
    
         
            +
                  end
         
     | 
| 
      
 90 
     | 
    
         
            +
                end
         
     | 
| 
      
 91 
     | 
    
         
            +
              end
         
     | 
| 
      
 92 
     | 
    
         
            +
             
     | 
| 
       74 
93 
     | 
    
         
             
              class DefineHashTest < self
         
     | 
| 
       75 
94 
     | 
    
         
             
                def test_default
         
     | 
| 
       76 
95 
     | 
    
         
             
                  Groonga::Schema.create_table("Posts", :type => :hash) do |table|
         
     |