rroonga 3.1.1-x86-mingw32 → 3.1.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (489) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -39
  3. data/bin/grndump +8 -1
  4. data/doc/text/news.textile +21 -1
  5. data/ext/groonga/extconf.rb +1 -6
  6. data/ext/groonga/rb-grn-table.c +20 -0
  7. data/ext/groonga/rb-grn.h +1 -1
  8. data/ext/groonga/rb-groonga.c +42 -0
  9. data/lib/1.9/groonga.so +0 -0
  10. data/lib/2.0/groonga.so +0 -0
  11. data/lib/2.1/groonga.so +0 -0
  12. data/lib/groonga/dumper.rb +7 -3
  13. data/lib/groonga/record.rb +19 -1
  14. data/rroonga-build.rb +5 -5
  15. data/test/test-array.rb +14 -1
  16. data/test/test-database-dumper.rb +68 -83
  17. data/test/test-database.rb +1 -1
  18. data/test/test-double-array-trie.rb +16 -1
  19. data/test/test-hash.rb +16 -1
  20. data/test/test-lock-timeout.rb +29 -0
  21. data/test/test-patricia-trie.rb +16 -1
  22. data/test/test-record.rb +194 -160
  23. data/test/test-variable-size-column.rb +1 -1
  24. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  25. data/vendor/local/bin/groonga.exe +0 -0
  26. data/vendor/local/bin/libgroonga-0.dll +0 -0
  27. data/vendor/local/bin/libmecab-1.dll +0 -0
  28. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  29. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  30. data/vendor/local/bin/mecab-config +2 -2
  31. data/vendor/local/bin/mecab.exe +0 -0
  32. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
  33. data/vendor/local/include/groonga/groonga.h +15 -1
  34. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  35. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  36. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  37. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +3 -3
  38. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  39. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  40. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  41. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
  42. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  43. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  44. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  45. data/vendor/local/lib/groonga/plugins/table/table.la +3 -3
  46. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  47. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  48. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  49. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
  50. data/vendor/local/lib/libgroonga.a +0 -0
  51. data/vendor/local/lib/libgroonga.dll.a +0 -0
  52. data/vendor/local/lib/libgroonga.la +3 -3
  53. data/vendor/local/lib/libmecab.a +0 -0
  54. data/vendor/local/lib/libmecab.dll.a +0 -0
  55. data/vendor/local/lib/libmecab.la +1 -1
  56. data/vendor/local/lib/libmsgpack.a +0 -0
  57. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  58. data/vendor/local/lib/libmsgpack.la +1 -1
  59. data/vendor/local/lib/libmsgpackc.a +0 -0
  60. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  61. data/vendor/local/lib/libmsgpackc.la +1 -1
  62. data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
  63. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  64. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  65. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  66. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  67. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  68. data/vendor/local/sbin/groonga-httpd-restart +1 -1
  69. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  70. data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +1 -0
  71. data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +1 -0
  72. data/vendor/local/share/doc/groonga/en/html/_sources/development.txt +2 -2
  73. data/vendor/local/share/doc/groonga/en/html/_sources/development/travis-ci.txt +6 -6
  74. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +7 -7
  75. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +6 -6
  76. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +6 -6
  77. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  78. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  79. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +4 -4
  80. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +10 -10
  81. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +10 -9
  82. data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +1 -0
  83. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +32 -1
  84. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
  85. data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt +49 -0
  86. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -0
  87. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grnslap.txt +1 -1
  88. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +2 -2
  89. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt +1 -1
  90. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +5 -6
  91. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_in_circle.txt +1 -1
  92. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_in_rectangle.txt +1 -1
  93. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +1 -1
  94. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/now.txt +1 -1
  95. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/rand.txt +1 -1
  96. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +5 -3
  97. data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr.txt +1 -1
  98. data/vendor/local/share/doc/groonga/en/html/_sources/reference/pseudo_column.txt +1 -1
  99. data/vendor/local/share/doc/groonga/en/html/_sources/reference/query_expanders/tsv.txt +1 -1
  100. data/vendor/local/share/doc/groonga/en/html/_sources/reference/tables.txt +4 -4
  101. data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +2 -2
  102. data/vendor/local/share/doc/groonga/en/html/_sources/server.txt +1 -0
  103. data/vendor/local/share/doc/groonga/en/html/_sources/spec.txt +1 -0
  104. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/introduction.txt +2 -2
  105. data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting.txt +1 -0
  106. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -0
  107. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +19 -0
  108. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +3 -0
  109. data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
  110. data/vendor/local/share/doc/groonga/en/html/characteristic.html +20 -18
  111. data/vendor/local/share/doc/groonga/en/html/community.html +20 -18
  112. data/vendor/local/share/doc/groonga/en/html/contribution.html +20 -18
  113. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +20 -18
  114. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +20 -18
  115. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +20 -18
  116. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +20 -18
  117. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +20 -18
  118. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +20 -18
  119. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +20 -18
  120. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +20 -18
  121. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +20 -18
  122. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +20 -18
  123. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +20 -18
  124. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +20 -18
  125. data/vendor/local/share/doc/groonga/en/html/development.html +22 -20
  126. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +26 -24
  127. data/vendor/local/share/doc/groonga/en/html/genindex.html +269 -183
  128. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +20 -18
  129. data/vendor/local/share/doc/groonga/en/html/index.html +41 -38
  130. data/vendor/local/share/doc/groonga/en/html/install.html +20 -18
  131. data/vendor/local/share/doc/groonga/en/html/install/centos.html +27 -25
  132. data/vendor/local/share/doc/groonga/en/html/install/debian.html +26 -24
  133. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +26 -24
  134. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +23 -21
  135. data/vendor/local/share/doc/groonga/en/html/install/others.html +23 -21
  136. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +24 -22
  137. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +30 -28
  138. data/vendor/local/share/doc/groonga/en/html/install/windows.html +29 -27
  139. data/vendor/local/share/doc/groonga/en/html/limitations.html +20 -18
  140. data/vendor/local/share/doc/groonga/en/html/news.html +239 -201
  141. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +20 -18
  142. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +20 -18
  143. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +20 -18
  144. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +20 -18
  145. data/vendor/local/share/doc/groonga/en/html/news/senna.html +20 -18
  146. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  147. data/vendor/local/share/doc/groonga/en/html/reference.html +41 -38
  148. data/vendor/local/share/doc/groonga/en/html/reference/api.html +46 -43
  149. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +205 -0
  150. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +55 -53
  151. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +78 -76
  152. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +48 -46
  153. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +75 -73
  154. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +54 -52
  155. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +46 -44
  156. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +62 -60
  157. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +46 -44
  158. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +46 -44
  159. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +48 -46
  160. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +42 -40
  161. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +46 -44
  162. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +44 -42
  163. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +117 -115
  164. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +48 -46
  165. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +40 -38
  166. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +80 -78
  167. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +56 -54
  168. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +40 -38
  169. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +36 -34
  170. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +20 -18
  171. data/vendor/local/share/doc/groonga/en/html/reference/command.html +20 -18
  172. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +20 -18
  173. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +20 -18
  174. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +20 -18
  175. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +20 -18
  176. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +21 -19
  177. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +20 -18
  178. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +20 -18
  179. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +21 -19
  180. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +20 -18
  181. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +20 -18
  182. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +21 -19
  183. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +20 -18
  184. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +20 -18
  185. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +21 -19
  186. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +20 -18
  187. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +21 -19
  188. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +20 -18
  189. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +20 -18
  190. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +20 -18
  191. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +21 -19
  192. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +20 -18
  193. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +20 -18
  194. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +21 -19
  195. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +21 -19
  196. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +21 -19
  197. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +20 -18
  198. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +20 -18
  199. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +20 -18
  200. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +21 -19
  201. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +20 -18
  202. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +20 -18
  203. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +21 -19
  204. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +20 -18
  205. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +23 -21
  206. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +26 -24
  207. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +20 -18
  208. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +20 -18
  209. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +20 -18
  210. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +26 -24
  211. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +20 -18
  212. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +33 -31
  213. data/vendor/local/share/doc/groonga/en/html/reference/function.html +20 -18
  214. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +20 -18
  215. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +21 -19
  216. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +23 -21
  217. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +21 -19
  218. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +21 -19
  219. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +21 -19
  220. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +21 -19
  221. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +20 -18
  222. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +21 -19
  223. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +24 -21
  224. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +20 -18
  225. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +21 -19
  226. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +20 -18
  227. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +20 -18
  228. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +20 -18
  229. data/vendor/local/share/doc/groonga/en/html/reference/log.html +20 -18
  230. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +20 -18
  231. data/vendor/local/share/doc/groonga/en/html/reference/output.html +20 -18
  232. data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +21 -19
  233. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +20 -18
  234. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +21 -19
  235. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +24 -22
  236. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +20 -18
  237. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +22 -20
  238. data/vendor/local/share/doc/groonga/en/html/reference/types.html +21 -19
  239. data/vendor/local/share/doc/groonga/en/html/search.html +12 -12
  240. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  241. data/vendor/local/share/doc/groonga/en/html/server.html +20 -18
  242. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +20 -18
  243. data/vendor/local/share/doc/groonga/en/html/server/http.html +20 -18
  244. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +20 -18
  245. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +20 -18
  246. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +20 -18
  247. data/vendor/local/share/doc/groonga/en/html/server/package.html +20 -18
  248. data/vendor/local/share/doc/groonga/en/html/spec.html +24 -22
  249. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +20 -18
  250. data/vendor/local/share/doc/groonga/en/html/spec/search.html +20 -18
  251. data/vendor/local/share/doc/groonga/en/html/suggest.html +20 -18
  252. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +20 -18
  253. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +20 -18
  254. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +22 -20
  255. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +20 -18
  256. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +20 -18
  257. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +20 -18
  258. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +20 -18
  259. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +20 -18
  260. data/vendor/local/share/doc/groonga/en/html/tutorial.html +20 -18
  261. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +20 -18
  262. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +20 -18
  263. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +20 -18
  264. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +20 -18
  265. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +20 -18
  266. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +20 -18
  267. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +20 -18
  268. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +20 -18
  269. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +20 -18
  270. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +20 -18
  271. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +20 -18
  272. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  273. data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +1 -0
  274. data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +1 -0
  275. data/vendor/local/share/doc/groonga/ja/html/_sources/development.txt +2 -2
  276. data/vendor/local/share/doc/groonga/ja/html/_sources/development/travis-ci.txt +6 -6
  277. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +7 -7
  278. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +6 -6
  279. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +6 -6
  280. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  281. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  282. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +4 -4
  283. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +10 -10
  284. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +10 -9
  285. data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +1 -0
  286. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +32 -1
  287. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
  288. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt +49 -0
  289. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -0
  290. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grnslap.txt +1 -1
  291. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +2 -2
  292. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt +1 -1
  293. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +5 -6
  294. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_in_circle.txt +1 -1
  295. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_in_rectangle.txt +1 -1
  296. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +1 -1
  297. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/now.txt +1 -1
  298. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/rand.txt +1 -1
  299. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +5 -3
  300. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr.txt +1 -1
  301. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/pseudo_column.txt +1 -1
  302. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/query_expanders/tsv.txt +1 -1
  303. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tables.txt +4 -4
  304. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +2 -2
  305. data/vendor/local/share/doc/groonga/ja/html/_sources/server.txt +1 -0
  306. data/vendor/local/share/doc/groonga/ja/html/_sources/spec.txt +1 -0
  307. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/introduction.txt +2 -2
  308. data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting.txt +1 -0
  309. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -0
  310. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +19 -0
  311. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +3 -0
  312. data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
  313. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +20 -18
  314. data/vendor/local/share/doc/groonga/ja/html/community.html +20 -18
  315. data/vendor/local/share/doc/groonga/ja/html/contribution.html +20 -18
  316. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +20 -18
  317. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +20 -18
  318. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +20 -18
  319. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +20 -18
  320. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +20 -18
  321. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +20 -18
  322. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +20 -18
  323. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +20 -18
  324. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +20 -18
  325. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +20 -18
  326. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +20 -18
  327. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +20 -18
  328. data/vendor/local/share/doc/groonga/ja/html/development.html +20 -18
  329. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +20 -18
  330. data/vendor/local/share/doc/groonga/ja/html/genindex.html +274 -183
  331. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +20 -18
  332. data/vendor/local/share/doc/groonga/ja/html/index.html +41 -38
  333. data/vendor/local/share/doc/groonga/ja/html/install.html +20 -18
  334. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +23 -21
  335. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +23 -21
  336. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +23 -21
  337. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +23 -21
  338. data/vendor/local/share/doc/groonga/ja/html/install/others.html +23 -21
  339. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +23 -21
  340. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +23 -21
  341. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -27
  342. data/vendor/local/share/doc/groonga/ja/html/limitations.html +20 -18
  343. data/vendor/local/share/doc/groonga/ja/html/news.html +264 -224
  344. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +20 -18
  345. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +20 -18
  346. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +20 -18
  347. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +27 -25
  348. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +20 -18
  349. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  350. data/vendor/local/share/doc/groonga/ja/html/reference.html +41 -38
  351. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +46 -43
  352. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +206 -0
  353. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +55 -53
  354. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +78 -76
  355. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +48 -46
  356. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +74 -72
  357. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +54 -52
  358. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +46 -44
  359. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +62 -60
  360. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +46 -44
  361. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +46 -44
  362. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +48 -46
  363. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +42 -40
  364. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +46 -44
  365. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +44 -42
  366. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +117 -115
  367. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +48 -46
  368. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +40 -38
  369. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +80 -78
  370. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +56 -54
  371. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +40 -38
  372. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +36 -34
  373. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +20 -18
  374. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +20 -18
  375. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +20 -18
  376. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +20 -18
  377. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +20 -18
  378. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +20 -18
  379. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +21 -19
  380. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +20 -18
  381. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +20 -18
  382. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +21 -19
  383. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +20 -18
  384. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +20 -18
  385. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +21 -19
  386. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +20 -18
  387. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +20 -18
  388. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +21 -19
  389. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +20 -18
  390. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +21 -19
  391. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +20 -18
  392. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +20 -18
  393. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +20 -18
  394. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +21 -19
  395. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +20 -18
  396. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +20 -18
  397. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +21 -19
  398. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +21 -19
  399. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +21 -19
  400. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +20 -18
  401. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +20 -18
  402. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +20 -18
  403. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +21 -19
  404. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +20 -18
  405. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +20 -18
  406. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +21 -19
  407. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +20 -18
  408. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +23 -21
  409. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +26 -24
  410. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +20 -18
  411. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +20 -18
  412. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +20 -18
  413. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +26 -24
  414. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +20 -18
  415. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +33 -31
  416. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +20 -18
  417. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +20 -18
  418. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +21 -19
  419. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +23 -21
  420. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +21 -19
  421. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +21 -19
  422. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +21 -19
  423. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +21 -19
  424. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +20 -18
  425. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +21 -19
  426. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +24 -20
  427. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +20 -18
  428. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +22 -20
  429. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +20 -18
  430. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +21 -19
  431. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +22 -20
  432. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +20 -18
  433. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +20 -18
  434. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +22 -20
  435. data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +21 -19
  436. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +20 -18
  437. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +21 -19
  438. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +23 -21
  439. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +20 -18
  440. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +22 -20
  441. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +21 -19
  442. data/vendor/local/share/doc/groonga/ja/html/search.html +12 -12
  443. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  444. data/vendor/local/share/doc/groonga/ja/html/server.html +20 -18
  445. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +20 -18
  446. data/vendor/local/share/doc/groonga/ja/html/server/http.html +20 -18
  447. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +20 -18
  448. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +20 -18
  449. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +20 -18
  450. data/vendor/local/share/doc/groonga/ja/html/server/package.html +20 -18
  451. data/vendor/local/share/doc/groonga/ja/html/spec.html +24 -22
  452. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +20 -18
  453. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +20 -18
  454. data/vendor/local/share/doc/groonga/ja/html/suggest.html +21 -19
  455. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +22 -20
  456. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +22 -20
  457. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +21 -19
  458. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +22 -20
  459. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +20 -18
  460. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +20 -18
  461. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +20 -18
  462. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +20 -18
  463. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +20 -18
  464. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +20 -18
  465. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +20 -18
  466. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +20 -18
  467. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +20 -18
  468. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +20 -18
  469. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +20 -18
  470. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +20 -18
  471. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +20 -18
  472. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +20 -18
  473. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +20 -18
  474. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +20 -18
  475. data/vendor/local/share/man/ja/man1/groonga.1 +198 -132
  476. data/vendor/local/share/man/man1/groonga.1 +619 -554
  477. metadata +8 -14
  478. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/add.txt +0 -104
  479. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/get.txt +0 -80
  480. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/set.txt +0 -105
  481. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +0 -199
  482. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +0 -180
  483. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +0 -201
  484. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/add.txt +0 -104
  485. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/get.txt +0 -80
  486. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/set.txt +0 -105
  487. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +0 -200
  488. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +0 -181
  489. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +0 -202
@@ -150,7 +150,7 @@ class DatabaseTest < Test::Unit::TestCase
150
150
  users.add(:name => "user #{i}" * 1000,
151
151
  :address => "address #{i}" * 1000)
152
152
  end
153
- assert_equal(7, @database.defrag)
153
+ assert_equal(3, @database.defrag)
154
154
  end
155
155
 
156
156
  def test_tables
@@ -27,6 +27,21 @@ class DoubleArrayTrieTest < Test::Unit::TestCase
27
27
  :support_key?)
28
28
  end
29
29
 
30
+ class SupportValueTest < self
31
+ def test_have_value_type
32
+ assert_predicate(Groonga::DoubleArrayTrie.create(:name => "Users",
33
+ :key_type => "ShortText",
34
+ :value_type => "Int32"),
35
+ :support_value?)
36
+ end
37
+
38
+ def test_no_value_type
39
+ assert_not_predicate(Groonga::DoubleArrayTrie.create(:name => "Users",
40
+ :key_type => "ShortText"),
41
+ :support_value?)
42
+ end
43
+ end
44
+
30
45
  def test_encoding
31
46
  assert_equal(Groonga::Encoding.default,
32
47
  Groonga::DoubleArrayTrie.create.encoding)
@@ -148,7 +163,7 @@ class DoubleArrayTrieTest < Test::Unit::TestCase
148
163
  :name => "user #{i}" * 1000,
149
164
  :address => "address #{i}" * 1000)
150
165
  end
151
- assert_equal(7, users.defrag)
166
+ assert_equal(3, users.defrag)
152
167
  end
153
168
 
154
169
  def test_rename
data/test/test-hash.rb CHANGED
@@ -26,6 +26,21 @@ class HashTest < Test::Unit::TestCase
26
26
  :support_key?)
27
27
  end
28
28
 
29
+ class SupportValueTest < self
30
+ def test_have_value_type
31
+ assert_predicate(Groonga::Hash.create(:name => "Users",
32
+ :key_type => "ShortText",
33
+ :value_type => "Int32"),
34
+ :support_value?)
35
+ end
36
+
37
+ def test_no_value_type
38
+ assert_not_predicate(Groonga::Hash.create(:name => "Users",
39
+ :key_type => "ShortText"),
40
+ :support_value?)
41
+ end
42
+ end
43
+
29
44
  class DeleteTest < self
30
45
  setup
31
46
  def setup_data
@@ -357,7 +372,7 @@ class HashTest < Test::Unit::TestCase
357
372
  :name => "user #{i}" * 1000,
358
373
  :address => "address #{i}" * 1000)
359
374
  end
360
- assert_equal(7, users.defrag)
375
+ assert_equal(3, users.defrag)
361
376
  end
362
377
 
363
378
  def test_rename
@@ -0,0 +1,29 @@
1
+ # Copyright (C) 2014 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
+
16
+ class LockTimeoutTest < Test::Unit::TestCase
17
+ def setup
18
+ @original_lock_timeout = Groonga.lock_timeout
19
+ end
20
+
21
+ def teardown
22
+ Groonga.lock_timeout = @original_lock_timeout
23
+ end
24
+
25
+ def test_accessor
26
+ Groonga.lock_timeout = 10
27
+ assert_equal(10, Groonga.lock_timeout)
28
+ end
29
+ end
@@ -27,6 +27,21 @@ class PatriciaTrieTest < Test::Unit::TestCase
27
27
  :support_key?)
28
28
  end
29
29
 
30
+ class SupportValueTest < self
31
+ def test_have_value_type
32
+ assert_predicate(Groonga::PatriciaTrie.create(:name => "Users",
33
+ :key_type => "ShortText",
34
+ :value_type => "Int32"),
35
+ :support_value?)
36
+ end
37
+
38
+ def test_no_value_type
39
+ assert_not_predicate(Groonga::PatriciaTrie.create(:name => "Users",
40
+ :key_type => "ShortText"),
41
+ :support_value?)
42
+ end
43
+ end
44
+
30
45
  def test_encoding
31
46
  assert_equal(Groonga::Encoding.default,
32
47
  Groonga::PatriciaTrie.create.encoding)
@@ -407,7 +422,7 @@ class PatriciaTrieTest < Test::Unit::TestCase
407
422
  :name => "user #{i}" * 1000,
408
423
  :address => "address #{i}" * 1000)
409
424
  end
410
- assert_equal(7, users.defrag)
425
+ assert_equal(3, users.defrag)
411
426
  end
412
427
 
413
428
  def test_rename
data/test/test-record.rb CHANGED
@@ -309,197 +309,231 @@ class RecordTest < Test::Unit::TestCase
309
309
  assert_not_predicate(groonga, :locked?)
310
310
  end
311
311
 
312
- def test_attributes
313
- values = {
314
- "uri" => "http://groonga.org/",
315
- "rate" => 5,
316
- "comment" => "Great!"
317
- }
318
- groonga = @bookmarks.add(values)
319
- assert_equal(values.merge("_id" => groonga.id,
320
- "content" => nil,
321
- "user" => nil),
322
- groonga.attributes)
323
- end
312
+ class AttributesTest < self
313
+ def test_basic
314
+ values = {
315
+ "uri" => "http://groonga.org/",
316
+ "rate" => 5,
317
+ "comment" => "Great!"
318
+ }
319
+ groonga = @bookmarks.add(values)
320
+ assert_equal(values.merge("_id" => groonga.id,
321
+ "_value" => 0,
322
+ "content" => nil,
323
+ "user" => nil),
324
+ groonga.attributes)
325
+ end
324
326
 
325
- def test_recursive_attributes
326
- need_self_recursive_equal
327
+ def test_recursive
328
+ need_self_recursive_equal
327
329
 
328
- @bookmarks.define_column("next", @bookmarks)
330
+ @bookmarks.define_column("next", @bookmarks)
329
331
 
330
- top_page_record = @bookmarks.add(top_page)
331
- doc_page_record = @bookmarks.add(doc_page)
332
+ top_page_record = @bookmarks.add(top_page)
333
+ doc_page_record = @bookmarks.add(doc_page)
332
334
 
333
- top_page_record["next"] = doc_page_record
334
- doc_page_record["next"] = top_page_record
335
+ top_page_record["next"] = doc_page_record
336
+ doc_page_record["next"] = top_page_record
335
337
 
336
- expected = {
337
- "_id" => 1,
338
- "user" => nil,
339
- "uri" => "http://groonga.org/",
340
- "rate" => 5,
341
- "next" => {
342
- "_id" => 2,
338
+ expected = {
339
+ "_id" => 1,
340
+ "_value" => 0,
343
341
  "user" => nil,
344
- "uri" => "http://groonga.org/document.html",
345
- "rate" => 8,
342
+ "uri" => "http://groonga.org/",
343
+ "rate" => 5,
344
+ "next" => {
345
+ "_id" => 2,
346
+ "_value" => 0,
347
+ "user" => nil,
348
+ "uri" => "http://groonga.org/document.html",
349
+ "rate" => 8,
350
+ "content" => nil,
351
+ "comment" => "Informative"
352
+ },
346
353
  "content" => nil,
347
- "comment" => "Informative"
348
- },
349
- "content" => nil,
350
- "comment" => "Great!"
351
- }
352
- expected["next"]["next"] = expected
354
+ "comment" => "Great!"
355
+ }
356
+ expected["next"]["next"] = expected
353
357
 
354
- assert_equal(expected, top_page_record.attributes)
355
- end
358
+ assert_equal(expected, top_page_record.attributes)
359
+ end
356
360
 
357
- def test_duplicate_records_attributes
358
- need_self_recursive_equal
361
+ def test_duplicate_records
362
+ need_self_recursive_equal
359
363
 
360
- @bookmarks.define_column("next1", @bookmarks)
361
- @bookmarks.define_column("next2", @bookmarks)
364
+ @bookmarks.define_column("next1", @bookmarks)
365
+ @bookmarks.define_column("next2", @bookmarks)
362
366
 
363
- top_page_record = @bookmarks.add(top_page)
364
- doc_page_record = @bookmarks.add(doc_page)
367
+ top_page_record = @bookmarks.add(top_page)
368
+ doc_page_record = @bookmarks.add(doc_page)
365
369
 
366
- top_page_record["next1"] = doc_page_record
367
- top_page_record["next2"] = doc_page_record
368
- doc_page_record["next1"] = top_page_record
370
+ top_page_record["next1"] = doc_page_record
371
+ top_page_record["next2"] = doc_page_record
372
+ doc_page_record["next1"] = top_page_record
369
373
 
370
- doc_page_attributes = {
371
- "_id" => 2,
372
- "user" => nil,
373
- "uri" => "http://groonga.org/document.html",
374
- "rate" => 8,
375
- "content" => nil,
376
- "comment" => "Informative",
377
- "next2" => nil
378
- }
379
- top_page_attributes = {
380
- "_id" => 1,
381
- "user" => nil,
382
- "uri" => "http://groonga.org/",
383
- "rate" => 5,
384
- "next1" => doc_page_attributes,
385
- "next2" => doc_page_attributes,
386
- "content" => nil,
387
- "comment" => "Great!"
388
- }
389
- doc_page_attributes["next1"] = top_page_attributes
374
+ doc_page_attributes = {
375
+ "_id" => 2,
376
+ "_value" => 0,
377
+ "user" => nil,
378
+ "uri" => "http://groonga.org/document.html",
379
+ "rate" => 8,
380
+ "content" => nil,
381
+ "comment" => "Informative",
382
+ "next2" => nil
383
+ }
384
+ top_page_attributes = {
385
+ "_id" => 1,
386
+ "_value" => 0,
387
+ "user" => nil,
388
+ "uri" => "http://groonga.org/",
389
+ "rate" => 5,
390
+ "next1" => doc_page_attributes,
391
+ "next2" => doc_page_attributes,
392
+ "content" => nil,
393
+ "comment" => "Great!"
394
+ }
395
+ doc_page_attributes["next1"] = top_page_attributes
390
396
 
391
- actual_records = top_page_record.attributes
392
- assert_equal(top_page_attributes, actual_records)
393
- assert_equal(actual_records["next1"].object_id,
394
- actual_records["next2"].object_id)
395
- end
397
+ actual_records = top_page_record.attributes
398
+ assert_equal(top_page_attributes, actual_records)
399
+ assert_equal(actual_records["next1"].object_id,
400
+ actual_records["next2"].object_id)
401
+ end
396
402
 
397
- def test_select_result_attributes
398
- @bookmarks.add(top_page)
399
- select_result = @bookmarks.select
400
- select_result_result = select_result.first
403
+ def test_select_result
404
+ @bookmarks.add(top_page)
405
+ select_result = @bookmarks.select
406
+ select_result_result = select_result.first
401
407
 
402
- expected_attributes = {
403
- "_id" => 1,
404
- "_key" => {
405
- "comment" => "Great!",
406
- "content" => nil,
408
+ expected_attributes = {
407
409
  "_id" => 1,
408
- "rate" => 5,
409
- "uri" => "http://groonga.org/",
410
- "user" => nil
411
- },
412
- "_score" => 1,
413
- }
410
+ "_key" => {
411
+ "comment" => "Great!",
412
+ "content" => nil,
413
+ "_id" => 1,
414
+ "_value" => 0,
415
+ "rate" => 5,
416
+ "uri" => "http://groonga.org/",
417
+ "user" => nil
418
+ },
419
+ "_score" => 1,
420
+ }
414
421
 
415
- assert_equal(expected_attributes, select_result_result.attributes)
416
- end
422
+ assert_equal(expected_attributes, select_result_result.attributes)
423
+ end
417
424
 
418
- def test_self_referencing_attributes
419
- need_self_recursive_equal
425
+ def test_sort_result
426
+ @bookmarks.add(top_page)
427
+ sort_result = @bookmarks.sort(["_id"])
428
+ sort_result_result = sort_result.first
420
429
 
421
- @bookmarks.define_column("next", @bookmarks)
430
+ expected_attributes = {
431
+ "_id" => 1,
432
+ "_value" => {
433
+ "comment" => "Great!",
434
+ "content" => nil,
435
+ "_id" => 1,
436
+ "_value" => 0,
437
+ "rate" => 5,
438
+ "uri" => "http://groonga.org/",
439
+ "user" => nil
440
+ },
441
+ }
422
442
 
423
- top_page_record = @bookmarks.add(top_page)
424
- top_page_record["next"] = top_page_record
443
+ assert_equal(expected_attributes, sort_result_result.attributes)
444
+ end
425
445
 
426
- expected = {
427
- "_id" => 1,
428
- "user" => nil,
429
- "uri" => "http://groonga.org/",
430
- "rate" => 5,
431
- "content" => nil,
432
- "comment" => "Great!"
433
- }
434
- expected["next"] = expected
446
+ def test_self_referencing
447
+ need_self_recursive_equal
435
448
 
436
- assert_equal(expected, top_page_record.attributes)
437
- end
449
+ @bookmarks.define_column("next", @bookmarks)
438
450
 
439
- def test_vector_attributes
440
- @bookmarks.define_column("related_bookmarks", @bookmarks, :type => :vector)
451
+ top_page_record = @bookmarks.add(top_page)
452
+ top_page_record["next"] = top_page_record
441
453
 
442
- top_page_record = @bookmarks.add(top_page)
443
- doc_page_record = @bookmarks.add(doc_page)
444
- top_page_record["related_bookmarks"] = [doc_page_record]
454
+ expected = {
455
+ "_id" => 1,
456
+ "_value" => 0,
457
+ "user" => nil,
458
+ "uri" => "http://groonga.org/",
459
+ "rate" => 5,
460
+ "content" => nil,
461
+ "comment" => "Great!"
462
+ }
463
+ expected["next"] = expected
445
464
 
446
- expected = {
447
- "_id" => 1,
448
- "user" => nil,
449
- "uri" => "http://groonga.org/",
450
- "rate" => 5,
451
- "related_bookmarks" => [
452
- {
453
- "_id" => 2,
454
- "comment" => "Informative",
455
- "content" => nil,
456
- "rate" => 8,
457
- "related_bookmarks" => [],
458
- "uri" => "http://groonga.org/document.html",
459
- "user" => nil,
460
- }
461
- ],
462
- "content" => nil,
463
- "comment" => "Great!"
464
- }
465
+ assert_equal(expected, top_page_record.attributes)
466
+ end
465
467
 
466
- assert_equal(expected, top_page_record.attributes)
467
- end
468
+ def test_vector
469
+ @bookmarks.define_column("related_bookmarks", @bookmarks, :type => :vector)
468
470
 
469
- def test_self_referencing_vector_attributes
470
- need_self_recursive_equal
471
+ top_page_record = @bookmarks.add(top_page)
472
+ doc_page_record = @bookmarks.add(doc_page)
473
+ top_page_record["related_bookmarks"] = [doc_page_record]
471
474
 
472
- @bookmarks.define_column("related_bookmarks", @bookmarks, :type => :vector)
475
+ expected = {
476
+ "_id" => 1,
477
+ "_value" => 0,
478
+ "user" => nil,
479
+ "uri" => "http://groonga.org/",
480
+ "rate" => 5,
481
+ "related_bookmarks" => [
482
+ {
483
+ "_id" => 2,
484
+ "_value" => 0,
485
+ "comment" => "Informative",
486
+ "content" => nil,
487
+ "rate" => 8,
488
+ "related_bookmarks" => [],
489
+ "uri" => "http://groonga.org/document.html",
490
+ "user" => nil,
491
+ }
492
+ ],
493
+ "content" => nil,
494
+ "comment" => "Great!"
495
+ }
473
496
 
474
- top_page_record = @bookmarks.add(top_page)
475
- doc_page_record = @bookmarks.add(doc_page)
476
- top_page_record["related_bookmarks"] = [
477
- top_page_record,
478
- doc_page_record
479
- ]
497
+ assert_equal(expected, top_page_record.attributes)
498
+ end
480
499
 
481
- top_page_attributes = {
482
- "_id" => 1,
483
- "user" => nil,
484
- "uri" => "http://groonga.org/",
485
- "rate" => 5,
486
- "content" => nil,
487
- "comment" => "Great!"
488
- }
489
- doc_page_attributes = {
490
- "_id" => 2,
491
- "comment" => "Informative",
492
- "content" => nil,
493
- "rate" => 8,
494
- "related_bookmarks" => [],
495
- "uri" => "http://groonga.org/document.html",
496
- "user" => nil,
497
- }
498
- top_page_attributes["related_bookmarks"] = [
499
- top_page_attributes,
500
- doc_page_attributes
501
- ]
502
- assert_equal(top_page_attributes, top_page_record.attributes)
500
+ def test_self_referencing_vector
501
+ need_self_recursive_equal
502
+
503
+ @bookmarks.define_column("related_bookmarks", @bookmarks, :type => :vector)
504
+
505
+ top_page_record = @bookmarks.add(top_page)
506
+ doc_page_record = @bookmarks.add(doc_page)
507
+ top_page_record["related_bookmarks"] = [
508
+ top_page_record,
509
+ doc_page_record
510
+ ]
511
+
512
+ top_page_attributes = {
513
+ "_id" => 1,
514
+ "_value" => 0,
515
+ "user" => nil,
516
+ "uri" => "http://groonga.org/",
517
+ "rate" => 5,
518
+ "content" => nil,
519
+ "comment" => "Great!"
520
+ }
521
+ doc_page_attributes = {
522
+ "_id" => 2,
523
+ "_value" => 0,
524
+ "comment" => "Informative",
525
+ "content" => nil,
526
+ "rate" => 8,
527
+ "related_bookmarks" => [],
528
+ "uri" => "http://groonga.org/document.html",
529
+ "user" => nil,
530
+ }
531
+ top_page_attributes["related_bookmarks"] = [
532
+ top_page_attributes,
533
+ doc_page_attributes
534
+ ]
535
+ assert_equal(top_page_attributes, top_page_record.attributes)
536
+ end
503
537
  end
504
538
 
505
539
  def test_dynamic_accessor