rroonga 1.3.1-x86-mingw32 → 2.0.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. data/Gemfile +1 -1
  2. data/Rakefile +2 -7
  3. data/ext/groonga/rb-grn-column.c +34 -37
  4. data/ext/groonga/rb-grn-context.c +63 -2
  5. data/ext/groonga/rb-grn-expression.c +21 -13
  6. data/ext/groonga/rb-grn-object.c +2 -0
  7. data/ext/groonga/rb-grn-table.c +57 -51
  8. data/ext/groonga/rb-grn.h +10 -4
  9. data/lib/1.8/groonga.so +0 -0
  10. data/lib/1.9/groonga.so +0 -0
  11. data/lib/groonga/schema.rb +75 -46
  12. data/lib/groonga.rb +9 -6
  13. data/rroonga-build.rb +2 -2
  14. data/test/run-test.rb +1 -2
  15. data/test/test-table-select.rb +0 -5
  16. data/test/test-type.rb +2 -2
  17. data/test/test-version.rb +40 -10
  18. data/vendor/local/bin/grntest.exe +0 -0
  19. data/vendor/local/bin/groonga.exe +0 -0
  20. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  21. data/vendor/local/bin/libgroonga-0.dll +0 -0
  22. data/vendor/local/bin/libmecab-1.dll +0 -0
  23. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  24. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  25. data/vendor/local/bin/libstdc++-6.dll +0 -0
  26. data/vendor/local/bin/mecab.exe +0 -0
  27. data/vendor/local/include/groonga/groonga/plugin.h +113 -0
  28. data/vendor/local/include/groonga/groonga/tokenizer.h +146 -0
  29. data/vendor/local/include/groonga/groonga.h +18 -18
  30. data/vendor/local/include/msgpack/object.h +98 -0
  31. data/vendor/local/include/msgpack/object.hpp +412 -0
  32. data/vendor/local/include/msgpack/pack.h +143 -0
  33. data/vendor/local/include/msgpack/pack.hpp +318 -0
  34. data/vendor/local/include/msgpack/pack_define.h +26 -0
  35. data/vendor/local/include/msgpack/pack_template.h +766 -0
  36. data/vendor/local/include/msgpack/sbuffer.h +111 -0
  37. data/vendor/local/include/msgpack/sbuffer.hpp +112 -0
  38. data/vendor/local/include/msgpack/sysdep.h +195 -0
  39. data/vendor/local/include/msgpack/type/bool.hpp +55 -0
  40. data/vendor/local/include/msgpack/type/define.hpp +3279 -0
  41. data/vendor/local/include/msgpack/type/deque.hpp +77 -0
  42. data/vendor/local/include/msgpack/type/fixint.hpp +172 -0
  43. data/vendor/local/include/msgpack/type/float.hpp +82 -0
  44. data/vendor/local/include/msgpack/type/int.hpp +211 -0
  45. data/vendor/local/include/msgpack/type/list.hpp +77 -0
  46. data/vendor/local/include/msgpack/type/map.hpp +205 -0
  47. data/vendor/local/include/msgpack/type/nil.hpp +65 -0
  48. data/vendor/local/include/msgpack/type/pair.hpp +61 -0
  49. data/vendor/local/include/msgpack/type/raw.hpp +94 -0
  50. data/vendor/local/include/msgpack/type/set.hpp +122 -0
  51. data/vendor/local/include/msgpack/type/string.hpp +62 -0
  52. data/vendor/local/include/msgpack/type/tr1/unordered_map.hpp +129 -0
  53. data/vendor/local/include/msgpack/type/tr1/unordered_set.hpp +122 -0
  54. data/vendor/local/include/msgpack/type/tuple.hpp +13691 -0
  55. data/vendor/local/include/msgpack/type/vector.hpp +81 -0
  56. data/vendor/local/include/msgpack/type.hpp +16 -0
  57. data/vendor/local/include/msgpack/unpack.h +260 -0
  58. data/vendor/local/include/msgpack/unpack.hpp +374 -0
  59. data/vendor/local/include/msgpack/unpack_define.h +93 -0
  60. data/vendor/local/include/msgpack/unpack_template.h +409 -0
  61. data/vendor/local/include/msgpack/version.h +40 -0
  62. data/vendor/local/include/msgpack/vrefbuffer.h +142 -0
  63. data/vendor/local/include/msgpack/vrefbuffer.hpp +97 -0
  64. data/vendor/local/include/msgpack/zbuffer.h +207 -0
  65. data/vendor/local/include/msgpack/zbuffer.hpp +100 -0
  66. data/vendor/local/include/msgpack/zone.h +147 -0
  67. data/vendor/local/include/msgpack/zone.hpp +455 -0
  68. data/vendor/local/include/msgpack.h +30 -0
  69. data/vendor/local/include/msgpack.hpp +24 -0
  70. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  71. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  72. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  73. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
  74. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  75. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  76. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  77. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  78. data/vendor/local/lib/libgroonga.a +0 -0
  79. data/vendor/local/lib/libgroonga.dll.a +0 -0
  80. data/vendor/local/lib/libgroonga.la +2 -2
  81. data/vendor/local/lib/libmecab.a +0 -0
  82. data/vendor/local/lib/libmecab.dll.a +0 -0
  83. data/vendor/local/lib/libmsgpack.a +0 -0
  84. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  85. data/vendor/local/lib/libmsgpack.la +41 -0
  86. data/vendor/local/lib/libmsgpackc.a +0 -0
  87. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  88. data/vendor/local/lib/libmsgpackc.la +41 -0
  89. data/vendor/local/lib/pkgconfig/groonga.pc +4 -4
  90. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  91. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  92. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  93. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  94. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  95. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  96. data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +1 -1
  97. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/report.txt +6 -7
  98. data/vendor/local/share/doc/groonga/en/html/_sources/indexing.txt +108 -0
  99. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +386 -0
  100. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +51 -385
  101. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
  102. data/vendor/local/share/doc/groonga/en/html/_sources/spec/search.txt +4 -4
  103. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  104. data/vendor/local/share/doc/groonga/en/html/command_version.html +5 -5
  105. data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +5 -5
  106. data/vendor/local/share/doc/groonga/en/html/commands/check.html +5 -5
  107. data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +5 -5
  108. data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +5 -5
  109. data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +5 -5
  110. data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +5 -5
  111. data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +5 -5
  112. data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +5 -5
  113. data/vendor/local/share/doc/groonga/en/html/commands/delete.html +5 -5
  114. data/vendor/local/share/doc/groonga/en/html/commands/dump.html +5 -5
  115. data/vendor/local/share/doc/groonga/en/html/commands/load.html +5 -5
  116. data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +5 -5
  117. data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +5 -5
  118. data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +5 -5
  119. data/vendor/local/share/doc/groonga/en/html/commands/quit.html +5 -5
  120. data/vendor/local/share/doc/groonga/en/html/commands/select.html +5 -5
  121. data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +5 -5
  122. data/vendor/local/share/doc/groonga/en/html/commands/status.html +5 -5
  123. data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +7 -7
  124. data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +5 -5
  125. data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +5 -5
  126. data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +5 -5
  127. data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +5 -5
  128. data/vendor/local/share/doc/groonga/en/html/commands.html +5 -5
  129. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  130. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  131. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
  132. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  133. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  134. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  135. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  136. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  137. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  138. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +9 -9
  139. data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
  140. data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +5 -5
  141. data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +5 -5
  142. data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +5 -5
  143. data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +5 -5
  144. data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +5 -5
  145. data/vendor/local/share/doc/groonga/en/html/executables.html +5 -5
  146. data/vendor/local/share/doc/groonga/en/html/expr.html +5 -5
  147. data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +5 -5
  148. data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +5 -5
  149. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +5 -5
  150. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +5 -5
  151. data/vendor/local/share/doc/groonga/en/html/functions/now.html +5 -5
  152. data/vendor/local/share/doc/groonga/en/html/functions/rand.html +10 -10
  153. data/vendor/local/share/doc/groonga/en/html/functions.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  155. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/index.html +14 -8
  157. data/vendor/local/share/doc/groonga/en/html/indexing.html +237 -0
  158. data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
  159. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  160. data/vendor/local/share/doc/groonga/en/html/log.html +20 -20
  161. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  162. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  163. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  164. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +566 -0
  165. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  166. data/vendor/local/share/doc/groonga/en/html/news.html +65 -464
  167. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  168. data/vendor/local/share/doc/groonga/en/html/output.html +5 -5
  169. data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +5 -5
  170. data/vendor/local/share/doc/groonga/en/html/reference.html +14 -8
  171. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  172. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  173. data/vendor/local/share/doc/groonga/en/html/spec/search.html +9 -9
  174. data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
  175. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
  176. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
  177. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
  178. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
  179. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
  180. data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
  181. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  182. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  183. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  184. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  185. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  186. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  187. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  188. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  189. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  190. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  192. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/type.html +5 -5
  196. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  197. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +1 -1
  198. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/report.txt +6 -7
  199. data/vendor/local/share/doc/groonga/ja/html/_sources/indexing.txt +108 -0
  200. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +386 -0
  201. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +51 -385
  202. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
  203. data/vendor/local/share/doc/groonga/ja/html/_sources/spec/search.txt +4 -4
  204. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  205. data/vendor/local/share/doc/groonga/ja/html/command_version.html +5 -5
  206. data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +5 -5
  207. data/vendor/local/share/doc/groonga/ja/html/commands/check.html +5 -5
  208. data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +5 -5
  209. data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +5 -5
  210. data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +5 -5
  211. data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +5 -5
  212. data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +5 -5
  213. data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +5 -5
  214. data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +5 -5
  215. data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +5 -5
  216. data/vendor/local/share/doc/groonga/ja/html/commands/load.html +5 -5
  217. data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +5 -5
  218. data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +5 -5
  219. data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +5 -5
  220. data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +5 -5
  221. data/vendor/local/share/doc/groonga/ja/html/commands/select.html +5 -5
  222. data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +5 -5
  223. data/vendor/local/share/doc/groonga/ja/html/commands/status.html +5 -5
  224. data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +5 -5
  225. data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +5 -5
  226. data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +5 -5
  227. data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +5 -5
  228. data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +5 -5
  229. data/vendor/local/share/doc/groonga/ja/html/commands.html +5 -5
  230. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  231. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  232. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
  233. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  234. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  235. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  236. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  237. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  238. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  239. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +6 -6
  240. data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
  241. data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +5 -5
  242. data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +5 -5
  243. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +5 -5
  244. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +5 -5
  245. data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +5 -5
  246. data/vendor/local/share/doc/groonga/ja/html/executables.html +5 -5
  247. data/vendor/local/share/doc/groonga/ja/html/expr.html +5 -5
  248. data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +5 -5
  249. data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +5 -5
  250. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +5 -5
  251. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +5 -5
  252. data/vendor/local/share/doc/groonga/ja/html/functions/now.html +5 -5
  253. data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +10 -10
  254. data/vendor/local/share/doc/groonga/ja/html/functions.html +5 -5
  255. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  256. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
  257. data/vendor/local/share/doc/groonga/ja/html/index.html +14 -8
  258. data/vendor/local/share/doc/groonga/ja/html/indexing.html +215 -0
  259. data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
  260. data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
  261. data/vendor/local/share/doc/groonga/ja/html/log.html +20 -20
  262. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  263. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  264. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  265. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +528 -0
  266. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  267. data/vendor/local/share/doc/groonga/ja/html/news.html +62 -425
  268. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  269. data/vendor/local/share/doc/groonga/ja/html/output.html +5 -5
  270. data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +5 -5
  271. data/vendor/local/share/doc/groonga/ja/html/reference.html +14 -8
  272. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  273. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  274. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +9 -9
  275. data/vendor/local/share/doc/groonga/ja/html/spec.html +9 -9
  276. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
  277. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
  278. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
  279. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
  280. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
  281. data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
  282. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  283. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  284. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  285. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  286. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  287. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  288. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  289. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  290. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  291. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  292. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  293. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
  294. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  295. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  296. data/vendor/local/share/doc/groonga/ja/html/type.html +5 -5
  297. data/vendor/local/share/doc/groonga/source/commands/suggest.txt +1 -1
  298. data/vendor/local/share/doc/groonga/source/contribution/report.txt +6 -7
  299. data/vendor/local/share/doc/groonga/source/indexing.txt +108 -0
  300. data/vendor/local/share/doc/groonga/source/news/1.2.x.txt +386 -0
  301. data/vendor/local/share/doc/groonga/source/news.txt +51 -385
  302. data/vendor/local/share/doc/groonga/source/reference.txt +1 -0
  303. data/vendor/local/share/doc/groonga/source/spec/search.txt +4 -4
  304. data/vendor/local/share/license/groonga/COPYING +10 -12
  305. data/vendor/local/share/license/msgpack/AUTHORS +1 -0
  306. data/vendor/local/share/license/msgpack/COPYING +14 -0
  307. data/vendor/local/share/license/msgpack/LICENSE +202 -0
  308. data/vendor/local/share/man/ja/man1/groonga.1 +113 -5
  309. data/vendor/local/share/man/man1/groonga.1 +142 -11
  310. metadata +66 -3
  311. data/vendor/local/share/doc/groonga/source/update_execution_example.py +0 -141
data/Gemfile CHANGED
@@ -21,7 +21,7 @@ gem 'pkg-config'
21
21
  gem 'json'
22
22
 
23
23
  group :development, :test do
24
- gem "test-unit"
24
+ gem "test-unit", ">= 2.4.6"
25
25
  gem "test-unit-notify"
26
26
  gem "rake"
27
27
  gem "rake-compiler"
data/Rakefile CHANGED
@@ -104,10 +104,6 @@ Gem::PackageTask.new(spec) do |pkg|
104
104
  end
105
105
 
106
106
  document_task = Packnga::DocumentTask.new(spec) do |t|
107
- t.yard do |yard_task|
108
- yard_task.files += FileList["ext/**/*.c"]
109
- yard_task.options += ["--markup", "textile"]
110
- end
111
107
  end
112
108
 
113
109
  namespace :reference do
@@ -131,7 +127,7 @@ module YARD
131
127
  class Proxy
132
128
  alias_method :initialize_original, :initialize
133
129
  def initialize(namespace, name)
134
- name = name.gsub(/\AGrn(.*)\z/) do
130
+ name = name.to_s.gsub(/\AGrn(.*)\z/) do
135
131
  suffix = $1
136
132
  case suffix
137
133
  when ""
@@ -203,10 +199,9 @@ end
203
199
 
204
200
  Rake::ExtensionTask.new("groonga", spec) do |ext|
205
201
  if groonga_win32_i386_p
206
- ext.cross_platform = ["x86-mingw32", "i386-mswin32"]
202
+ ext.cross_platform = ["x86-mingw32"]
207
203
  else
208
204
  ext.cross_platform = ["x64-mingw32"]
209
- # ext.cross_platform << "x64-mswin64" # We need to build with VC++ 2010. :<
210
205
  end
211
206
  if windows?
212
207
  ext.gem_spec.files += collect_binary_files(relative_binary_dir)
@@ -179,51 +179,48 @@ rb_grn_column_get_local_name (VALUE self)
179
179
  * ているGroonga::Expressionを取得できる。
180
180
  * Groonga::Expression#snippetを使うことにより、指定した条件
181
181
  * 用のスニペットを簡単に生成できる。
182
- * <pre>
183
- * results = description_column.select do |column|
184
- * column =~ "groonga"
185
- * end
186
- * snippet = results.expression.snippet([["<em>", "</em>"]])
187
- * results.each do |record|
188
- * puts "#{record['name']}の説明文の中で「groonga」が含まれる部分"
189
- * snippet.execute(record["description"].each do |snippet|
190
- * puts "---"
191
- * puts "#{snippet}..."
192
- * puts "---"
193
- * end
182
+ *
183
+ * bc. !!!ruby
184
+ * results = description_column.select do |column|
185
+ * column =~ "groonga"
186
+ * end
187
+ * snippet = results.expression.snippet([["<em>", "</em>"]])
188
+ * results.each do |record|
189
+ * puts "#{record['name']}の説明文の中で「groonga」が含まれる部分"
190
+ * snippet.execute(record["description"]).each do |snippet|
191
+ * puts "---"
192
+ * puts "#{snippet}..."
193
+ * puts "---"
194
194
  * end
195
+ * end
196
+ *
195
197
  * 出力例
196
- * Ruby/groongaの説明文の中で「groonga」が含まれる部分
197
- * ---
198
- * Ruby/<em>groonga</em>は<em>groonga</em>のいわゆるDB-APIの層の...
199
- * ---
200
- * </pre>
198
+ *
199
+ * pre. rroongaの説明文の中で「groonga」が含まれる部分
200
+ * ---
201
+ * rroongaは<em>groonga</em>のいわゆるDB-APIの層の...
202
+ * ---
201
203
  *
202
204
  * _query_ には「[カラム名]:[演算子][値]」という書式で条件を
203
205
  * 指定する。演算子は以下の通り。
204
206
  *
205
- * [なし]
206
- * [カラム値] == [値]
207
- * [<tt>!</tt>]
208
- * [カラム値] != [値]
209
- * [<tt><</tt>]
210
- * [カラム値] < [値]
211
- * [<tt>></tt>]
212
- * [カラム値] > [値]
213
- * [<tt><=</tt>]
214
- * [カラム値] <= [値]
215
- * [<tt>>=</tt>]
216
- * [カラム値] >= [値]
217
- * [<tt>@</tt>]
218
- * [カラム値]が[値]を含んでいるかどうか
207
+ * - なし := [カラム値] == [値]
208
+ * - @!@ := [カラム値] != [値]
209
+ * - @<@ := [カラム値] < [値]
210
+ * - @>@ := [カラム値] > [値]
211
+ * - @<=@ := [カラム値] <= [値]
212
+ * - @>=@ := [カラム値] >= [値]
213
+ * - @@@ := [カラム値]が[値]を含んでいるかどうか
219
214
  *
220
215
  * 例:
221
- * "groonga" # _column_ カラムの値が"groonga"のレコードにマッチ
222
- * "name:daijiro" # _column_ カラムが属しているテーブルの
223
- * # "name"カラムの値が"daijiro"のレコードにマッチ
224
- * "description:@groonga" # _column_ カラムが属しているテーブルの
225
- * # "description"カラムが
226
- * # "groonga"を含んでいるレコードにマッチ
216
+ *
217
+ * - @"groonga"@ := _column_ カラムの値が @"groonga"@ のレコードにマッチ
218
+ * - @"name:daijiro"@ :=
219
+ * _column_ カラムが属しているテーブルの @"name"@ カラムの値が
220
+ * @"daijiro"@ のレコードにマッチ =:
221
+ * - @"description:@@@groonga"@ :=
222
+ * _column_ カラムが属しているテーブルの @"description"@ カラムが
223
+ * @"groonga"@ を含んでいるレコードにマッチ =:
227
224
  *
228
225
  * _expression_ には既に作成済みのGroonga::Expressionを渡す
229
226
  *
@@ -1,6 +1,6 @@
1
1
  /* -*- coding: utf-8; c-file-style: "ruby" -*- */
2
2
  /*
3
- Copyright (C) 2010-2011 Kouhei Sutou <kou@clear-code.com>
3
+ Copyright (C) 2010-2012 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
@@ -59,6 +59,61 @@ rb_grn_context_from_ruby_object (VALUE object)
59
59
  return rb_grn_context->context;
60
60
  }
61
61
 
62
+ void
63
+ rb_grn_context_register_floating_object (RbGrnObject *rb_grn_object)
64
+ {
65
+ RbGrnContext *rb_grn_context;
66
+ grn_ctx *context;
67
+ grn_hash *floating_objects;
68
+
69
+ Data_Get_Struct(rb_grn_object->rb_context, RbGrnContext, rb_grn_context);
70
+ context = rb_grn_context->context;
71
+ floating_objects = rb_grn_context->floating_objects;
72
+ grn_hash_add(context, floating_objects,
73
+ (const void *)(&rb_grn_object), sizeof(RbGrnObject *),
74
+ NULL, NULL);
75
+ rb_grn_object->floating = GRN_TRUE;
76
+ }
77
+
78
+ void
79
+ rb_grn_context_unregister_floating_object (RbGrnObject *rb_grn_object)
80
+ {
81
+ RbGrnContext *rb_grn_context;
82
+ grn_ctx *context;
83
+ grn_hash *floating_objects;
84
+
85
+ if (!rb_grn_object->floating)
86
+ return;
87
+
88
+ Data_Get_Struct(rb_grn_object->rb_context, RbGrnContext, rb_grn_context);
89
+ context = rb_grn_context->context;
90
+ floating_objects = rb_grn_context->floating_objects;
91
+ grn_hash_delete(context, floating_objects,
92
+ (const void *)&rb_grn_object, sizeof(RbGrnObject *),
93
+ NULL);
94
+ rb_grn_object->floating = GRN_FALSE;
95
+ }
96
+
97
+ static void
98
+ rb_grn_context_close_floating_objects (RbGrnContext *rb_grn_context)
99
+ {
100
+ grn_ctx *context;
101
+ grn_hash *floating_objects;
102
+ RbGrnObject **floating_object = NULL;
103
+
104
+ context = rb_grn_context->context;
105
+ floating_objects = rb_grn_context->floating_objects;
106
+ if (!floating_objects)
107
+ return;
108
+
109
+ rb_grn_context->floating_objects = NULL;
110
+ GRN_HASH_EACH(context, floating_objects, id, &floating_object, NULL, NULL, {
111
+ (*floating_object)->floating = GRN_FALSE;
112
+ grn_obj_close(context, RB_GRN_OBJECT(*floating_object)->object);
113
+ });
114
+ grn_hash_close(context, floating_objects);
115
+ }
116
+
62
117
  static void
63
118
  rb_grn_context_unlink_database (grn_ctx *context)
64
119
  {
@@ -73,7 +128,7 @@ rb_grn_context_unlink_database (grn_ctx *context)
73
128
  debug("context:database: %p:%p: done\n", context, database);
74
129
  }
75
130
 
76
- void
131
+ static void
77
132
  rb_grn_context_fin (grn_ctx *context)
78
133
  {
79
134
  if (context->stat == GRN_CTX_FIN)
@@ -93,6 +148,7 @@ rb_grn_context_free (void *pointer)
93
148
 
94
149
  context = rb_grn_context->context;
95
150
  debug("context-free: %p\n", context);
151
+ rb_grn_context_close_floating_objects(rb_grn_context);
96
152
  if (context && !rb_grn_exited)
97
153
  rb_grn_context_fin(context);
98
154
  debug("context-free: %p: done\n", context);
@@ -116,6 +172,7 @@ rb_grn_context_finalizer (grn_ctx *context, int n_args, grn_obj **grn_objects,
116
172
 
117
173
  rb_grn_context = user_data->ptr;
118
174
 
175
+ rb_grn_context_close_floating_objects(rb_grn_context);
119
176
  if (!(context->flags & GRN_CTX_PER_DB)) {
120
177
  rb_grn_context_unlink_database(context);
121
178
  }
@@ -364,6 +421,10 @@ rb_grn_context_initialize (int argc, VALUE *argv, VALUE self)
364
421
  rb_grn_context_check(context, self);
365
422
 
366
423
  GRN_CTX_USER_DATA(context)->ptr = rb_grn_context;
424
+ rb_grn_context->floating_objects = grn_hash_create(context, NULL,
425
+ sizeof(RbGrnObject *),
426
+ 0,
427
+ GRN_OBJ_TABLE_HASH_KEY);
367
428
  grn_ctx_set_finalizer(context, rb_grn_context_finalizer);
368
429
 
369
430
  if (!NIL_P(rb_encoding)) {
@@ -1,6 +1,6 @@
1
1
  /* -*- coding: utf-8; c-file-style: "ruby" -*- */
2
2
  /*
3
- Copyright (C) 2009-2010 Kouhei Sutou <kou@clear-code.com>
3
+ Copyright (C) 2009-2012 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
@@ -36,6 +36,8 @@ rb_grn_expression_finalizer (grn_ctx *context, grn_obj *object,
36
36
  if (context && rb_grn_expression->value)
37
37
  grn_obj_unlink(context, rb_grn_expression->value);
38
38
 
39
+ rb_grn_context_unregister_floating_object(RB_GRN_OBJECT(rb_grn_expression));
40
+
39
41
  rb_grn_expression->value = NULL;
40
42
  }
41
43
 
@@ -95,8 +97,9 @@ rb_grn_expression_initialize (int argc, VALUE *argv, VALUE self)
95
97
  }
96
98
 
97
99
  expression = grn_expr_create(context, name, name_size);
98
- rb_grn_object_assign(Qnil, self, rb_context, context, expression);
99
100
  rb_grn_context_check(context, self);
101
+ rb_grn_object_assign(Qnil, self, rb_context, context, expression);
102
+ rb_grn_context_register_floating_object(DATA_PTR(self));
100
103
 
101
104
  rb_iv_set(self, "@objects", rb_ary_new());
102
105
 
@@ -581,23 +584,28 @@ rb_grn_expression_inspect (VALUE self)
581
584
  * _expression_ からGroonga::Snippetを生成する。 _tags_ には
582
585
  * キーワードの前後に挿入するタグの配列を以下のような形式で指定
583
586
  * する。
587
+ *
584
588
  * <pre>
585
- * ==[
586
- * ["キーワード前に挿入する文字列1", "キーワード後に挿入する文字列1"],
587
- * ["キーワード前に挿入する文字列2", "キーワード後に挿入する文字列2"],
588
- * ...,
589
- * ]==
589
+ * !!!ruby
590
+ * [
591
+ * ["キーワード前に挿入する文字列1", "キーワード後に挿入する文字列1"],
592
+ * ["キーワード前に挿入する文字列2", "キーワード後に挿入する文字列2"],
593
+ * # ...,
594
+ * ]
590
595
  * </pre>
596
+ *
591
597
  * もし、1つのスニペットの中に _tags_ で指定したタグより多くの
592
598
  * キーワードが含まれている場合は、以下のように、また、先頭
593
599
  * のタグから順番に使われる。
600
+ *
594
601
  * <pre>
595
- * ==expression.parse("Ruby groonga 検索")
596
- * tags = [["<tag1>", "</tag1>"], ["<tag2>", "</tag2>"]]
597
- * snippet = expression.snippet(tags)
598
- * p snippet.execute("Rubyでgroonga使って全文検索、高速検索。")
599
- * => ["<tag1>Ruby</tag1>で<tag2>groonga</tag2>"
600
- * => "使って全文<tag1>検索</tag1>、高速<tag2>検索</tag2>。"]==
602
+ * !!!ruby
603
+ * expression.parse("Ruby groonga 検索")
604
+ * tags = [["<tag1>", "</tag1>"], ["<tag2>", "</tag2>"]]
605
+ * snippet = expression.snippet(tags)
606
+ * p snippet.execute("Rubygroonga使って全文検索、高速検索。")
607
+ * # => ["<tag1>Ruby</tag1>で<tag2>groonga</tag2>"
608
+ * # => "使って全文<tag1>検索</tag1>、高速<tag2>検索</tag2>。"]
601
609
  * </pre>
602
610
  *
603
611
  * _options_ に指定可能な値は以下の通り。
@@ -320,11 +320,13 @@ rb_grn_object_bind_common (VALUE klass, VALUE self, VALUE rb_context,
320
320
  {
321
321
  grn_user_data *user_data;
322
322
 
323
+ rb_grn_object->rb_context = rb_context;
323
324
  rb_grn_object->context = context;
324
325
  rb_grn_object->object = object;
325
326
  rb_grn_object->self = self;
326
327
  rb_grn_object->need_close = GRN_TRUE;
327
328
  rb_grn_object->have_finalizer = GRN_FALSE;
329
+ rb_grn_object->floating = GRN_FALSE;
328
330
 
329
331
  user_data = grn_obj_user_data(context, object);
330
332
  if (user_data) {
@@ -1,6 +1,6 @@
1
1
  /* -*- coding: utf-8; c-file-style: "ruby" -*- */
2
2
  /*
3
- Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
3
+ Copyright (C) 2009-2012 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
@@ -991,11 +991,12 @@ rb_grn_table_delete (VALUE self, VALUE rb_id)
991
991
  * - ハッシュの配列で指定する方法 :=
992
992
  * オーソドックスな指定方法。
993
993
  *
994
- * <pre lang="ruby">
994
+ * <pre>
995
+ * !!!ruby
995
996
  * [
996
997
  * {:key => "第1ソートキー", :order => order},
997
998
  * {:key => "第2ソートキー", :order => order},
998
- * ...,
999
+ * # ...,
999
1000
  * ]
1000
1001
  * </pre>
1001
1002
  * =:
@@ -1003,11 +1004,12 @@ rb_grn_table_delete (VALUE self, VALUE rb_id)
1003
1004
  * - 配列の配列で指定する方法 :=
1004
1005
  * 少し簡単化した指定方法。
1005
1006
  *
1006
- * <pre lang="ruby">
1007
+ * <pre>
1008
+ * !!!ruby
1007
1009
  * [
1008
1010
  * ["第1ソートキー", order],
1009
1011
  * ["第2ソートキー", order],
1010
- * ...,
1012
+ * # ...,
1011
1013
  * ]
1012
1014
  * </pre>
1013
1015
  * =:
@@ -1016,8 +1018,9 @@ rb_grn_table_delete (VALUE self, VALUE rb_id)
1016
1018
  * _order_ は常に昇順( +:ascending+ )になるが、最も簡単
1017
1019
  * に指定できる。
1018
1020
  *
1019
- * <pre lang="ruby">
1020
- * ["第1ソートキー", "第2ソートキー", ...]
1021
+ * <pre>
1022
+ * !!!ruby
1023
+ * ["第1ソートキー", "第2ソートキー", "..."]
1021
1024
  * </pre>
1022
1025
  * =:
1023
1026
  *
@@ -1713,50 +1716,51 @@ rb_grn_table_is_locked (int argc, VALUE *argv, VALUE self)
1713
1716
  * Groonga::Expressionを取得できる。
1714
1717
  * Groonga::Expression#snippetを使うことにより、指定した条件
1715
1718
  * 用のスニペットを簡単に生成できる。
1719
+ *
1716
1720
  * <pre>
1717
- * ==results = table.select do |record|
1718
- * record["description"] =~ "groonga"
1721
+ * !!!ruby
1722
+ * results = table.select do |record|
1723
+ * record["description"] =~ "groonga"
1724
+ * end
1725
+ * snippet = results.expression.snippet([["<em>", "</em>"]])
1726
+ * results.each do |record|
1727
+ * puts "#{record['name']}の説明文の中で「groonga」が含まれる部分"
1728
+ * snippet.execute(record["description"]).each do |snippet|
1729
+ * puts "---"
1730
+ * puts "#{snippet}..."
1731
+ * puts "---"
1719
1732
  * end
1720
- * snippet = results.expression.snippet([["<em>", "</em>"]])
1721
- * results.each do |record|
1722
- * puts "#{record['name']}の説明文の中で「groonga」が含まれる部分"
1723
- * snippet.execute(record["description"].each do |snippet|
1724
- * puts "---"
1725
- * puts "#{snippet}..."
1726
- * puts "---"
1727
- * end
1728
- * end==
1733
+ * end
1729
1734
  * </pre>
1735
+ *
1730
1736
  * 出力例
1731
- * Ruby/groongaの説明文の中で「groonga」が含まれる部分
1732
- * ---
1733
- * Ruby/<em>groonga</em>は<em>groonga</em>のいわゆるDB-APIの層の...
1734
- * ---
1735
1737
  *
1736
- * _query_ には「[カラム名]:[演算子][値]」という書式で条件を
1737
- * 指定する。演算子は以下の通り。
1738
1738
  * <pre>
1739
- * [なし]
1740
- * \[カラム値] == [値]
1741
- * [<tt>!</tt>]
1742
- * \[カラム値] != [値]
1743
- * [<tt><</tt>]
1744
- * \[カラム値] < [値]
1745
- * [<tt>></tt>]
1746
- * \[カラム値] > [値]
1747
- * [<tt><=</tt>]
1748
- * \[カラム値] <= [値]
1749
- * [<tt>>=</tt>]
1750
- * \[カラム値] >= [値]
1751
- * [<tt>@</tt>]
1752
- * \[カラム値]が[値]を含んでいるかどうか
1739
+ * !!!text
1740
+ * rroongaの説明文の中で「groonga」が含まれる部分
1741
+ * ---
1742
+ * rroongaは<em>groonga</em>のいわゆるDB-APIの層の...
1743
+ * ---
1753
1744
  * </pre>
1754
1745
  *
1746
+ * _query_ には「[カラム名]:[演算子][値]」という書式で条件を
1747
+ * 指定する。演算子は以下の通り。
1748
+ *
1749
+ * - なし := [カラム値] == [値]
1750
+ * - @!@ := [カラム値] != [値]
1751
+ * - @<@ := [カラム値] < [値]
1752
+ * - @>@ := [カラム値] > [値]
1753
+ * - @<=@ := [カラム値] <= [値]
1754
+ * - @>=@ := [カラム値] >= [値]
1755
+ * - @@@ := [カラム値]が[値]を含んでいるかどうか
1756
+ *
1755
1757
  * 例:
1758
+ *
1756
1759
  * <pre>
1757
- * =="name:daijiro" # "name"カラムの値が"daijiro"のレコードにマッチ
1758
- * "description:@groonga" # "description"カラムが
1759
- * # "groonga"を含んでいるレコードにマッチ==
1760
+ * !!!ruby
1761
+ * "name:daijiro" # "name"カラムの値が"daijiro"のレコードにマッチ
1762
+ * "description:@groonga" # "description"カラムが
1763
+ * # "groonga"を含んでいるレコードにマッチ
1760
1764
  * </pre>
1761
1765
  *
1762
1766
  * _expression_ には既に作成済みのGroonga::Expressionを渡す
@@ -1768,17 +1772,19 @@ rb_grn_table_is_locked (int argc, VALUE *argv, VALUE self)
1768
1772
  * Groonga::ColumnExpressionBuilderの他に"!="も使用可能。
1769
1773
  *
1770
1774
  * 例:
1775
+ *
1771
1776
  * <pre>
1772
- * ==comments = Groonga::Array.create(:name => "Comments")
1773
- * comments.define_column("content", "Text")
1774
- * comments.add(:content => "Hello Good-bye!")
1775
- * comments.add(:content => "Hello World")
1776
- * comments.add(:content => "test")
1777
- * result = comments.select do |record|
1778
- * record.content != "test"
1779
- * end
1780
- * p result.collect {|record| record.content}
1781
- * # => ["Hello Good-bye!", "Hello World"]==
1777
+ * !!!ruby
1778
+ * comments = Groonga::Array.create(:name => "Comments")
1779
+ * comments.define_column("content", "Text")
1780
+ * comments.add(:content => "Hello Good-bye!")
1781
+ * comments.add(:content => "Hello World")
1782
+ * comments.add(:content => "test")
1783
+ * result = comments.select do |record|
1784
+ * record.content != "test"
1785
+ * end
1786
+ * p result.collect {|record| record.content}
1787
+ * # => ["Hello Good-bye!", "Hello World"]
1782
1788
  * </pre>
1783
1789
  *
1784
1790
  * _options_ に指定可能な値は以下の通り。
data/ext/groonga/rb-grn.h CHANGED
@@ -70,9 +70,9 @@ RB_GRN_BEGIN_DECLS
70
70
  # define debug(...)
71
71
  #endif
72
72
 
73
- #define RB_GRN_MAJOR_VERSION 1
74
- #define RB_GRN_MINOR_VERSION 3
75
- #define RB_GRN_MICRO_VERSION 1
73
+ #define RB_GRN_MAJOR_VERSION 2
74
+ #define RB_GRN_MINOR_VERSION 0
75
+ #define RB_GRN_MICRO_VERSION 0
76
76
 
77
77
  #define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
78
78
 
@@ -97,6 +97,7 @@ struct _RbGrnContext
97
97
  {
98
98
  grn_ctx *context;
99
99
  grn_ctx context_entity;
100
+ grn_hash *floating_objects;
100
101
  VALUE self;
101
102
  };
102
103
 
@@ -104,6 +105,7 @@ typedef struct _RbGrnObject RbGrnObject;
104
105
  struct _RbGrnObject
105
106
  {
106
107
  VALUE self;
108
+ VALUE rb_context;
107
109
  grn_ctx *context;
108
110
  grn_obj *object;
109
111
  grn_obj *domain;
@@ -112,6 +114,7 @@ struct _RbGrnObject
112
114
  grn_id range_id;
113
115
  grn_bool need_close;
114
116
  grn_bool have_finalizer;
117
+ grn_bool floating;
115
118
  };
116
119
 
117
120
  typedef struct _RbGrnNamedObject RbGrnNamedObject;
@@ -282,7 +285,10 @@ const char *rb_grn_rc_to_message (grn_rc rc);
282
285
  void rb_grn_rc_check (grn_rc rc,
283
286
  VALUE related_object);
284
287
 
285
- void rb_grn_context_fin (grn_ctx *context);
288
+ void rb_grn_context_register_floating_object
289
+ (RbGrnObject *rb_grn_object);
290
+ void rb_grn_context_unregister_floating_object
291
+ (RbGrnObject *rb_grn_object);
286
292
  grn_ctx *rb_grn_context_ensure (VALUE *context);
287
293
  VALUE rb_grn_context_get_default (void);
288
294
  VALUE rb_grn_context_to_exception (grn_ctx *context,
data/lib/1.8/groonga.so CHANGED
Binary file
data/lib/1.9/groonga.so CHANGED
Binary file