rroonga 4.0.4-x86-mingw32 → 4.0.5-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 +73 -0
 - data/Rakefile +13 -0
 - data/doc/text/news.textile +26 -2
 - data/ext/groonga/extconf.rb +3 -1
 - data/ext/groonga/rb-grn-context.c +1 -1
 - data/ext/groonga/rb-grn-double-array-trie.c +160 -4
 - data/ext/groonga/rb-grn-object.c +10 -1
 - data/ext/groonga/rb-grn-posting.c +4 -4
 - data/ext/groonga/rb-grn-table-key-support.c +9 -4
 - data/ext/groonga/rb-grn-table.c +1 -1
 - data/ext/groonga/rb-grn-utils.c +2 -6
 - data/ext/groonga/rb-grn-variable-size-column.c +2 -2
 - data/ext/groonga/rb-grn.h +27 -2
 - 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/groonga/record.rb +19 -2
 - data/lib/groonga/schema.rb +2 -2
 - data/rroonga-build.rb +1 -1
 - data/rroonga.gemspec +5 -5
 - data/test/test-column.rb +6 -6
 - data/test/test-database.rb +6 -2
 - data/test/test-double-array-trie.rb +18 -0
 - data/test/test-expression-builder.rb +3 -2
 - data/test/test-hash.rb +13 -1
 - data/test/test-plugin.rb +3 -1
 - data/test/test-record.rb +10 -0
 - data/test/test-variable-size-column.rb +4 -4
 - 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-3.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/libwinpthread-1.dll +0 -0
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/bin/onig-config +78 -0
 - data/vendor/local/include/oniggnu.h +85 -0
 - data/vendor/local/include/onigposix.h +169 -0
 - data/vendor/local/include/oniguruma.h +870 -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/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 +41 -0
 - 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 +41 -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/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/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/scripts/ruby/backtrace_entry.rb +20 -0
 - data/vendor/local/lib/groonga/scripts/ruby/context.rb +31 -0
 - data/vendor/local/lib/groonga/scripts/ruby/context/error_level.rb +30 -0
 - data/vendor/local/lib/groonga/scripts/ruby/context/rc.rb +99 -0
 - data/vendor/local/lib/groonga/scripts/ruby/eval_context.rb +13 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression.rb +13 -0
 - data/vendor/local/lib/groonga/scripts/ruby/index_info.rb +10 -0
 - data/vendor/local/lib/groonga/scripts/ruby/logger.rb +27 -0
 - data/vendor/local/lib/groonga/scripts/ruby/logger/level.rb +32 -0
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info.rb +30 -0
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +342 -0
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +198 -0
 - data/vendor/local/lib/libgroonga.a +0 -0
 - data/vendor/local/lib/libgroonga.dll.a +0 -0
 - data/vendor/local/lib/libmecab.a +0 -0
 - data/vendor/local/lib/libmecab.dll.a +0 -0
 - data/vendor/local/lib/libmsgpack.a +0 -0
 - data/vendor/local/lib/libmsgpack.dll.a +0 -0
 - data/vendor/local/lib/libmsgpackc.a +0 -0
 - data/vendor/local/lib/libmsgpackc.dll.a +0 -0
 - data/vendor/local/lib/libonig.a +0 -0
 - data/vendor/local/lib/libonig.dll.a +0 -0
 - data/vendor/local/lib/libonig.la +41 -0
 - data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
 - data/vendor/local/lib/pkgconfig/oniguruma.pc +14 -0
 - 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/share/doc/groonga/en/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/report.txt +4 -5
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +46 -10
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -87
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
 - 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 +3 -3
 - 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 +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +68 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/lexicon.txt +5 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +265 -232
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +30 -23
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +2 -2
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/report.html +8 -9
 - data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/index.html +17 -18
 - data/vendor/local/share/doc/groonga/en/html/install.html +8 -9
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +63 -10
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +10 -108
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
 - data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news.html +123 -48
 - data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/en/html/reference.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +12 -12
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest.html +9 -9
 - data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial.html +13 -13
 - data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +14 -13
 - data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +264 -250
 - data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +9 -9
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +46 -41
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/report.txt +4 -5
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +46 -10
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -87
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
 - 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 +3 -3
 - 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 +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +68 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/lexicon.txt +5 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +265 -232
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +30 -23
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -6
 - data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/index.html +14 -15
 - data/vendor/local/share/doc/groonga/ja/html/install.html +8 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +57 -10
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +10 -102
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news.html +130 -48
 - data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +17 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +23 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +10 -10
 - 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 +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +22 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
 - 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 +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +11 -11
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +249 -237
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +36 -36
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +7 -7
 - data/vendor/local/share/license/mruby/AUTHORS +22 -0
 - data/vendor/local/share/license/mruby/LEGAL +6 -0
 - data/vendor/local/share/license/mruby/MITL +20 -0
 - data/vendor/local/share/license/mruby/README.md +111 -0
 - data/vendor/local/share/license/onigmo/AUTHORS +2 -0
 - data/vendor/local/share/license/onigmo/COPYING +87 -0
 - data/vendor/local/share/license/onigmo/README +249 -0
 - data/vendor/local/share/man/ja/man1/groonga.1 +471 -485
 - data/vendor/local/share/man/man1/groonga.1 +389 -454
 - metadata +82 -46
 - data/README.textile +0 -73
 
    
        data/ext/groonga/rb-grn-table.c
    CHANGED
    
    
    
        data/ext/groonga/rb-grn-utils.c
    CHANGED
    
    | 
         @@ -670,12 +670,8 @@ rb_grn_add_vector_element (VALUE rb_element, grn_ctx *context, grn_obj *vector, 
     | 
|
| 
       670 
670 
     | 
    
         
             
                if (RVAL2CBOOL(rb_obj_is_kind_of(rb_element, rb_cHash))) {
         
     | 
| 
       671 
671 
     | 
    
         
             
                    VALUE rb_value;
         
     | 
| 
       672 
672 
     | 
    
         
             
                    VALUE rb_weight;
         
     | 
| 
       673 
     | 
    
         
            -
                     
     | 
| 
       674 
     | 
    
         
            -
                     
     | 
| 
       675 
     | 
    
         
            -
                    CONST_ID(id_value, "value");
         
     | 
| 
       676 
     | 
    
         
            -
                    CONST_ID(id_weight, "weight");
         
     | 
| 
       677 
     | 
    
         
            -
                    rb_value = rb_hash_aref(rb_element, ID2SYM(id_value));
         
     | 
| 
       678 
     | 
    
         
            -
                    rb_weight = rb_hash_aref(rb_element, ID2SYM(id_weight));
         
     | 
| 
      
 673 
     | 
    
         
            +
                    rb_value = rb_hash_aref(rb_element, RB_GRN_INTERN("value"));
         
     | 
| 
      
 674 
     | 
    
         
            +
                    rb_weight = rb_hash_aref(rb_element, RB_GRN_INTERN("weight"));
         
     | 
| 
       679 
675 
     | 
    
         
             
                    RVAL2GRNOBJ(rb_value, context, &value_buffer);
         
     | 
| 
       680 
676 
     | 
    
         
             
                    if (!NIL_P(rb_weight)) {
         
     | 
| 
       681 
677 
     | 
    
         
             
                        weight = NUM2UINT(rb_weight);
         
     | 
| 
         @@ -210,10 +210,10 @@ rb_grn_variable_size_column_array_reference (VALUE self, VALUE rb_id) 
     | 
|
| 
       210 
210 
     | 
    
         | 
| 
       211 
211 
     | 
    
         
             
                    rb_element = rb_hash_new();
         
     | 
| 
       212 
212 
     | 
    
         
             
                    rb_hash_aset(rb_element,
         
     | 
| 
       213 
     | 
    
         
            -
                                  
     | 
| 
      
 213 
     | 
    
         
            +
                                 RB_GRN_INTERN("value"),
         
     | 
| 
       214 
214 
     | 
    
         
             
                                 rb_element_value);
         
     | 
| 
       215 
215 
     | 
    
         
             
                    rb_hash_aset(rb_element,
         
     | 
| 
       216 
     | 
    
         
            -
                                  
     | 
| 
      
 216 
     | 
    
         
            +
                                 RB_GRN_INTERN("weight"),
         
     | 
| 
       217 
217 
     | 
    
         
             
                                 UINT2NUM(weight));
         
     | 
| 
       218 
218 
     | 
    
         | 
| 
       219 
219 
     | 
    
         
             
                    rb_ary_push(rb_value, rb_element);
         
     | 
    
        data/ext/groonga/rb-grn.h
    CHANGED
    
    | 
         @@ -40,6 +40,14 @@ 
     | 
|
| 
       40 
40 
     | 
    
         
             
            #  define NUM2USHORT(object) NUM2UINT(object)
         
     | 
| 
       41 
41 
     | 
    
         
             
            #endif
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
      
 43 
     | 
    
         
            +
            #ifndef HAVE_RB_SYM2STR
         
     | 
| 
      
 44 
     | 
    
         
            +
            #  define rb_sym2str(symbol) (rb_id2str(SYM2ID(symbol)))
         
     | 
| 
      
 45 
     | 
    
         
            +
            #endif
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
            #ifndef HAVE_RB_TO_SYMBOL
         
     | 
| 
      
 48 
     | 
    
         
            +
            #  define rb_to_symbol(rb_string) (rb_str_intern(rb_string))
         
     | 
| 
      
 49 
     | 
    
         
            +
            #endif
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
       43 
51 
     | 
    
         
             
            #include <groonga.h>
         
     | 
| 
       44 
52 
     | 
    
         | 
| 
       45 
53 
     | 
    
         
             
            #if defined(__cplusplus)
         
     | 
| 
         @@ -84,7 +92,7 @@ RB_GRN_BEGIN_DECLS 
     | 
|
| 
       84 
92 
     | 
    
         | 
| 
       85 
93 
     | 
    
         
             
            #define RB_GRN_MAJOR_VERSION 4
         
     | 
| 
       86 
94 
     | 
    
         
             
            #define RB_GRN_MINOR_VERSION 0
         
     | 
| 
       87 
     | 
    
         
            -
            #define RB_GRN_MICRO_VERSION  
     | 
| 
      
 95 
     | 
    
         
            +
            #define RB_GRN_MICRO_VERSION 5
         
     | 
| 
       88 
96 
     | 
    
         | 
| 
       89 
97 
     | 
    
         
             
            #define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
         
     | 
| 
       90 
98 
     | 
    
         | 
| 
         @@ -94,6 +102,7 @@ RB_GRN_BEGIN_DECLS 
     | 
|
| 
       94 
102 
     | 
    
         
             
            #define RB_GRN_NAMED_OBJECT(object) ((RbGrnNamedObject *)(object))
         
     | 
| 
       95 
103 
     | 
    
         
             
            #define RB_GRN_TABLE(object) ((RbGrnTable *)(object))
         
     | 
| 
       96 
104 
     | 
    
         
             
            #define RB_GRN_TABLE_KEY_SUPPORT(object) ((RbGrnTableKeySupport *)(object))
         
     | 
| 
      
 105 
     | 
    
         
            +
            #define RB_GRN_DOUBLE_ARRAY_TRIE(object) ((RbGrnDoubleArrayTrie *)(object))
         
     | 
| 
       97 
106 
     | 
    
         
             
            #define RB_GRN_TABLE_CURSOR(object) ((RbGrnTableCursort *)(object))
         
     | 
| 
       98 
107 
     | 
    
         
             
            #define RB_GRN_COLUMN(object) ((RbGrnColumn *)(object))
         
     | 
| 
       99 
108 
     | 
    
         
             
            #define RB_GRN_VARIABLE_SIZE_COLUMN(object) ((RbGrnVariableSizeColumn *)(object))
         
     | 
| 
         @@ -153,6 +162,13 @@ struct _RbGrnTableKeySupport 
     | 
|
| 
       153 
162 
     | 
    
         
             
                grn_obj *key;
         
     | 
| 
       154 
163 
     | 
    
         
             
            };
         
     | 
| 
       155 
164 
     | 
    
         | 
| 
      
 165 
     | 
    
         
            +
            typedef struct _RbGrnDoubleArrayTrie RbGrnDoubleArrayTrie;
         
     | 
| 
      
 166 
     | 
    
         
            +
            struct _RbGrnDoubleArrayTrie
         
     | 
| 
      
 167 
     | 
    
         
            +
            {
         
     | 
| 
      
 168 
     | 
    
         
            +
                RbGrnTableKeySupport parent;
         
     | 
| 
      
 169 
     | 
    
         
            +
                grn_obj *new_key;
         
     | 
| 
      
 170 
     | 
    
         
            +
            };
         
     | 
| 
      
 171 
     | 
    
         
            +
             
     | 
| 
       156 
172 
     | 
    
         
             
            typedef struct _RbGrnColumn RbGrnColumn;
         
     | 
| 
       157 
173 
     | 
    
         
             
            struct _RbGrnColumn
         
     | 
| 
       158 
174 
     | 
    
         
             
            {
         
     | 
| 
         @@ -486,6 +502,13 @@ void           rb_grn_table_key_support_deconstruct (RbGrnTableKeySupport *rb_gr 
     | 
|
| 
       486 
502 
     | 
    
         
             
            grn_id         rb_grn_table_key_support_get         (VALUE self,
         
     | 
| 
       487 
503 
     | 
    
         
             
                                                                 VALUE rb_key);
         
     | 
| 
       488 
504 
     | 
    
         | 
| 
      
 505 
     | 
    
         
            +
            void           rb_grn_double_array_trie_bind        (RbGrnDoubleArrayTrie *rb_grn_double_array_trie,
         
     | 
| 
      
 506 
     | 
    
         
            +
                                                                 grn_ctx *context,
         
     | 
| 
      
 507 
     | 
    
         
            +
                                                                 grn_obj *double_array_trie);
         
     | 
| 
      
 508 
     | 
    
         
            +
            void           rb_grn_double_array_trie_finalizer   (grn_ctx *context,
         
     | 
| 
      
 509 
     | 
    
         
            +
                                                                 grn_obj *grn_object,
         
     | 
| 
      
 510 
     | 
    
         
            +
                                                                 RbGrnDoubleArrayTrie *rb_grn_double_array_trie);
         
     | 
| 
      
 511 
     | 
    
         
            +
             
     | 
| 
       489 
512 
     | 
    
         
             
            void           rb_grn_column_bind                   (RbGrnColumn *rb_grn_column,
         
     | 
| 
       490 
513 
     | 
    
         
             
                                                                 grn_ctx *context,
         
     | 
| 
       491 
514 
     | 
    
         
             
                                                                 grn_obj *column);
         
     | 
| 
         @@ -576,11 +599,13 @@ VALUE          rb_grn_column_expression_builder_build 
     | 
|
| 
       576 
599 
     | 
    
         
             
                                                                (VALUE self);
         
     | 
| 
       577 
600 
     | 
    
         | 
| 
       578 
601 
     | 
    
         | 
| 
       579 
     | 
    
         
            -
            #define RB_GRN_INTERN( 
     | 
| 
      
 602 
     | 
    
         
            +
            #define RB_GRN_INTERN(c_string)       (rb_to_symbol(rb_str_new2(c_string)))
         
     | 
| 
       580 
603 
     | 
    
         | 
| 
       581 
604 
     | 
    
         
             
            #define RVAL2CBOOL(object)            (RTEST(object))
         
     | 
| 
       582 
605 
     | 
    
         
             
            #define CBOOL2RVAL(boolean)           ((boolean) ? Qtrue : Qfalse)
         
     | 
| 
       583 
606 
     | 
    
         | 
| 
      
 607 
     | 
    
         
            +
            #define RSYMBOL2CSTR(rb_symbol)       (RSTRING_PTR(rb_sym2str(rb_symbol)))
         
     | 
| 
      
 608 
     | 
    
         
            +
             
     | 
| 
       584 
609 
     | 
    
         
             
            #define RVAL2GRNENCODING(object, context) \
         
     | 
| 
       585 
610 
     | 
    
         
             
                                                  (rb_grn_encoding_from_ruby_object(object, context))
         
     | 
| 
       586 
611 
     | 
    
         
             
            #define GRNENCODING2RVAL(encoding)    (rb_grn_encoding_to_ruby_object(encoding))
         
     | 
    
        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/groonga/record.rb
    CHANGED
    
    | 
         @@ -1,5 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # -*- coding: utf-8 -*-
         
     | 
| 
       2 
2 
     | 
    
         
             
            #
         
     | 
| 
      
 3 
     | 
    
         
            +
            # Copyright (C) 2014  Masafumi Yokoyama <myokoym@gmail.com>
         
     | 
| 
       3 
4 
     | 
    
         
             
            # Copyright (C) 2009-2014  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
       4 
5 
     | 
    
         
             
            #
         
     | 
| 
       5 
6 
     | 
    
         
             
            # This library is free software; you can redistribute it and/or
         
     | 
| 
         @@ -278,9 +279,25 @@ module Groonga 
     | 
|
| 
       278 
279 
     | 
    
         
             
                  as_json.to_json(*args)
         
     | 
| 
       279 
280 
     | 
    
         
             
                end
         
     | 
| 
       280 
281 
     | 
    
         | 
| 
       281 
     | 
    
         
            -
                #  
     | 
| 
      
 282 
     | 
    
         
            +
                # Delete the record.
         
     | 
| 
       282 
283 
     | 
    
         
             
                def delete
         
     | 
| 
       283 
     | 
    
         
            -
                   
     | 
| 
      
 284 
     | 
    
         
            +
                  if support_key?
         
     | 
| 
      
 285 
     | 
    
         
            +
                    @table.delete(@id, :id => true)
         
     | 
| 
      
 286 
     | 
    
         
            +
                  else
         
     | 
| 
      
 287 
     | 
    
         
            +
                    @table.delete(@id)
         
     | 
| 
      
 288 
     | 
    
         
            +
                  end
         
     | 
| 
      
 289 
     | 
    
         
            +
                end
         
     | 
| 
      
 290 
     | 
    
         
            +
             
     | 
| 
      
 291 
     | 
    
         
            +
                # Renames key of the record. Only available for
         
     | 
| 
      
 292 
     | 
    
         
            +
                # {Groonga::DoubleArrayTrie} table.
         
     | 
| 
      
 293 
     | 
    
         
            +
                #
         
     | 
| 
      
 294 
     | 
    
         
            +
                # @since 4.0.5
         
     | 
| 
      
 295 
     | 
    
         
            +
                def rename(new_key)
         
     | 
| 
      
 296 
     | 
    
         
            +
                  if @table.is_a?(DoubleArrayTrie)
         
     | 
| 
      
 297 
     | 
    
         
            +
                    @table.update(@id, new_key, :id => true)
         
     | 
| 
      
 298 
     | 
    
         
            +
                  else
         
     | 
| 
      
 299 
     | 
    
         
            +
                    raise OperationNotSupported, "Only Groonga::DoubleArrayTrie table supports Groonga::Record#rename: <#{@table.class}>"
         
     | 
| 
      
 300 
     | 
    
         
            +
                  end
         
     | 
| 
       284 
301 
     | 
    
         
             
                end
         
     | 
| 
       285 
302 
     | 
    
         | 
| 
       286 
303 
     | 
    
         
             
                # レコードが所属するテーブルをロックする。ロックに失敗した場
         
     | 
    
        data/lib/groonga/schema.rb
    CHANGED
    
    | 
         @@ -73,7 +73,7 @@ module Groonga 
     | 
|
| 
       73 
73 
     | 
    
         
             
                  def initialize(table, options)
         
     | 
| 
       74 
74 
     | 
    
         
             
                    @table = table
         
     | 
| 
       75 
75 
     | 
    
         
             
                    @options = options
         
     | 
| 
       76 
     | 
    
         
            -
                    super("creating table with  
     | 
| 
      
 76 
     | 
    
         
            +
                    super("creating table with different options: " +
         
     | 
| 
       77 
77 
     | 
    
         
             
                          "#{@table.inspect}: #{@options.inspect}")
         
     | 
| 
       78 
78 
     | 
    
         
             
                  end
         
     | 
| 
       79 
79 
     | 
    
         
             
                end
         
     | 
| 
         @@ -85,7 +85,7 @@ module Groonga 
     | 
|
| 
       85 
85 
     | 
    
         
             
                  def initialize(column, options)
         
     | 
| 
       86 
86 
     | 
    
         
             
                    @column = column
         
     | 
| 
       87 
87 
     | 
    
         
             
                    @options = options
         
     | 
| 
       88 
     | 
    
         
            -
                    super("creating column with  
     | 
| 
      
 88 
     | 
    
         
            +
                    super("creating column with different option: " +
         
     | 
| 
       89 
89 
     | 
    
         
             
                          "#{@column.inspect}: #{@options.inspect}")
         
     | 
| 
       90 
90 
     | 
    
         
             
                  end
         
     | 
| 
       91 
91 
     | 
    
         
             
                end
         
     | 
    
        data/rroonga-build.rb
    CHANGED
    
    
    
        data/rroonga.gemspec
    CHANGED
    
    | 
         @@ -54,12 +54,12 @@ Gem::Specification.new do |s| 
     | 
|
| 
       54 
54 
     | 
    
         
             
              s.authors = authors
         
     | 
| 
       55 
55 
     | 
    
         
             
              s.email = emails
         
     | 
| 
       56 
56 
     | 
    
         | 
| 
       57 
     | 
    
         
            -
              readme_path = File.join(base_dir, "README. 
     | 
| 
       58 
     | 
    
         
            -
              entries = File.read(readme_path).split( 
     | 
| 
      
 57 
     | 
    
         
            +
              readme_path = File.join(base_dir, "README.md")
         
     | 
| 
      
 58 
     | 
    
         
            +
              entries = File.read(readme_path).split(/^##\s(.*)$/)
         
     | 
| 
       59 
59 
     | 
    
         
             
              description = clean_white_space.call(entries[entries.index("Description") + 1])
         
     | 
| 
       60 
60 
     | 
    
         
             
              s.summary, s.description, = description.split(/\n\n+/, 3)
         
     | 
| 
       61 
61 
     | 
    
         | 
| 
       62 
     | 
    
         
            -
              s.files = ["README. 
     | 
| 
      
 62 
     | 
    
         
            +
              s.files = ["README.md", "AUTHORS", "Rakefile", "Gemfile", ".yardopts"]
         
     | 
| 
       63 
63 
     | 
    
         
             
              s.files += Dir.glob("doc/text/*.textile")
         
     | 
| 
       64 
64 
     | 
    
         
             
              s.files += ["#{s.name}.gemspec"]
         
     | 
| 
       65 
65 
     | 
    
         
             
              s.files += ["rroonga-build.rb", "extconf.rb"]
         
     | 
| 
         @@ -67,7 +67,7 @@ Gem::Specification.new do |s| 
     | 
|
| 
       67 
67 
     | 
    
         
             
                s.files += Dir.glob("{lib,benchmark,misc,example}/**/*.rb")
         
     | 
| 
       68 
68 
     | 
    
         
             
                s.files += Dir.glob("ext/**/*.{c,h,rb,def}")
         
     | 
| 
       69 
69 
     | 
    
         
             
                s.extensions = ["ext/groonga/extconf.rb"]
         
     | 
| 
       70 
     | 
    
         
            -
                s.extra_rdoc_files = ["README. 
     | 
| 
      
 70 
     | 
    
         
            +
                s.extra_rdoc_files = ["README.md"]
         
     | 
| 
       71 
71 
     | 
    
         
             
                s.test_files = Dir.glob("test/**/*.rb")
         
     | 
| 
       72 
72 
     | 
    
         
             
                Dir.chdir("bin") do
         
     | 
| 
       73 
73 
     | 
    
         
             
                  s.executables = Dir.glob("*")
         
     | 
| 
         @@ -85,7 +85,7 @@ Gem::Specification.new do |s| 
     | 
|
| 
       85 
85 
     | 
    
         
             
              s.add_runtime_dependency("groonga-client", ">= 0.0.3")
         
     | 
| 
       86 
86 
     | 
    
         
             
              s.add_runtime_dependency("json")
         
     | 
| 
       87 
87 
     | 
    
         
             
              s.add_runtime_dependency("archive-zip")
         
     | 
| 
       88 
     | 
    
         
            -
              s.add_development_dependency("test-unit", [">=  
     | 
| 
      
 88 
     | 
    
         
            +
              s.add_development_dependency("test-unit", [">= 3.0.0"])
         
     | 
| 
       89 
89 
     | 
    
         
             
              s.add_development_dependency("test-unit-notify")
         
     | 
| 
       90 
90 
     | 
    
         
             
              s.add_development_dependency("rake")
         
     | 
| 
       91 
91 
     | 
    
         
             
              s.add_development_dependency("rake-compiler")
         
     | 
    
        data/test/test-column.rb
    CHANGED
    
    | 
         @@ -169,7 +169,7 @@ class ColumnTest < Test::Unit::TestCase 
     | 
|
| 
       169 
169 
     | 
    
         
             
                             result.records.collect do |record|
         
     | 
| 
       170 
170 
     | 
    
         
             
                               record["body"]
         
     | 
| 
       171 
171 
     | 
    
         
             
                             end)
         
     | 
| 
       172 
     | 
    
         
            -
                assert_equal("#<Groonga::Expression noname($1 
     | 
| 
      
 172 
     | 
    
         
            +
                assert_equal("#<Groonga::Expression noname($1:null)" +
         
     | 
| 
       173 
173 
     | 
    
         
             
                             "{2body GET_VALUE,0\"drive\",0MATCH}>",
         
     | 
| 
       174 
174 
     | 
    
         
             
                             result.expression.inspect)
         
     | 
| 
       175 
175 
     | 
    
         
             
              end
         
     | 
| 
         @@ -200,7 +200,7 @@ class ColumnTest < Test::Unit::TestCase 
     | 
|
| 
       200 
200 
     | 
    
         
             
                             result.records.collect do |record|
         
     | 
| 
       201 
201 
     | 
    
         
             
                               record["body"]
         
     | 
| 
       202 
202 
     | 
    
         
             
                             end)
         
     | 
| 
       203 
     | 
    
         
            -
                assert_equal("#<Groonga::Expression noname($1 
     | 
| 
      
 203 
     | 
    
         
            +
                assert_equal("#<Groonga::Expression noname($1:null)" +
         
     | 
| 
       204 
204 
     | 
    
         
             
                             "{2body GET_VALUE,0\"drive\",0MATCH}>",
         
     | 
| 
       205 
205 
     | 
    
         
             
                             result.expression.inspect)
         
     | 
| 
       206 
206 
     | 
    
         
             
              end
         
     | 
| 
         @@ -218,8 +218,8 @@ class ColumnTest < Test::Unit::TestCase 
     | 
|
| 
       218 
218 
     | 
    
         
             
                             result.records.collect do |record|
         
     | 
| 
       219 
219 
     | 
    
         
             
                               record["body"]
         
     | 
| 
       220 
220 
     | 
    
         
             
                             end)
         
     | 
| 
       221 
     | 
    
         
            -
                assert_equal("#<Groonga::Expression noname($1 
     | 
| 
       222 
     | 
    
         
            -
                             "{ 
     | 
| 
      
 221 
     | 
    
         
            +
                assert_equal("#<Groonga::Expression noname($1:null)" +
         
     | 
| 
      
 222 
     | 
    
         
            +
                             "{0null,2body GET_VALUE,0\"drive\",0MATCH}>",
         
     | 
| 
       223 
223 
     | 
    
         
             
                             result.expression.inspect)
         
     | 
| 
       224 
224 
     | 
    
         
             
              end
         
     | 
| 
       225 
225 
     | 
    
         | 
| 
         @@ -233,8 +233,8 @@ class ColumnTest < Test::Unit::TestCase 
     | 
|
| 
       233 
233 
     | 
    
         
             
                             result.records.collect do |record|
         
     | 
| 
       234 
234 
     | 
    
         
             
                               record["body"]
         
     | 
| 
       235 
235 
     | 
    
         
             
                             end)
         
     | 
| 
       236 
     | 
    
         
            -
                assert_equal("#<Groonga::Expression noname($1 
     | 
| 
       237 
     | 
    
         
            -
                             "{ 
     | 
| 
      
 236 
     | 
    
         
            +
                assert_equal("#<Groonga::Expression noname($1:null)" +
         
     | 
| 
      
 237 
     | 
    
         
            +
                             "{1null,2body GET_VALUE,0\"drive\",0MATCH}>",
         
     | 
| 
       238 
238 
     | 
    
         
             
                             result.expression.inspect)
         
     | 
| 
       239 
239 
     | 
    
         
             
              end
         
     | 
| 
       240 
240 
     | 
    
         | 
    
        data/test/test-database.rb
    CHANGED
    
    | 
         @@ -90,13 +90,17 @@ class DatabaseTest < Test::Unit::TestCase 
     | 
|
| 
       90 
90 
     | 
    
         
             
              def test_each
         
     | 
| 
       91 
91 
     | 
    
         
             
                setup_database
         
     | 
| 
       92 
92 
     | 
    
         
             
                default_object_names = @database.collect {|object| object.name}.sort
         
     | 
| 
       93 
     | 
    
         
            -
                 
     | 
| 
      
 93 
     | 
    
         
            +
                assert do
         
     | 
| 
      
 94 
     | 
    
         
            +
                  default_object_names.include?("Bool")
         
     | 
| 
      
 95 
     | 
    
         
            +
                end
         
     | 
| 
       94 
96 
     | 
    
         
             
              end
         
     | 
| 
       95 
97 
     | 
    
         | 
| 
       96 
98 
     | 
    
         
             
              def test_each_without_block
         
     | 
| 
       97 
99 
     | 
    
         
             
                setup_database
         
     | 
| 
       98 
100 
     | 
    
         
             
                default_object_names = @database.each.collect {|object| object.name}.sort
         
     | 
| 
       99 
     | 
    
         
            -
                 
     | 
| 
      
 101 
     | 
    
         
            +
                assert do
         
     | 
| 
      
 102 
     | 
    
         
            +
                  default_object_names.include?("Bool")
         
     | 
| 
      
 103 
     | 
    
         
            +
                end
         
     | 
| 
       100 
104 
     | 
    
         
             
              end
         
     | 
| 
       101 
105 
     | 
    
         | 
| 
       102 
106 
     | 
    
         
             
              def test_encoding
         
     | 
| 
         @@ -134,6 +134,24 @@ class DoubleArrayTrieTest < Test::Unit::TestCase 
     | 
|
| 
       134 
134 
     | 
    
         
             
                assert_equal(expected, actual)
         
     | 
| 
       135 
135 
     | 
    
         
             
              end
         
     | 
| 
       136 
136 
     | 
    
         | 
| 
      
 137 
     | 
    
         
            +
              def test_update_by_key
         
     | 
| 
      
 138 
     | 
    
         
            +
                users = Groonga::DoubleArrayTrie.create(:name => "Users",
         
     | 
| 
      
 139 
     | 
    
         
            +
                                                        :key_type => "ShortText")
         
     | 
| 
      
 140 
     | 
    
         
            +
                users.add("Bob")
         
     | 
| 
      
 141 
     | 
    
         
            +
             
     | 
| 
      
 142 
     | 
    
         
            +
                users.update("Bob", "Alice")
         
     | 
| 
      
 143 
     | 
    
         
            +
                assert_equal(["Alice"], users.collect {|user| user.key})
         
     | 
| 
      
 144 
     | 
    
         
            +
              end
         
     | 
| 
      
 145 
     | 
    
         
            +
             
     | 
| 
      
 146 
     | 
    
         
            +
              def test_update_by_id
         
     | 
| 
      
 147 
     | 
    
         
            +
                users = Groonga::DoubleArrayTrie.create(:name => "Users",
         
     | 
| 
      
 148 
     | 
    
         
            +
                                                        :key_type => "ShortText")
         
     | 
| 
      
 149 
     | 
    
         
            +
                users.add("Bob")
         
     | 
| 
      
 150 
     | 
    
         
            +
             
     | 
| 
      
 151 
     | 
    
         
            +
                users.update(users["Bob"].id, "Alice", :id => true)
         
     | 
| 
      
 152 
     | 
    
         
            +
                assert_equal(["Alice"], users.collect {|user| user.key})
         
     | 
| 
      
 153 
     | 
    
         
            +
              end
         
     | 
| 
      
 154 
     | 
    
         
            +
             
     | 
| 
       137 
155 
     | 
    
         
             
              def test_add_uint_key
         
     | 
| 
       138 
156 
     | 
    
         
             
                numbers = Groonga::DoubleArrayTrie.create(:name => "Numbers",
         
     | 
| 
       139 
157 
     | 
    
         
             
                                                          :key_type => "UInt32")
         
     | 
| 
         @@ -1,5 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # -*- coding: utf-8 -*-
         
     | 
| 
       2 
2 
     | 
    
         
             
            #
         
     | 
| 
      
 3 
     | 
    
         
            +
            # Copyright (C) 2014  Masafumi Yokoyama <myokoym@gmail.com>
         
     | 
| 
       3 
4 
     | 
    
         
             
            # Copyright (C) 2009-2012  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
       4 
5 
     | 
    
         
             
            #
         
     | 
| 
       5 
6 
     | 
    
         
             
            # This library is free software; you can redistribute it and/or
         
     | 
| 
         @@ -386,7 +387,7 @@ EOC 
     | 
|
| 
       386 
387 
     | 
    
         
             
                  result = @documents.select do |record|
         
     | 
| 
       387 
388 
     | 
    
         
             
                    record.content.similar_search("fast full text search real time")
         
     | 
| 
       388 
389 
     | 
    
         
             
                  end
         
     | 
| 
       389 
     | 
    
         
            -
                  assert_equal(["Groonga overview" 
     | 
| 
      
 390 
     | 
    
         
            +
                  assert_equal(["Groonga overview"],
         
     | 
| 
       390 
391 
     | 
    
         
             
                               result.collect {|record| record.key.key}.sort)
         
     | 
| 
       391 
392 
     | 
    
         
             
                end
         
     | 
| 
       392 
393 
     | 
    
         | 
| 
         @@ -394,7 +395,7 @@ EOC 
     | 
|
| 
       394 
395 
     | 
    
         
             
                  result = @documents.column("content").select do |content|
         
     | 
| 
       395 
396 
     | 
    
         
             
                    content.similar_search("fast full text search real time")
         
     | 
| 
       396 
397 
     | 
    
         
             
                  end
         
     | 
| 
       397 
     | 
    
         
            -
                  assert_equal(["Groonga overview" 
     | 
| 
      
 398 
     | 
    
         
            +
                  assert_equal(["Groonga overview"],
         
     | 
| 
       398 
399 
     | 
    
         
             
                               result.collect {|record| record.key.key}.sort)
         
     | 
| 
       399 
400 
     | 
    
         
             
                end
         
     | 
| 
       400 
401 
     | 
    
         
             
              end
         
     | 
    
        data/test/test-hash.rb
    CHANGED
    
    | 
         @@ -1,5 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # -*- coding: utf-8 -*-
         
     | 
| 
       2 
2 
     | 
    
         
             
            #
         
     | 
| 
      
 3 
     | 
    
         
            +
            # Copyright (C) 2014  Masafumi Yokoyama <myokoym@gmail.com>
         
     | 
| 
       3 
4 
     | 
    
         
             
            # Copyright (C) 2009-2014  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
       4 
5 
     | 
    
         
             
            #
         
     | 
| 
       5 
6 
     | 
    
         
             
            # This library is free software; you can redistribute it and/or
         
     | 
| 
         @@ -55,7 +56,7 @@ class HashTest < Test::Unit::TestCase 
     | 
|
| 
       55 
56 
     | 
    
         
             
                end
         
     | 
| 
       56 
57 
     | 
    
         | 
| 
       57 
58 
     | 
    
         
             
                def test_id
         
     | 
| 
       58 
     | 
    
         
            -
                  @bookmarks.delete(@google.id)
         
     | 
| 
      
 59 
     | 
    
         
            +
                  @bookmarks.delete(@google.id, :id => true)
         
     | 
| 
       59 
60 
     | 
    
         
             
                  assert_equal(["groonga", "Cutter"],
         
     | 
| 
       60 
61 
     | 
    
         
             
                               @bookmarks.collect {|bookmark| bookmark.key})
         
     | 
| 
       61 
62 
     | 
    
         
             
                end
         
     | 
| 
         @@ -73,6 +74,17 @@ class HashTest < Test::Unit::TestCase 
     | 
|
| 
       73 
74 
     | 
    
         
             
                  assert_equal(["Google", "Cutter"],
         
     | 
| 
       74 
75 
     | 
    
         
             
                               @bookmarks.collect {|bookmark| bookmark.key})
         
     | 
| 
       75 
76 
     | 
    
         
             
                end
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
      
 78 
     | 
    
         
            +
                def test_key_of_int32
         
     | 
| 
      
 79 
     | 
    
         
            +
                  numbers = Groonga::Hash.create(:name => "Numbers",
         
     | 
| 
      
 80 
     | 
    
         
            +
                                                 :key_type => "Int32")
         
     | 
| 
      
 81 
     | 
    
         
            +
                  numbers.add(100)
         
     | 
| 
      
 82 
     | 
    
         
            +
                  numbers.add(200)
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
                  numbers.delete(100)
         
     | 
| 
      
 85 
     | 
    
         
            +
                  assert_equal([200],
         
     | 
| 
      
 86 
     | 
    
         
            +
                               numbers.collect {|number| number.key})
         
     | 
| 
      
 87 
     | 
    
         
            +
                end
         
     | 
| 
       76 
88 
     | 
    
         
             
              end
         
     | 
| 
       77 
89 
     | 
    
         | 
| 
       78 
90 
     | 
    
         
             
              def test_value
         
     | 
    
        data/test/test-plugin.rb
    CHANGED
    
    | 
         @@ -30,6 +30,8 @@ class PluginTest < Test::Unit::TestCase 
     | 
|
| 
       30 
30 
     | 
    
         
             
              def test_system_plugins_dir
         
     | 
| 
       31 
31 
     | 
    
         
             
                suggest_plugin_path = "#{Groonga::Plugin.system_plugins_dir}/"
         
     | 
| 
       32 
32 
     | 
    
         
             
                suggest_plugin_path << "suggest/suggest#{Groonga::Plugin.suffix}"
         
     | 
| 
       33 
     | 
    
         
            -
                 
     | 
| 
      
 33 
     | 
    
         
            +
                assert do
         
     | 
| 
      
 34 
     | 
    
         
            +
                  File.exist?(suggest_plugin_path)
         
     | 
| 
      
 35 
     | 
    
         
            +
                end
         
     | 
| 
       34 
36 
     | 
    
         
             
              end
         
     | 
| 
       35 
37 
     | 
    
         
             
            end
         
     | 
    
        data/test/test-record.rb
    CHANGED
    
    | 
         @@ -176,6 +176,15 @@ class RecordTest < Test::Unit::TestCase 
     | 
|
| 
       176 
176 
     | 
    
         
             
                assert_equal(2, @bookmarks.size)
         
     | 
| 
       177 
177 
     | 
    
         
             
              end
         
     | 
| 
       178 
178 
     | 
    
         | 
| 
      
 179 
     | 
    
         
            +
              def test_rename
         
     | 
| 
      
 180 
     | 
    
         
            +
                users = Groonga::DoubleArrayTrie.create(:name => "DATUsers",
         
     | 
| 
      
 181 
     | 
    
         
            +
                                                        :key_type => "ShortText")
         
     | 
| 
      
 182 
     | 
    
         
            +
                bob = users.add("Bob")
         
     | 
| 
      
 183 
     | 
    
         
            +
             
     | 
| 
      
 184 
     | 
    
         
            +
                bob.rename("Alice")
         
     | 
| 
      
 185 
     | 
    
         
            +
                assert_equal("Alice", bob._key)
         
     | 
| 
      
 186 
     | 
    
         
            +
              end
         
     | 
| 
      
 187 
     | 
    
         
            +
             
     | 
| 
       179 
188 
     | 
    
         
             
              def test_key
         
     | 
| 
       180 
189 
     | 
    
         
             
                documents = Groonga::PatriciaTrie.create(:name => "Documents",
         
     | 
| 
       181 
190 
     | 
    
         
             
                                                         :key_type => "ShortText")
         
     | 
| 
         @@ -625,6 +634,7 @@ class RecordTest < Test::Unit::TestCase 
     | 
|
| 
       625 
634 
     | 
    
         
             
                end
         
     | 
| 
       626 
635 
     | 
    
         | 
| 
       627 
636 
     | 
    
         
             
                def test_to_json
         
     | 
| 
      
 637 
     | 
    
         
            +
                  ENV["TZ"] = "Japan"
         
     | 
| 
       628 
638 
     | 
    
         
             
                  created_at = Time.parse("2013-05-16T16:57:34+09:00")
         
     | 
| 
       629 
639 
     | 
    
         
             
                  values = {
         
     | 
| 
       630 
640 
     | 
    
         
             
                    "uri"        => "http://groonga.org/",
         
     | 
| 
         @@ -79,9 +79,9 @@ class VariableSizeColumnTest < Test::Unit::TestCase 
     | 
|
| 
       79 
79 
     | 
    
         
             
                description = @users.define_column("description", "ShortText",
         
     | 
| 
       80 
80 
     | 
    
         
             
                                                   :compress => :zlib)
         
     | 
| 
       81 
81 
     | 
    
         
             
                if context.support_zlib?
         
     | 
| 
       82 
     | 
    
         
            -
                   
     | 
| 
      
 82 
     | 
    
         
            +
                  assert {description.compressed?(:zlib)}
         
     | 
| 
       83 
83 
     | 
    
         
             
                else
         
     | 
| 
       84 
     | 
    
         
            -
                   
     | 
| 
      
 84 
     | 
    
         
            +
                  assert {not description.compressed?(:zlib)}
         
     | 
| 
       85 
85 
     | 
    
         
             
                end
         
     | 
| 
       86 
86 
     | 
    
         
             
              end
         
     | 
| 
       87 
87 
     | 
    
         | 
| 
         @@ -89,9 +89,9 @@ class VariableSizeColumnTest < Test::Unit::TestCase 
     | 
|
| 
       89 
89 
     | 
    
         
             
                description = @users.define_column("description", "ShortText",
         
     | 
| 
       90 
90 
     | 
    
         
             
                                                   :compress => :lzo)
         
     | 
| 
       91 
91 
     | 
    
         
             
                if context.support_lzo?
         
     | 
| 
       92 
     | 
    
         
            -
                   
     | 
| 
      
 92 
     | 
    
         
            +
                  assert {description.compressed?(:lzo)}
         
     | 
| 
       93 
93 
     | 
    
         
             
                else
         
     | 
| 
       94 
     | 
    
         
            -
                   
     | 
| 
      
 94 
     | 
    
         
            +
                  assert {not description.compressed?(:lzo)}
         
     | 
| 
       95 
95 
     | 
    
         
             
                end
         
     | 
| 
       96 
96 
     | 
    
         
             
              end
         
     | 
| 
       97 
97 
     | 
    
         | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
    
        data/vendor/local/bin/mecab.exe
    CHANGED
    
    | 
         Binary file 
     |