rroonga 1.2.5-x86-mingw32 → 1.2.7-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.
Files changed (300) hide show
  1. data/Gemfile +30 -0
  2. data/Rakefile +24 -285
  3. data/ext/groonga/extconf.rb +4 -2
  4. data/ext/groonga/rb-grn-array.c +5 -4
  5. data/ext/groonga/rb-grn-context.c +7 -22
  6. data/ext/groonga/rb-grn-database.c +42 -1
  7. data/ext/groonga/rb-grn-index-column.c +5 -0
  8. data/ext/groonga/rb-grn-object.c +58 -26
  9. data/ext/groonga/rb-grn-patricia-trie.c +2 -1
  10. data/ext/groonga/rb-grn-record.c +11 -1
  11. data/ext/groonga/rb-grn-snippet.c +44 -1
  12. data/ext/groonga/rb-grn-table-key-support.c +21 -10
  13. data/ext/groonga/rb-grn-utils.c +3 -1
  14. data/ext/groonga/rb-grn-variable-size-column.c +47 -1
  15. data/ext/groonga/rb-grn.h +4 -1
  16. data/extconf.rb +1 -0
  17. data/lib/1.8/groonga.so +0 -0
  18. data/lib/1.9/groonga.so +0 -0
  19. data/lib/groonga/dumper.rb +3 -3
  20. data/lib/groonga/pagination.rb +1 -1
  21. data/lib/groonga/record.rb +10 -0
  22. data/rroonga-build.rb +1 -1
  23. data/test/test-accessor.rb +4 -0
  24. data/test/test-array.rb +9 -1
  25. data/test/test-database.rb +16 -0
  26. data/test/test-expression.rb +2 -0
  27. data/test/test-hash.rb +11 -2
  28. data/test/test-patricia-trie.rb +10 -1
  29. data/test/test-table-select.rb +31 -17
  30. data/test/test-type.rb +3 -3
  31. data/test/test-variable-size-column.rb +8 -1
  32. data/vendor/local/bin/grntest.exe +0 -0
  33. data/vendor/local/bin/groonga.exe +0 -0
  34. data/vendor/local/bin/libgroonga-0.dll +0 -0
  35. data/vendor/local/bin/libmecab-1.dll +0 -0
  36. data/vendor/local/bin/mecab-config +2 -2
  37. data/vendor/local/bin/mecab.exe +0 -0
  38. data/vendor/local/include/groonga/groonga.h +20 -4
  39. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  40. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  41. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  42. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
  43. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  44. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  45. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  46. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
  47. data/vendor/local/lib/libgroonga.a +0 -0
  48. data/vendor/local/lib/libgroonga.dll.a +0 -0
  49. data/vendor/local/lib/libgroonga.la +2 -2
  50. data/vendor/local/lib/libmecab.a +0 -0
  51. data/vendor/local/lib/libmecab.dll.a +0 -0
  52. data/vendor/local/lib/libmecab.la +1 -1
  53. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  54. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  55. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  56. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  57. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  58. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  59. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  60. data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +207 -35
  61. data/vendor/local/share/doc/groonga/en/html/_sources/executables/grntest.txt +1 -1
  62. data/vendor/local/share/doc/groonga/en/html/_sources/executables/{http.txt → groonga-http.txt} +1 -1
  63. data/vendor/local/share/doc/groonga/en/html/_sources/executables/groonga-suggest-create-dataset.txt +50 -0
  64. data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +1 -0
  65. data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +14 -3
  66. data/vendor/local/share/doc/groonga/en/html/_sources/log.txt +214 -0
  67. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +1 -1
  68. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +35 -3
  69. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/completion.txt +195 -0
  70. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/correction.txt +148 -0
  71. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/introduction.txt +94 -0
  72. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/suggestion.txt +115 -0
  73. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/tutorial.txt +8 -0
  74. data/vendor/local/share/doc/groonga/en/html/_sources/suggest.txt +22 -0
  75. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial01.txt +2 -1
  76. data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +1 -0
  77. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  78. data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
  79. data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
  80. data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
  81. data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
  82. data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
  83. data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
  84. data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
  85. data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
  86. data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
  87. data/vendor/local/share/doc/groonga/en/html/commands/delete.html +34 -34
  88. data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
  89. data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
  90. data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
  91. data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
  92. data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
  93. data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
  94. data/vendor/local/share/doc/groonga/en/html/commands/select.html +38 -38
  95. data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
  96. data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
  97. data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +258 -72
  98. data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +34 -34
  99. data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
  100. data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
  101. data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
  102. data/vendor/local/share/doc/groonga/en/html/commands.html +42 -42
  103. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  104. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
  105. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
  106. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
  107. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
  108. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +8 -8
  109. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
  110. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +7 -7
  111. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +8 -8
  112. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +12 -12
  113. data/vendor/local/share/doc/groonga/en/html/contribution.html +10 -10
  114. data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +32 -32
  115. data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +49 -49
  116. data/vendor/local/share/doc/groonga/en/html/executables/{http.html → groonga-http.html} +34 -34
  117. data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +186 -0
  118. data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +37 -37
  119. data/vendor/local/share/doc/groonga/en/html/executables.html +22 -21
  120. data/vendor/local/share/doc/groonga/en/html/expr.html +26 -26
  121. data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
  122. data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +32 -32
  123. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +32 -32
  124. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
  125. data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
  126. data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
  127. data/vendor/local/share/doc/groonga/en/html/functions.html +23 -23
  128. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  129. data/vendor/local/share/doc/groonga/en/html/index.html +105 -74
  130. data/vendor/local/share/doc/groonga/en/html/install.html +22 -11
  131. data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
  132. data/vendor/local/share/doc/groonga/en/html/log.html +345 -0
  133. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  134. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +6 -6
  135. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  136. data/vendor/local/share/doc/groonga/en/html/news.html +94 -57
  137. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  138. data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +22 -22
  139. data/vendor/local/share/doc/groonga/en/html/reference.html +69 -68
  140. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  141. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  142. data/vendor/local/share/doc/groonga/en/html/spec/search.html +28 -28
  143. data/vendor/local/share/doc/groonga/en/html/spec.html +15 -15
  144. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +357 -0
  145. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +286 -0
  146. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +243 -0
  147. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +265 -0
  148. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +134 -0
  149. data/vendor/local/share/doc/groonga/en/html/suggest.html +166 -0
  150. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
  151. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -19
  152. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial01.html +6 -6
  153. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial02.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial03.html +5 -5
  155. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial04.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial05.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial06.html +5 -5
  158. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial07.html +5 -5
  159. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial08.html +5 -5
  160. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial09.html +5 -5
  161. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial10.html +10 -10
  162. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  163. data/vendor/local/share/doc/groonga/en/html/type.html +30 -30
  164. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  165. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +207 -35
  166. data/vendor/local/share/doc/groonga/ja/html/_sources/executables/grntest.txt +1 -1
  167. data/vendor/local/share/doc/groonga/{source/executables/http.txt → ja/html/_sources/executables/groonga-http.txt} +1 -1
  168. data/vendor/local/share/doc/groonga/ja/html/_sources/executables/groonga-suggest-create-dataset.txt +50 -0
  169. data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +1 -0
  170. data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +14 -3
  171. data/vendor/local/share/doc/groonga/ja/html/_sources/log.txt +214 -0
  172. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +1 -1
  173. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +35 -3
  174. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/completion.txt +195 -0
  175. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/correction.txt +148 -0
  176. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/introduction.txt +94 -0
  177. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/suggestion.txt +115 -0
  178. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/tutorial.txt +8 -0
  179. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest.txt +22 -0
  180. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial01.txt +2 -1
  181. data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +1 -0
  182. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  183. data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
  184. data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
  185. data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
  186. data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
  187. data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
  188. data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
  189. data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
  190. data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
  191. data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
  192. data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +34 -34
  193. data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
  194. data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
  195. data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
  196. data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
  197. data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
  198. data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
  199. data/vendor/local/share/doc/groonga/ja/html/commands/select.html +38 -38
  200. data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
  201. data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
  202. data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +237 -72
  203. data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +34 -34
  204. data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
  205. data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
  206. data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
  207. data/vendor/local/share/doc/groonga/ja/html/commands.html +42 -42
  208. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  209. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
  210. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
  211. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
  212. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
  213. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +8 -8
  214. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
  215. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +7 -7
  216. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +8 -8
  217. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +12 -12
  218. data/vendor/local/share/doc/groonga/ja/html/contribution.html +10 -10
  219. data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +32 -32
  220. data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +49 -49
  221. data/vendor/local/share/doc/groonga/ja/html/executables/{http.html → groonga-http.html} +34 -34
  222. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +187 -0
  223. data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +37 -37
  224. data/vendor/local/share/doc/groonga/ja/html/executables.html +22 -21
  225. data/vendor/local/share/doc/groonga/ja/html/expr.html +26 -26
  226. data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
  227. data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +32 -32
  228. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +32 -32
  229. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
  230. data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
  231. data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
  232. data/vendor/local/share/doc/groonga/ja/html/functions.html +23 -23
  233. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  234. data/vendor/local/share/doc/groonga/ja/html/index.html +105 -74
  235. data/vendor/local/share/doc/groonga/ja/html/install.html +24 -11
  236. data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
  237. data/vendor/local/share/doc/groonga/ja/html/log.html +346 -0
  238. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  239. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +6 -6
  240. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  241. data/vendor/local/share/doc/groonga/ja/html/news.html +87 -55
  242. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  243. data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +22 -22
  244. data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -68
  245. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  246. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  247. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +28 -28
  248. data/vendor/local/share/doc/groonga/ja/html/spec.html +15 -15
  249. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +327 -0
  250. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +254 -0
  251. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +225 -0
  252. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +248 -0
  253. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +135 -0
  254. data/vendor/local/share/doc/groonga/ja/html/suggest.html +166 -0
  255. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
  256. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -19
  257. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial01.html +6 -6
  258. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial02.html +5 -5
  259. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial03.html +5 -5
  260. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial04.html +5 -5
  261. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial05.html +5 -5
  262. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial06.html +5 -5
  263. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial07.html +5 -5
  264. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial08.html +5 -5
  265. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial09.html +5 -5
  266. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial10.html +10 -10
  267. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  268. data/vendor/local/share/doc/groonga/ja/html/type.html +30 -30
  269. data/vendor/local/share/doc/groonga/source/commands/suggest.txt +207 -35
  270. data/vendor/local/share/doc/groonga/source/example/completion-1.log +5 -0
  271. data/vendor/local/share/doc/groonga/source/example/correction-1.log +5 -0
  272. data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +5 -0
  273. data/vendor/local/share/doc/groonga/source/executables/grntest.txt +1 -1
  274. data/vendor/local/share/doc/groonga/{ja/html/_sources/executables/http.txt → source/executables/groonga-http.txt} +1 -1
  275. data/vendor/local/share/doc/groonga/source/executables/groonga-suggest-create-dataset.txt +50 -0
  276. data/vendor/local/share/doc/groonga/source/index.txt +1 -0
  277. data/vendor/local/share/doc/groonga/source/install.txt +14 -3
  278. data/vendor/local/share/doc/groonga/source/log.txt +214 -0
  279. data/vendor/local/share/doc/groonga/source/news/1.0.x.txt +1 -1
  280. data/vendor/local/share/doc/groonga/source/news.txt +35 -3
  281. data/vendor/local/share/doc/groonga/source/suggest/completion.txt +195 -0
  282. data/vendor/local/share/doc/groonga/source/suggest/correction.txt +148 -0
  283. data/vendor/local/share/doc/groonga/source/suggest/introduction.txt +94 -0
  284. data/vendor/local/share/doc/groonga/source/suggest/suggestion.txt +115 -0
  285. data/vendor/local/share/doc/groonga/source/suggest/tutorial.txt +8 -0
  286. data/vendor/local/share/doc/groonga/source/suggest.txt +22 -0
  287. data/vendor/local/share/doc/groonga/source/tutorial/tutorial01.txt +2 -1
  288. data/vendor/local/share/doc/groonga/source/update_execution_example.py +46 -20
  289. data/vendor/local/share/license/groonga/AUTHORS +17 -0
  290. data/vendor/local/share/license/groonga/COPYING +504 -0
  291. data/vendor/local/share/license/mecab/AUTHORS +1 -0
  292. data/vendor/local/share/license/mecab/BSD +29 -0
  293. data/vendor/local/share/license/mecab/COPYING +4 -0
  294. data/vendor/local/share/license/mecab/GPL +340 -0
  295. data/vendor/local/share/license/mecab/LGPL +504 -0
  296. data/vendor/local/share/license/naist-jdic/AUTHORS +2 -0
  297. data/vendor/local/share/license/naist-jdic/COPYING +31 -0
  298. data/vendor/local/share/man/ja/man1/groonga.1 +1050 -45
  299. data/vendor/local/share/man/man1/groonga.1 +1174 -48
  300. metadata +62 -9
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2009-2010 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -53,7 +53,7 @@ class TableSelectTest < Test::Unit::TestCase
53
53
  :user => "darashi")
54
54
  end
55
55
 
56
- def test_select_sub_expression
56
+ def test_sub_expression
57
57
  result = @comments.select do |record|
58
58
  record.match("Hello", "content") &
59
59
  (record["created_at"] < Time.parse("2009-08-01"))
@@ -61,22 +61,22 @@ class TableSelectTest < Test::Unit::TestCase
61
61
  assert_equal_select_result([@comment2], result)
62
62
  end
63
63
 
64
- def test_select_query
64
+ def test_query
65
65
  result = @comments.select("content:@Hello")
66
66
  assert_equal_select_result([@comment1, @comment2], result)
67
67
  end
68
68
 
69
- def test_select_query_with_parser
69
+ def test_query_with_parser
70
70
  result = @comments.select("content @ \"Hello\"", :syntax => :script)
71
71
  assert_equal_select_result([@comment1, @comment2], result)
72
72
  end
73
73
 
74
- def test_select_query_with_default_column
74
+ def test_query_with_default_column
75
75
  result = @comments.select("Hello", {:default_column => 'content'})
76
76
  assert_equal_select_result([@comment1, @comment2], result)
77
77
  end
78
78
 
79
- def test_select_expression
79
+ def test_expression
80
80
  expression = Groonga::Expression.new
81
81
  variable = expression.define_variable(:domain => @comments)
82
82
  expression.append_object(variable)
@@ -87,76 +87,90 @@ class TableSelectTest < Test::Unit::TestCase
87
87
  assert_equal_select_result([@comment1, @comment2], result)
88
88
  end
89
89
 
90
- def test_select_query_with_block
90
+ def test_query_with_block
91
91
  result = @comments.select("content:@Hello") do |record|
92
92
  record["created_at"] < Time.parse("2009-08-01")
93
93
  end
94
94
  assert_equal_select_result([@comment2], result)
95
95
  end
96
96
 
97
- def test_select_query_with_block_match
97
+ def test_query_with_block_match
98
98
  result = @comments.select("content:@Hello") do |record|
99
99
  record.match("World", "content")
100
100
  end
101
101
  assert_equal_select_result([@comment2], result)
102
102
  end
103
103
 
104
- def test_select_without_block
104
+ def test_without_block
105
105
  assert_equal_select_result([@comment1, @comment2,
106
106
  @comment3, @japanese_comment],
107
107
  @comments.select)
108
108
  end
109
109
 
110
- def test_select_query_japanese
110
+ def test_query_japanese
111
111
  result = @comments.select("content:@ボロTV")
112
112
  assert_equal_select_result([@japanese_comment], result)
113
113
  end
114
114
 
115
- def test_select_but_query
115
+ def test_but_query
116
116
  result = @comments.select do |record|
117
117
  record["content"].match "Hello -World"
118
118
  end
119
119
  assert_equal_select_result([@comment1], result)
120
120
  end
121
121
 
122
- def test_select_query_with_three_terms
122
+ def test_query_with_three_terms
123
123
  result = @comments.select do |record|
124
124
  record["content"].match "Say Hello World"
125
125
  end
126
126
  assert_equal_select_result([], result)
127
127
  end
128
128
 
129
- def test_select_query_with_brackets
129
+ def test_query_with_brackets
130
130
  result = @comments.select do |record|
131
131
  record["content"].match "Say (Hello World)"
132
132
  end
133
133
  assert_equal_select_result([], result)
134
134
  end
135
135
 
136
- def test_select_equal_reference_column_by_key
136
+ def test_equal_reference_column_by_key
137
137
  result = @comments.select do |record|
138
138
  record["user"] == "darashi"
139
139
  end
140
140
  assert_equal_select_result([@japanese_comment], result)
141
141
  end
142
142
 
143
- def test_select_not_equal_reference_column_by_key
143
+ def test_not_equal_reference_column_by_key
144
144
  result = @comments.select('user != "darashi"', :syntax => :script)
145
145
  assert_equal_select_result([@comment1, @comment2, @comment3],
146
146
  result)
147
147
  end
148
148
 
149
- def test_select_equal_reference_column_by_nonexistent_key
149
+ def test_equal_reference_column_by_nonexistent_key
150
150
  result = @comments.select do |record|
151
151
  record["user"] == "nonexistent"
152
152
  end
153
153
  assert_equal_select_result([], result)
154
154
  end
155
155
 
156
- def test_select_query_key
156
+ def test_query_key
157
157
  result = @users.select do |record|
158
158
  record["_key"] =~ "mori"
159
159
  end
160
160
  assert_equal_select_result([@users["morita"]], result)
161
161
  end
162
+
163
+ def test_symbol
164
+ result = @comments.select do |record|
165
+ record[:content].match("Say Hello World")
166
+ end
167
+ assert_equal_select_result([], result)
168
+ end
169
+
170
+ def test_method
171
+ result = @comments.select do |record|
172
+ record.content.match("Say Hello World")
173
+ end
174
+ assert_equal_select_result([], result)
175
+ end
162
176
  end
data/test/test-type.rb CHANGED
@@ -23,12 +23,12 @@ class TypeTest < Test::Unit::TestCase
23
23
  assert_equal("user_id", type.name)
24
24
  end
25
25
 
26
- def test_new_with_hyphen_name
26
+ def test_new_with_space_name
27
27
  exception = assert_raise(Groonga::InvalidArgument) do
28
- Groonga::Type.new("user-id", :type => :integer)
28
+ Groonga::Type.new("user id", :type => :integer)
29
29
  end
30
30
  message =
31
- "name can't start with '_' and 0-9, and contains only 0-9, A-Z, a-z, or _"
31
+ "name can't start with '_' and contains only 0-9, A-Z, a-z, #, - or _"
32
32
  assert_match(/#{Regexp.escape(message)}/,
33
33
  exception.message)
34
34
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -107,4 +107,11 @@ class VariableSizeColumnTest < Test::Unit::TestCase
107
107
  @morita.prepend("nick_names", "moritapo")
108
108
  assert_equal(["moritapo", "morita"], @morita["nick_names"])
109
109
  end
110
+
111
+ def test_defrag
112
+ 1000.times do |i|
113
+ @users.add(:name => "user #{i}" * 1000)
114
+ end
115
+ assert_equal(3, @name.defrag)
116
+ end
110
117
  end
Binary file
Binary file
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- prefix=/home/kou/work/c/groonga.central/packages/windows/dist
3
+ prefix=/home/kou/work/c/groonga.clean/packages/windows/dist
4
4
  exec_prefix=${prefix}
5
5
  exec_prefix_set=no
6
6
 
@@ -107,7 +107,7 @@ while test $# -gt 0; do
107
107
  ;;
108
108
 
109
109
  --libexecdir)
110
- echo /home/kou/work/c/groonga.central/packages/windows/dist/libexec/mecab
110
+ echo /home/kou/work/c/groonga.clean/packages/windows/dist/libexec/mecab
111
111
  ;;
112
112
 
113
113
  --sysconfdir)
Binary file
@@ -206,9 +206,21 @@ struct _grn_ctx {
206
206
 
207
207
  #define GRN_CTX_USE_QL (0x03)
208
208
  #define GRN_CTX_BATCH_MODE (0x04)
209
+ #define GRN_CTX_PER_DB (0x08)
209
210
 
210
211
  GRN_API grn_rc grn_ctx_init(grn_ctx *ctx, int flags);
211
212
 
213
+ /**
214
+ * grn_ctx_fin:
215
+ * @ctx: 解放するctx構造体へのポインタを指定します。
216
+ *
217
+ * ctxの管理するメモリを解放し、使用を終了します。
218
+ *
219
+ * If @ctx is initialized by grn_ctx_open() not
220
+ * grn_ctx_init(). You need also to call grn_ctx_close().
221
+ **/
222
+ GRN_API grn_rc grn_ctx_fin(grn_ctx *ctx);
223
+
212
224
  /**
213
225
  * grn_ctx_open:
214
226
  * @flags: 初期化するctxのオプションを指定します。
@@ -225,12 +237,13 @@ GRN_API grn_rc grn_ctx_init(grn_ctx *ctx, int flags);
225
237
  GRN_API grn_ctx *grn_ctx_open(int flags);
226
238
 
227
239
  /**
228
- * grn_ctx_fin:
229
- * @ctx: 解放するctx構造体へのポインタを指定します。
240
+ * grn_ctx_close:
241
+ * @ctx: no longer needed grn_ctx.
230
242
  *
231
- * ctxの管理するメモリを解放し、使用を終了します。
243
+ * It calls grn_ctx_fin() and frees allocated memory for
244
+ * @ctx by grn_ctx_open().
232
245
  **/
233
- GRN_API grn_rc grn_ctx_fin(grn_ctx *ctx);
246
+ GRN_API grn_rc grn_ctx_close(grn_ctx *ctx);
234
247
 
235
248
  /**
236
249
  * grn_ctx_set_finalizer:
@@ -514,6 +527,8 @@ GRN_API void grn_db_touch(grn_ctx *ctx, grn_obj *db);
514
527
  *
515
528
  * ctxが操作対象とするdbを指定します。NULLを指定した場合は、
516
529
  * dbを操作しない状態(init直後の状態)になります。
530
+ *
531
+ * Don't use it with grn_ctx that has GRN_CTX_PER_DB flag.
517
532
  **/
518
533
  GRN_API grn_rc grn_ctx_use(grn_ctx *ctx, grn_obj *db);
519
534
 
@@ -685,6 +700,7 @@ GRN_API grn_obj *grn_table_create(grn_ctx *ctx,
685
700
  * keyに対応するrecordがすでにtableに存在するならば、そのrecordのIDを返す。
686
701
  * GRN_OBJ_TABLE_NO_KEYが指定されたtableでは、key, key_size は無視される。
687
702
  **/
703
+ /* TODO: int *added -> grn_bool *added */
688
704
  GRN_API grn_id grn_table_add(grn_ctx *ctx, grn_obj *table,
689
705
  const void *key, unsigned key_size, int *added);
690
706
 
@@ -1,5 +1,5 @@
1
1
  # suggest.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2
2
+ # Generated by libtool (GNU libtool) 2.4 Debian-2.4-3
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -17,7 +17,7 @@ old_library='suggest.a'
17
17
  inherited_linker_flags=''
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' /home/kou/work/c/groonga.central/packages/windows/dist/lib/libgroonga.la -lws2_32'
20
+ dependency_libs=' /home/kou/work/c/groonga.clean/packages/windows/dist/lib/libgroonga.la -lws2_32'
21
21
 
22
22
  # Names of additional weak libraries provided by this library
23
23
  weak_library_names=''
@@ -38,4 +38,4 @@ dlopen=''
38
38
  dlpreopen=''
39
39
 
40
40
  # Directory that this library needs to be installed in:
41
- libdir='/home/kou/work/c/groonga.central/packages/windows/dist/lib/groonga/plugins/suggest'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist/lib/groonga/plugins/suggest'
@@ -1,5 +1,5 @@
1
1
  # mecab.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2
2
+ # Generated by libtool (GNU libtool) 2.4 Debian-2.4-3
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -17,7 +17,7 @@ old_library='mecab.a'
17
17
  inherited_linker_flags=''
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' -L/home/kou/work/c/groonga.central/packages/windows/dist/lib /home/kou/work/c/groonga.central/packages/windows/dist/lib/libmecab.la /home/kou/work/c/groonga.central/packages/windows/dist/lib/libgroonga.la -lws2_32'
20
+ dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist/lib /home/kou/work/c/groonga.clean/packages/windows/dist/lib/libmecab.la /home/kou/work/c/groonga.clean/packages/windows/dist/lib/libgroonga.la -lws2_32'
21
21
 
22
22
  # Names of additional weak libraries provided by this library
23
23
  weak_library_names=''
@@ -38,4 +38,4 @@ dlopen=''
38
38
  dlpreopen=''
39
39
 
40
40
  # Directory that this library needs to be installed in:
41
- libdir='/home/kou/work/c/groonga.central/packages/windows/dist/lib/groonga/plugins/tokenizers'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist/lib/groonga/plugins/tokenizers'
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # libgroonga.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4 Debian-2.4-2
2
+ # Generated by libtool (GNU libtool) 2.4 Debian-2.4-3
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -38,4 +38,4 @@ dlopen=''
38
38
  dlpreopen=''
39
39
 
40
40
  # Directory that this library needs to be installed in:
41
- libdir='/home/kou/work/c/groonga.central/packages/windows/dist/lib'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist/lib'
Binary file
Binary file
@@ -38,4 +38,4 @@ dlopen=''
38
38
  dlpreopen=''
39
39
 
40
40
  # Directory that this library needs to be installed in:
41
- libdir='/home/kou/work/c/groonga.central/packages/windows/dist/lib'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist/lib'
@@ -1,4 +1,4 @@
1
- prefix=/home/kou/work/c/groonga.central/packages/windows/dist
1
+ prefix=/home/kou/work/c/groonga.clean/packages/windows/dist
2
2
  exec_prefix=${prefix}
3
3
  bindir=${exec_prefix}/bin
4
4
  libdir=${exec_prefix}/lib
@@ -8,6 +8,6 @@ groonga_suggest_create_dataset=${bindir}/groonga-suggest-create-dataset.exe
8
8
 
9
9
  Name: Groonga
10
10
  Description: An Embeddable Fulltext Search Engine
11
- Version: 1.2.4
11
+ Version: 1.2.5
12
12
  Libs: -L${libdir} -lgroonga
13
13
  Cflags: -I${includedir}/groonga
@@ -1,4 +1,4 @@
1
1
  # Sphinx build info version 1
2
2
  # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3
- config: 09bdccb1b5c8e5d08a3aed4a7d6f8233
3
+ config: b6b362d161e603cf11c7590fceaa7a26
4
4
  tags: fbb0d17656682115ca4d033fb2f83ba1