groonga-client-rails 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +6 -0
  3. data/Gemfile +21 -0
  4. data/README.md +57 -0
  5. data/Rakefile +44 -0
  6. data/doc/text/lgpl-2.1.txt +502 -0
  7. data/doc/text/news.md +5 -0
  8. data/groonga-client-rails.gemspec +52 -0
  9. data/lib/groonga-client-rails.rb +23 -0
  10. data/lib/groonga/client/rails/fixture.rb +35 -0
  11. data/lib/groonga/client/rails/groonga_server_runner.rb +164 -0
  12. data/lib/groonga/client/rails/spec_helper.rb +39 -0
  13. data/lib/groonga/client/rails/test_helper.rb +39 -0
  14. data/lib/groonga/client/rails/version.rb +23 -0
  15. data/lib/groonga/client/railtie.rb +70 -0
  16. data/lib/groonga/client/searcher.rb +165 -0
  17. data/lib/groonga/client/searcher/error.rb +37 -0
  18. data/lib/groonga/client/searcher/raw_request.rb +85 -0
  19. data/lib/groonga/client/searcher/schema.rb +74 -0
  20. data/lib/groonga/client/searcher/schema_synchronizer.rb +137 -0
  21. data/lib/groonga/client/searcher/select.rb +18 -0
  22. data/lib/groonga/client/searcher/select/request.rb +266 -0
  23. data/lib/groonga/client/searcher/select/result_set.rb +117 -0
  24. data/lib/groonga/client/searcher/source.rb +59 -0
  25. data/test/apps/rails4-mongoid/Gemfile +50 -0
  26. data/test/apps/rails4-mongoid/Gemfile.lock +190 -0
  27. data/test/apps/rails4-mongoid/README.rdoc +28 -0
  28. data/test/apps/rails4-mongoid/Rakefile +6 -0
  29. data/test/apps/rails4-mongoid/app/assets/javascripts/application.js +16 -0
  30. data/test/apps/rails4-mongoid/app/assets/javascripts/posts.coffee +3 -0
  31. data/test/apps/rails4-mongoid/app/assets/stylesheets/application.css +15 -0
  32. data/test/apps/rails4-mongoid/app/assets/stylesheets/posts.scss +3 -0
  33. data/test/apps/rails4-mongoid/app/assets/stylesheets/scaffolds.scss +73 -0
  34. data/test/apps/rails4-mongoid/app/controllers/application_controller.rb +5 -0
  35. data/test/apps/rails4-mongoid/app/controllers/posts_controller.rb +74 -0
  36. data/test/apps/rails4-mongoid/app/helpers/application_helper.rb +2 -0
  37. data/test/apps/rails4-mongoid/app/helpers/posts_helper.rb +2 -0
  38. data/test/apps/rails4-mongoid/app/models/post.rb +12 -0
  39. data/test/apps/rails4-mongoid/app/searchers/application_searcher.rb +2 -0
  40. data/test/apps/rails4-mongoid/app/searchers/posts_searcher.rb +16 -0
  41. data/test/apps/rails4-mongoid/app/views/layouts/application.html.erb +14 -0
  42. data/test/apps/rails4-mongoid/app/views/posts/_form.html.erb +25 -0
  43. data/test/apps/rails4-mongoid/app/views/posts/edit.html.erb +6 -0
  44. data/test/apps/rails4-mongoid/app/views/posts/index.html.erb +29 -0
  45. data/test/apps/rails4-mongoid/app/views/posts/index.json.jbuilder +4 -0
  46. data/test/apps/rails4-mongoid/app/views/posts/new.html.erb +5 -0
  47. data/test/apps/rails4-mongoid/app/views/posts/show.html.erb +14 -0
  48. data/test/apps/rails4-mongoid/app/views/posts/show.json.jbuilder +1 -0
  49. data/test/apps/rails4-mongoid/bin/bundle +3 -0
  50. data/test/apps/rails4-mongoid/bin/rails +4 -0
  51. data/test/apps/rails4-mongoid/bin/rake +4 -0
  52. data/test/apps/rails4-mongoid/bin/setup +29 -0
  53. data/test/apps/rails4-mongoid/config.ru +4 -0
  54. data/test/apps/rails4-mongoid/config/application.rb +32 -0
  55. data/test/apps/rails4-mongoid/config/boot.rb +3 -0
  56. data/test/apps/rails4-mongoid/config/environment.rb +5 -0
  57. data/test/apps/rails4-mongoid/config/environments/development.rb +38 -0
  58. data/test/apps/rails4-mongoid/config/environments/production.rb +76 -0
  59. data/test/apps/rails4-mongoid/config/environments/test.rb +42 -0
  60. data/test/apps/rails4-mongoid/config/groonga_client.yml +22 -0
  61. data/test/apps/rails4-mongoid/config/initializers/assets.rb +11 -0
  62. data/test/apps/rails4-mongoid/config/initializers/backtrace_silencers.rb +7 -0
  63. data/test/apps/rails4-mongoid/config/initializers/cookies_serializer.rb +3 -0
  64. data/test/apps/rails4-mongoid/config/initializers/filter_parameter_logging.rb +4 -0
  65. data/test/apps/rails4-mongoid/config/initializers/inflections.rb +16 -0
  66. data/test/apps/rails4-mongoid/config/initializers/mime_types.rb +4 -0
  67. data/test/apps/rails4-mongoid/config/initializers/session_store.rb +3 -0
  68. data/test/apps/rails4-mongoid/config/initializers/wrap_parameters.rb +9 -0
  69. data/test/apps/rails4-mongoid/config/locales/en.yml +23 -0
  70. data/test/apps/rails4-mongoid/config/mongoid.yml +142 -0
  71. data/test/apps/rails4-mongoid/config/routes.rb +57 -0
  72. data/test/apps/rails4-mongoid/config/secrets.yml +22 -0
  73. data/test/apps/rails4-mongoid/db/seeds.rb +7 -0
  74. data/test/apps/rails4-mongoid/log/development.log +764 -0
  75. data/test/apps/rails4-mongoid/log/test.log +15736 -0
  76. data/test/apps/rails4-mongoid/public/404.html +67 -0
  77. data/test/apps/rails4-mongoid/public/422.html +67 -0
  78. data/test/apps/rails4-mongoid/public/500.html +66 -0
  79. data/test/apps/rails4-mongoid/public/favicon.ico +0 -0
  80. data/test/apps/rails4-mongoid/public/robots.txt +5 -0
  81. data/test/apps/rails4-mongoid/test/controllers/posts_controller_test.rb +51 -0
  82. data/test/apps/rails4-mongoid/test/factories/posts.rb +6 -0
  83. data/test/apps/rails4-mongoid/test/models/post_test.rb +9 -0
  84. data/test/apps/rails4-mongoid/test/searchers/posts_searcher_test.rb +119 -0
  85. data/test/apps/rails4-mongoid/test/test_helper.rb +9 -0
  86. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/-Xhj-Mbb82rk571sDsQxrdCywGX36vsenBH1RUlK-LY.cache +1 -0
  87. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/0f_MbWM7kHYaEii2fU46RtcPM1c5AvKKzZXw_HiM0CE.cache +1 -0
  88. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/2PZE0O2lwq-MOTwxKTZxLxQwY8_QyhrbRsthl3Lc4lQ.cache +0 -0
  89. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
  90. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/5dV_yE4FDckg8xSumojLvTuflbNyhpApq7LPOy-e1X0.cache +0 -0
  91. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/7efkcYvlMpIQU8kuDy1jAKDLjakVGoH6N5V-AuzuTZc.cache +0 -0
  92. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/8Zm1d9-lBPsGG_HUw8FP2OCCVucGDVhWAOGaopvOdss.cache +0 -0
  93. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/9B_fDWO-7yTtWLP7C6kgtW5LN2zlpAqr1km-1jSQx2w.cache +1 -0
  94. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/9X7nmZiJ1BxgVp80vJFjKw2uuEfdS1ik3B66O4_iWPo.cache +0 -0
  95. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/APY89OAPJx9A3D3xcCoktvEvQUs7NcWChYXnjjjPzz0.cache +0 -0
  96. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/CWMzfW8FmEfR6gB4BwariPLjTZTtLc4bCVc0r0m2VV4.cache +0 -0
  97. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/C_ZXB0e-P6-9Ty60eBWeAui5uzzA0NzDW8amqmtTk9g.cache +0 -0
  98. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Cg1VzEm4v80ed-e0X3WGAHJWYiC_ybnfBrRrIvltPXc.cache +1 -0
  99. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Cjhm36F4tzUHdc1e0Bho51N0H4HYybVTrxTmbtiqih4.cache +1 -0
  100. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +2 -0
  101. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/EBtbhweQl74JQNkwFL3ahZH_9x44ceqa9hOT8lQ_SfM.cache +2 -0
  102. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/EQICjEOYeXNTngMqEgET0L1SuE4AVuoKyJgio4ks43A.cache +1 -0
  103. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Edyy4hZsoEraZijGtQOEBXtG2121KJUoZeUxxPjVoD8.cache +1 -0
  104. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/HfA_T6XraGo2Ny22jLyDJkU33FwcVIBOxUIXJAfTZnw.cache +1 -0
  105. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/I-oUhfEICgXeCJ30YmQbpoYtgGAJK0-Pql8kOvfHUIs.cache +1 -0
  106. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/ITBgBGR9-8E08Y63Vjo65c8DzPESTHJuYCXZp0y6k_I.cache +0 -0
  107. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/JImLmTmbMkDKlN30hse8U-u0IV8hvfdebOL3EFz71FE.cache +0 -0
  108. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Joxxq6tZo5Z61fNSWcPCGgCyehta1sNKXM0i53ziK0o.cache +2 -0
  109. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/KPHQh44WoGRX0SuVORNxUqq129kPRQ4Sfwr0MgBGTWg.cache +1 -0
  110. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/MQWJrWW-vCooFa9lpB2Z7KDIE9ilL54d5Sf_SRtQhTM.cache +1 -0
  111. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
  112. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Olyga_OJ5Sz5He_RVZLO_BraSHgGvt9BG0ORecSD4A4.cache +1 -0
  113. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/OoG10cMLeO2eGZxk483Gx75vNDQz7Id8sxVt3g26jQE.cache +0 -0
  114. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/P2sNuT6usNXi8DQFFQ2SMByy1v98zmNdwdx6wduUQDg.cache +1 -0
  115. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Pm3ENYpCrQMOJGd-d8lACN_nbGZWiivq_KyPLJoD9Xk.cache +0 -0
  116. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/PrxeUFTxE6CmNlJ4CQLxcmAQKwOGBKNCFYluKNhVPdI.cache +0 -0
  117. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/PuNKoh-EB-UU-NnPetIEhS3emExlV586tfFJnBFhaxo.cache +0 -0
  118. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/QyBzeHR44VD1fMDrJcMOaVyyn1xgHnmhPX2VL3R6EdE.cache +0 -0
  119. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/QyU_Bdj5YdiIQef2XhSDP5MQf7l3u_A81md3KFPQ2N4.cache +2 -0
  120. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/R9YbLXVmFuZvXntmUsVoP9gdFgZaoKuww_0l-ulu_Sw.cache +0 -0
  121. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/RbDvgwCB1ggHONj2Gglg9cljN_KExx-gHiSiItOFBVw.cache +1 -0
  122. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Rkd99KDYtUtVb3U566M9L4YD2Kh-Qp147dHVmyXnDhg.cache +0 -0
  123. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Sin6bEoASrNa45108CpfgF2jcifz-KpbsvvZJtqVZ68.cache +0 -0
  124. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/SuhtC6f7E2-1SXl4bkRvOKqhzFKTjPvbglVtjbjV6WQ.cache +0 -0
  125. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/WDXpPe61HDYBIqMMzcYJWujunl4HLJBvhn0OOP1yQso.cache +1 -0
  126. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Y2HHx2PygDVpbc258EY6XyZq_3ocHy5fEq-5UHSNfh0.cache +0 -0
  127. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/Zot5Dwe9yQ1wvCpegdXXjC8DUGHfH1xLxerosBjUsns.cache +0 -0
  128. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/ZwSejSAeaXOqaevCGNDw6GT4jzf6iGxiDfUGqtjYqxE.cache +0 -0
  129. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/bsYyBqujQ9Bb_NkqKjx8J9lC8MPb-Ed59b__aV46Bic.cache +1 -0
  130. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/cnfLEWE92uT-WDII157E3Z5XISKK99q6__D2IiTRhOM.cache +0 -0
  131. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/cnk28xBZ2NhIHyeh4bImJu1D8MsQZksGaVeYZSDL-Mw.cache +0 -0
  132. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/cyuaVF0ZckKku_VGsQYOntnl3oNlSP381WW5VhCMbE4.cache +1 -0
  133. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/ee9ZqYM3D8GORlAyhQhVVtyNcEArBAXuuAcPhnfTNT8.cache +5 -0
  134. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/fQe7NSWabAv2wB6jtw0Tjp5CT06xwpla822ipJiUCy0.cache +1 -0
  135. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/fme939QD_yb-kVcNE40VAdyOZYRTHgZCxYLVDZLuzF0.cache +1 -0
  136. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/gl7MP7d46hviHXVnGFYORtcWessT58E75rSQUFjfiII.cache +0 -0
  137. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/hHOboG408ksat1oQaCWVNxzf-FIyTREQFXHdFZurlZQ.cache +1 -0
  138. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/i5GV8tvuWRKqi-plBB0bdaAqfdW_CpIMlk_3qZYyask.cache +1 -0
  139. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/ioEvK0rblqqEotrMItm0VrKhWOXnC3vwC-CIU9UCZEg.cache +1 -0
  140. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/ivzms341pOxkVrOTXM3Yog9cLwq3SmsXcwGMbRGmM6s.cache +1 -0
  141. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/j0l28m8jfc6vnBWrkD0zWt2ELCJfEOMeEjW0Q4GADNY.cache +0 -0
  142. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/jPuyl--LQd6DGNNoxSkPhBGx_ul_1kfka93EDJmnc8c.cache +1 -0
  143. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/jaYo3RHF_E7SipTqBJcsnR0JcOOa0rFpEHmp3nLDrQI.cache +1 -0
  144. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/kSkCWaAJCcTgZ_AhrRCjZhNtkE12cubiq70uNtditqk.cache +0 -0
  145. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/mXFXPQpdpe6VdLyG_ATkrFvhK-DzKohwq6B2GOQo9R8.cache +0 -0
  146. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/q2eC-e4sz4yzY37JZQfdjar0jjp4v7rHuGin5JEKV7Q.cache +1 -0
  147. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/s6DK-YkFoxYJMKXt21m9PdMtZi3TJhRoHIi0R5i69Zs.cache +1 -0
  148. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/sLDAakEn7_JrPiyZe0ZUsCLDnaTAal-5HajraaAgdhE.cache +2 -0
  149. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/teXpzhiur3Mnn2KsTY8q4HhEqpbdmKBfBW2iS5-MvUI.cache +1 -0
  150. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/tgZjQMFX0Ebx2i8ovlwnvwULhvrhFNJLAIQjUNZN1RM.cache +0 -0
  151. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/tihMlIo90U72qN2BzGajipIJOWppg8OIJuVnnluwVJM.cache +1 -0
  152. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/vpD8YcdUFmWVggV1ANqLIWcTbMItiGv1aOUd3i_Sf_w.cache +1 -0
  153. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/wBoZhq66JcV9m6-FvOoZ-Q3Cy9mgT-ynjPWZWZdafLw.cache +0 -0
  154. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/wTWJ6pQBopl4RdCt1QzngFCI6BQsl97QiZJO8bkGZd4.cache +1 -0
  155. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/wjVbFqqSw39d-ryprJ1NYmKProunHG47jEI6RFHcLM4.cache +0 -0
  156. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/wm5Vu6DEN0ZExnKV0oAADsKfEn3yvO4aBQJwp6b8FbU.cache +1 -0
  157. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/x0qPZqkeQj_x2GoHegxhwuHhPMrz8iHGdALgbSEtYB0.cache +1 -0
  158. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/xESXQaQoarUInNLmS7yPvF7D9FlSfaR8n8CsT6vIfmU.cache +1 -0
  159. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/xJpeFclkEQS028sCHKPl9C6EyiAcTgUW_lBAqjRuP_c.cache +0 -0
  160. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/yinyMcV6eKC4p76ZeetFBkRq8qYD5b8fWOHbukaCUNk.cache +1 -0
  161. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/ytg8J2fjBhc978nkpdl0f5cBPdcKpig523h4O4eN664.cache +1 -0
  162. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/z5Cl2oKorg00CGt089PLdPdoE1ELvsz4CdtXnlUk7KM.cache +0 -0
  163. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/z6uhOy1uoRnC6c9iKrzc1vRqGH1KQrhArDe51rZL1_k.cache +1 -0
  164. data/test/apps/rails4-mongoid/tmp/cache/assets/sprockets/v3.0/zIFdfoc8nFjrQhTXHyamSnNA6CVVrOcsP4qfDQhOcVI.cache +1 -0
  165. data/test/run-test.rb +43 -0
  166. data/test/unit/run-test.rb +25 -0
  167. data/test/unit/searcher/select/filter_parameter_test.rb +99 -0
  168. data/test/unit/searcher/select/match_columns_parameter_test.rb +59 -0
  169. data/test/unit/searcher/select/output_columns_parameter_test.rb +68 -0
  170. data/test/unit/searcher/select/sortby_parameter_test.rb +63 -0
  171. data/test/unit/test_helper.rb +19 -0
  172. metadata +480 -0
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/posts.coffee?type=application/javascript&pipeline=self&id=c6251ef04e1726d6a56663ae63f129934eaa48ee6a56f9a6cc5b5ee074e28c7d:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=bb4430612008726526dbd860b11e98d84fc95da35c6d9c22dda9277b1b3b9f0d:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"?processors:type=text/css&file_type=text/css&pipeline=debug;TTI"9file-digest://app/assets/stylesheets/application.css;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"4file-digest://app/assets/stylesheets/posts.scss;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash}+I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"[processors:type=application/javascript&file_type=application/javascript&pipeline=debug;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"bfile-digest:///var/lib/gems/2.3.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts/jquery.js;TTI"ffile-digest:///var/lib/gems/2.3.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts/jquery_ujs.js;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"hfile-digest:///var/lib/gems/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee;TTI"6file-digest://app/assets/javascripts/posts.coffee;TTI"$file-digest://app/assets/images;TTI"+file-digest://app/assets/images/jquery;TTI")file-digest://app/assets/javascripts;TTI"0file-digest://app/assets/javascripts/jquery;TTI")file-digest://app/assets/stylesheets;TTI"0file-digest://app/assets/stylesheets/jquery;TTI",file-digest://vendor/assets/javascripts;TTI"3file-digest://vendor/assets/javascripts/jquery;TTI",file-digest://vendor/assets/stylesheets;TTI"3file-digest://vendor/assets/stylesheets/jquery;TTI"Sfile-digest:///var/lib/gems/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts;TTI"Zfile-digest:///var/lib/gems/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts/jquery;TTI"Xfile-digest:///var/lib/gems/2.3.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts;TTI"_file-digest:///var/lib/gems/2.3.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts/jquery;TTI"/file-digest://app/assets/images/jquery_ujs;TTI"4file-digest://app/assets/javascripts/jquery_ujs;TTI"4file-digest://app/assets/stylesheets/jquery_ujs;TTI"7file-digest://vendor/assets/javascripts/jquery_ujs;TTI"7file-digest://vendor/assets/stylesheets/jquery_ujs;TTI"^file-digest:///var/lib/gems/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts/jquery_ujs;TTI"cfile-digest:///var/lib/gems/2.3.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts/jquery_ujs;TTI"/file-digest://app/assets/images/turbolinks;TTI"4file-digest://app/assets/javascripts/turbolinks;TTI"4file-digest://app/assets/stylesheets/turbolinks;TTI"7file-digest://vendor/assets/javascripts/turbolinks;TTI"7file-digest://vendor/assets/stylesheets/turbolinks;TTI"^file-digest:///var/lib/gems/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks;TTF
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/posts.scss?type=text/css&pipeline=self&id=acb249a4abebf258cdaa13a58a4d66715926c179b8bd6c5ce8ef74c2913eb416:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=80cc21ea243167d7f1ef00348485bee5e759aa431ee92fdd2d21f262aa5c3ac5:ET
@@ -0,0 +1 @@
1
+ "%�o1��?P�k�0�pw�Ře��„�^�r��e���
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=bd7c4206c2b2d1335f981f012a787d619240009057ad277cee1aca7c688acb79:ET
@@ -0,0 +1,2 @@
1
+ "%�§�°�N�y�xe�
2
+ ��s�
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=fa9191ada084360476521e04d47ce1adfbe67020d432d5b512c555d8d048f03f:ET
@@ -0,0 +1 @@
1
+ I"�/var/lib/gems/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee?type=application/javascript&pipeline=self&id=3e7b7bbc64623ab6990e378815edf33ccbf02aa0f340689c6c9f06e835415c0c:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/posts.scss?type=text/css&pipeline=self&id=0cb96023d97e4b93306e9339bf610c259d3da276d19c279eab6212bb02075fca:ET
@@ -0,0 +1 @@
1
+ "%��B�����șo�$'�A�d��L���xR�U
@@ -0,0 +1,2 @@
1
+ "%�d����<]2�
2
+ ���'��]*v��lI����%
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=751928327df27332d1a4e5d3cfb0681da249a382ddc354fb87fe94ec9aad6692:ET
@@ -0,0 +1 @@
1
+ I"�/var/lib/gems/2.3.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=668543cc5f0d3e94cdfaf031396ca024c72a68627cedea63aed34179db1fa6df:ET
@@ -0,0 +1 @@
1
+ "%����٬;�3�����DbP� �\����p�b
@@ -0,0 +1 @@
1
+ "%�D�����#+��R=��������@7����|(
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=7195aac6ae36c2cb12a64f616c1417b140d8e4dbdd7279d096934d3bd7000067:ET
@@ -0,0 +1 @@
1
+ I"�/var/lib/gems/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee?type=application/javascript&pipeline=self&id=b278ef4f862414b405265b1ca5a34f1162a4072e815c48b6887657230afb3341:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=081288d38331f35b8b53ba5925141bc3d5a82a6cf3d42804cc059d5484158a14:ET
@@ -0,0 +1 @@
1
+ "%S�{�l�n ��E!�����cpKbjƮ.\�=
@@ -0,0 +1 @@
1
+ "%����٬;�3�����DbP� �\����p�b
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=dd406ffa2ffae4dc2493094fcd7ae6abb5c6bf9e848697e88492e023119107d6:ET
@@ -0,0 +1 @@
1
+ "%�o1��?P�k�0�pw�Ře��„�^�r��e���
@@ -0,0 +1 @@
1
+ "%V�C�k+�������<�D�Z�l-�x?����
@@ -0,0 +1 @@
1
+ "%��B�����șo�$'�A�d��L���xR�U
@@ -0,0 +1,2 @@
1
+ "%�§�°�N�y�xe�
2
+ ��s�
@@ -0,0 +1 @@
1
+ "%����"m�J���S��E�j!�/�d�]�/[���
@@ -0,0 +1 @@
1
+ I"�/var/lib/gems/2.3.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=e0aabfed85a7bb299743f49ca46eb525f461ca6dbc438c777f60c3793de539d1:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=de6ead356daaed9d53bd8787f9e9f76809f4c1b6b1bab77b6ca88475bf164907:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=985f7e4b947ffc130ee6d36e6d3af5219707d7569e204ab7f0197e628d18f5e7:ET
@@ -0,0 +1 @@
1
+ "%������$�P���p��>T?*��"dl�.�
@@ -0,0 +1 @@
1
+ "%�D�����#+��R=��������@7����|(
@@ -0,0 +1 @@
1
+ I"�/var/lib/gems/2.3.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts/jquery_ujs.js?type=application/javascript&pipeline=self&id=a1bd17fd697ae76c6faf83d2a261948987cf487ca21298d297102fe5c8600d73:ET
@@ -0,0 +1 @@
1
+ "%�x��D����r�`$��g��i?�&�9XS�
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/posts.coffee?type=application/javascript&pipeline=self&id=cffec3e584fe5d507c714543c5244946faaa509056bb903ab4cb3a0bb94ec3b4:ET
@@ -0,0 +1 @@
1
+ "%Ѱč@�����6H�uZoX�Z�gbh0W��V
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=45fbca8fc754d76355be32ede29f04e9c96d46b6f0665fd61f99bb8bb403d56e:ET
data/test/run-test.rb ADDED
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "rbconfig"
20
+
21
+ unless system(RbConfig.ruby, "test/unit/run-test.rb", *ARGV)
22
+ exit(false)
23
+ end
24
+
25
+ Dir.glob("#{__dir__}/apps/*") do |test_application|
26
+ env = {
27
+ "BUNDLE_GEMFILE" => "#{test_application}/Gemfile",
28
+ }
29
+ command_line = [
30
+ "bundle",
31
+ "exec",
32
+ RbConfig.ruby,
33
+ "bin/rake",
34
+ "test",
35
+ "TESTOPTS=#{ARGV.join(' ')}",
36
+ ]
37
+ options = {
38
+ :chdir => test_application,
39
+ }
40
+ unless system(env, *command_line, options)
41
+ exit(false)
42
+ end
43
+ end
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "test-unit"
20
+
21
+ $VERBOSE = true
22
+
23
+ $LOAD_PATH.unshift(File.join(__dir__, "..", "..", "lib"))
24
+
25
+ exit(Test::Unit::AutoRunner.run(true, __dir__))
@@ -0,0 +1,99 @@
1
+ # Copyright (C) 2016 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 as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "test_helper"
18
+
19
+ class SearcherSelectFilterParameterTest < Test::Unit::TestCase
20
+ def filter_parameter(expression, values=nil)
21
+ Groonga::Client::Searcher::Select::FilterParameter.new(expression, values)
22
+ end
23
+
24
+ def to_parameters(expression, values=nil)
25
+ filter_parameter(expression, values).to_parameters
26
+ end
27
+
28
+ sub_test_case("expression") do
29
+ def test_nil
30
+ assert_equal({},
31
+ to_parameters(nil))
32
+ end
33
+
34
+ def test_string
35
+ assert_equal({
36
+ :filter => "age <= 20",
37
+ },
38
+ to_parameters("age <= 20"))
39
+ end
40
+
41
+ def test_empty_string
42
+ assert_equal({},
43
+ to_parameters(""))
44
+ end
45
+ end
46
+
47
+ sub_test_case("values") do
48
+ def test_string
49
+ filter = <<-'FILTER'.strip
50
+ title == "[\"He\\ llo\"]"
51
+ FILTER
52
+ assert_equal({
53
+ :filter => filter,
54
+ },
55
+ to_parameters("title == %{value}",
56
+ :value => "[\"He\\ llo\"]"))
57
+ end
58
+
59
+ def test_symbol
60
+ assert_equal({
61
+ :filter => "title == \"Hello\"",
62
+ },
63
+ to_parameters("title == %{value}",
64
+ :value => :Hello))
65
+ end
66
+
67
+ def test_number
68
+ assert_equal({
69
+ :filter => "age <= 29",
70
+ },
71
+ to_parameters("age <= %{value}",
72
+ :value => 29))
73
+ end
74
+
75
+ def test_true
76
+ assert_equal({
77
+ :filter => "published == true",
78
+ },
79
+ to_parameters("published == %{value}",
80
+ :value => true))
81
+ end
82
+
83
+ def test_false
84
+ assert_equal({
85
+ :filter => "published == false",
86
+ },
87
+ to_parameters("published == %{value}",
88
+ :value => false))
89
+ end
90
+
91
+ def test_nil
92
+ assert_equal({
93
+ :filter => "function(null)",
94
+ },
95
+ to_parameters("function(%{value})",
96
+ :value => nil))
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,59 @@
1
+ # Copyright (C) 2016 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 as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "test_helper"
18
+
19
+ class SearcherSelectMatchColumnsParameterTest < Test::Unit::TestCase
20
+ def match_columns_parameter(match_columns)
21
+ Groonga::Client::Searcher::Select::MatchColumnsParameter.new(match_columns)
22
+ end
23
+
24
+ def test_nil
25
+ assert_equal({},
26
+ match_columns_parameter(nil).to_parameters)
27
+ end
28
+
29
+ def test_string
30
+ assert_equal({
31
+ :match_columns => "title",
32
+ },
33
+ match_columns_parameter("title").to_parameters)
34
+ end
35
+
36
+ def test_empty_string
37
+ assert_equal({},
38
+ match_columns_parameter("").to_parameters)
39
+ end
40
+
41
+ def test_symbol
42
+ assert_equal({
43
+ :match_columns => "title",
44
+ },
45
+ match_columns_parameter(:title).to_parameters)
46
+ end
47
+
48
+ def test_array
49
+ assert_equal({
50
+ :match_columns => "title, body",
51
+ },
52
+ match_columns_parameter(["title", "body"]).to_parameters)
53
+ end
54
+
55
+ def test_empty_array
56
+ assert_equal({},
57
+ match_columns_parameter([]).to_parameters)
58
+ end
59
+ end
@@ -0,0 +1,68 @@
1
+ # Copyright (C) 2016 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 as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "test_helper"
18
+
19
+ class SearcherSelectOutputColumnsParameterTest < Test::Unit::TestCase
20
+ def output_columns_parameter(output_columns)
21
+ Groonga::Client::Searcher::Select::OutputColumnsParameter.new(output_columns)
22
+ end
23
+
24
+ def test_nil
25
+ assert_equal({},
26
+ output_columns_parameter(nil).to_parameters)
27
+ end
28
+
29
+ def test_string
30
+ assert_equal({
31
+ :output_columns => "title",
32
+ },
33
+ output_columns_parameter("title").to_parameters)
34
+ end
35
+
36
+ def test_empty_string
37
+ assert_equal({},
38
+ output_columns_parameter("").to_parameters)
39
+ end
40
+
41
+ def test_symbol
42
+ assert_equal({
43
+ :output_columns => "title",
44
+ },
45
+ output_columns_parameter(:title).to_parameters)
46
+ end
47
+
48
+ def test_array
49
+ assert_equal({
50
+ :output_columns => "title, body",
51
+ },
52
+ output_columns_parameter(["title", "body"]).to_parameters)
53
+ end
54
+
55
+ def test_empty_array
56
+ assert_equal({},
57
+ output_columns_parameter([]).to_parameters)
58
+ end
59
+
60
+ def test_function
61
+ parameter = output_columns_parameter(["title", "snippet_html(body)"])
62
+ assert_equal({
63
+ :output_columns => "title, snippet_html(body)",
64
+ :command_version => "2",
65
+ },
66
+ parameter.to_parameters)
67
+ end
68
+ end