groonga-client-model 0.9.0

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 (192) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +5 -0
  3. data/Gemfile +23 -0
  4. data/README.md +38 -0
  5. data/Rakefile +46 -0
  6. data/doc/text/lgpl-2.1.txt +502 -0
  7. data/doc/text/news.md +5 -0
  8. data/groonga-client-model.gemspec +55 -0
  9. data/lib/groonga-client-model.rb +40 -0
  10. data/lib/groonga_client_model/client.rb +37 -0
  11. data/lib/groonga_client_model/client_opener.rb +24 -0
  12. data/lib/groonga_client_model/error.rb +46 -0
  13. data/lib/groonga_client_model/load_value_generator.rb +54 -0
  14. data/lib/groonga_client_model/modelizable.rb +26 -0
  15. data/lib/groonga_client_model/modelize.rb +83 -0
  16. data/lib/groonga_client_model/railtie.rb +62 -0
  17. data/lib/groonga_client_model/record.rb +324 -0
  18. data/lib/groonga_client_model/schema.rb +109 -0
  19. data/lib/groonga_client_model/spec_helper.rb +27 -0
  20. data/lib/groonga_client_model/test_helper.rb +27 -0
  21. data/lib/groonga_client_model/version.rb +19 -0
  22. data/test/apps/rails5/Gemfile +50 -0
  23. data/test/apps/rails5/Gemfile.lock +208 -0
  24. data/test/apps/rails5/README.md +24 -0
  25. data/test/apps/rails5/Rakefile +6 -0
  26. data/test/apps/rails5/app/assets/config/manifest.js +3 -0
  27. data/test/apps/rails5/app/assets/javascripts/application.js +16 -0
  28. data/test/apps/rails5/app/assets/javascripts/cable.js +13 -0
  29. data/test/apps/rails5/app/assets/javascripts/posts.coffee +3 -0
  30. data/test/apps/rails5/app/assets/stylesheets/application.css +15 -0
  31. data/test/apps/rails5/app/assets/stylesheets/posts.scss +3 -0
  32. data/test/apps/rails5/app/assets/stylesheets/scaffolds.scss +89 -0
  33. data/test/apps/rails5/app/channels/application_cable/channel.rb +4 -0
  34. data/test/apps/rails5/app/channels/application_cable/connection.rb +4 -0
  35. data/test/apps/rails5/app/controllers/application_controller.rb +3 -0
  36. data/test/apps/rails5/app/controllers/posts_controller.rb +74 -0
  37. data/test/apps/rails5/app/helpers/application_helper.rb +2 -0
  38. data/test/apps/rails5/app/helpers/posts_helper.rb +2 -0
  39. data/test/apps/rails5/app/jobs/application_job.rb +2 -0
  40. data/test/apps/rails5/app/mailers/application_mailer.rb +4 -0
  41. data/test/apps/rails5/app/models/post.rb +2 -0
  42. data/test/apps/rails5/app/views/layouts/application.html.erb +14 -0
  43. data/test/apps/rails5/app/views/layouts/mailer.html.erb +13 -0
  44. data/test/apps/rails5/app/views/layouts/mailer.text.erb +1 -0
  45. data/test/apps/rails5/app/views/posts/_form.html.erb +27 -0
  46. data/test/apps/rails5/app/views/posts/_post.json.jbuilder +2 -0
  47. data/test/apps/rails5/app/views/posts/edit.html.erb +6 -0
  48. data/test/apps/rails5/app/views/posts/index.html.erb +29 -0
  49. data/test/apps/rails5/app/views/posts/index.json.jbuilder +1 -0
  50. data/test/apps/rails5/app/views/posts/new.html.erb +5 -0
  51. data/test/apps/rails5/app/views/posts/show.html.erb +14 -0
  52. data/test/apps/rails5/app/views/posts/show.json.jbuilder +1 -0
  53. data/test/apps/rails5/bin/bundle +3 -0
  54. data/test/apps/rails5/bin/rails +9 -0
  55. data/test/apps/rails5/bin/rake +9 -0
  56. data/test/apps/rails5/bin/setup +34 -0
  57. data/test/apps/rails5/bin/spring +16 -0
  58. data/test/apps/rails5/bin/update +29 -0
  59. data/test/apps/rails5/config.ru +5 -0
  60. data/test/apps/rails5/config/application.rb +25 -0
  61. data/test/apps/rails5/config/boot.rb +3 -0
  62. data/test/apps/rails5/config/cable.yml +9 -0
  63. data/test/apps/rails5/config/environment.rb +5 -0
  64. data/test/apps/rails5/config/environments/development.rb +51 -0
  65. data/test/apps/rails5/config/environments/production.rb +83 -0
  66. data/test/apps/rails5/config/environments/test.rb +42 -0
  67. data/test/apps/rails5/config/groonga.yml +8 -0
  68. data/test/apps/rails5/config/initializers/application_controller_renderer.rb +6 -0
  69. data/test/apps/rails5/config/initializers/assets.rb +11 -0
  70. data/test/apps/rails5/config/initializers/backtrace_silencers.rb +7 -0
  71. data/test/apps/rails5/config/initializers/cookies_serializer.rb +5 -0
  72. data/test/apps/rails5/config/initializers/filter_parameter_logging.rb +4 -0
  73. data/test/apps/rails5/config/initializers/inflections.rb +16 -0
  74. data/test/apps/rails5/config/initializers/mime_types.rb +4 -0
  75. data/test/apps/rails5/config/initializers/new_framework_defaults.rb +21 -0
  76. data/test/apps/rails5/config/initializers/session_store.rb +3 -0
  77. data/test/apps/rails5/config/initializers/wrap_parameters.rb +9 -0
  78. data/test/apps/rails5/config/locales/en.yml +23 -0
  79. data/test/apps/rails5/config/puma.rb +47 -0
  80. data/test/apps/rails5/config/routes.rb +4 -0
  81. data/test/apps/rails5/config/secrets.yml +22 -0
  82. data/test/apps/rails5/config/spring.rb +6 -0
  83. data/test/apps/rails5/db/schema.grn +9 -0
  84. data/test/apps/rails5/db/seeds.rb +7 -0
  85. data/test/apps/rails5/log/development.log +348 -0
  86. data/test/apps/rails5/log/test.log +1824 -0
  87. data/test/apps/rails5/public/404.html +67 -0
  88. data/test/apps/rails5/public/422.html +67 -0
  89. data/test/apps/rails5/public/500.html +66 -0
  90. data/test/apps/rails5/public/apple-touch-icon-precomposed.png +0 -0
  91. data/test/apps/rails5/public/apple-touch-icon.png +0 -0
  92. data/test/apps/rails5/public/favicon.ico +0 -0
  93. data/test/apps/rails5/public/robots.txt +5 -0
  94. data/test/apps/rails5/test/controllers/posts_controller_test.rb +50 -0
  95. data/test/apps/rails5/test/factories/posts.rb +6 -0
  96. data/test/apps/rails5/test/test_helper.rb +9 -0
  97. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/-8/-8MPXp-nRdAuudlPZG0-fjIhSfT9c-mruIMNR_HnpTE.cache +2 -0
  98. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/04/04zh1ytKDagWzWcqUyadXtzzohCn9iVvSVG4KrjpfPU.cache +0 -0
  99. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/0M/0M4bZ4tQh0MQYZMb72U5yr-ELStAsUSb8akkTME9TPM.cache +0 -0
  100. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/0g/0gB1rYz79RuAa43DzVci1GUjc5so0F1dU_LyLSmm3oQ.cache +0 -0
  101. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/1w/1w3lEnPL9oZPD-uk9Y9HOAO5TBywbDUumPsLKAD1trs.cache +1 -0
  102. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/2g/2gve43APDqh4mVsNSvvDZWU7XBUFJ22DjchDFC7BLHE.cache +1 -0
  103. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/3F/3Fsw9a9YyB3-WaDSpA1HTGJrWn_7xMLLpUYcNv4f4zs.cache +1 -0
  104. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/3P/3Px3lDIUtsiFfGy4nQGown3yldwKCp1MNuWbSDX1pvg.cache +0 -0
  105. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/46/46uDYcwHwTAfdjT4Cxqs7pC3FEBf4GNj8S36-TDtT18.cache +2 -0
  106. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/5g/5gcXfyU_2YGZzzLIX2HgVkpwSaUUyIH9beyVvR4-RyM.cache +0 -0
  107. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/6a/6ae9A4LxsOF8WxXqTRrY_OfmiKLzuX-k8CdxcYhyH2w.cache +0 -0
  108. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/6g/6gfb-nNauXmim2itNUscPWKLGmjzBgnE4ee76bNftS4.cache +1 -0
  109. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/71/71Km0xL27urBNH3LVGVQ7MXXtuIePWU9VsJ4VjSeMac.cache +1 -0
  110. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/8Z/8Zm1d9-lBPsGG_HUw8FP2OCCVucGDVhWAOGaopvOdss.cache +0 -0
  111. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/8w/8wTyiibSVQ_CunXEyCjFUbzdSEAuSbH0z5XuCUXG0EA.cache +0 -0
  112. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/9p/9pkKAqd_Ia0HpbbUCZtpJ8WiDzr5stcFJsnqsOsJwCc.cache +0 -0
  113. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/B9/B9QeeLv4GR9sOdrwyvxa8jIr4MkxjYh4Ow6MOZ8slX8.cache +0 -0
  114. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/BK/BKtHbqHUW-BUh6yXbZoSBLGYZdH4xpyEVJZ85mre3dI.cache +1 -0
  115. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Bx/BxzoG0KxeNLac4xTNeJv3qfeytbNBw58xj2zD-xdbrE.cache +0 -0
  116. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/DG/DGB9_ZZc6xf8xDs1C8MTwsnZGITqTg5w6Fi8loIoAz0.cache +1 -0
  117. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/DI/DIQbAB3xoMpwIuVisoyQuLOOLReZGqTzMsMSqPTvNlU.cache +1 -0
  118. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Dc/Dcujr9N54L76juPEo4EOYs8buHy8vO2fp-AjoG42-uQ.cache +0 -0
  119. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Dw/DwMpASR_zMhZCB0WD5ibeEaOAEhod-gPDA-cl83A0NQ.cache +1 -0
  120. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/F2/F2G2wQz7oPKX0Y4KCAUyw79ULHKyiweLkqbo4uclz2M.cache +0 -0
  121. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/F4/F4Vm2jVryhME1Ux-h1fCIbynttYJmSOV0lzVQihiIas.cache +0 -0
  122. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/G0/G0kukI-r0q0Vbrg6e_jnYJoYcOX8K__h-mwKbCf4twE.cache +2 -0
  123. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/H4/H4qMae4wP-2E0IT3OzIKJm7TAmkfgTg5GG-mDvrpRr8.cache +1 -0
  124. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/HJ/HJmxnxAVu4ESMb2RUFATQhzd8xP7qwk0i7Or2WU6tHY.cache +1 -0
  125. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Ih/IhFDQr9KaIbw7KJmoi9sRJ2CWZtxt72J0Eu2HDAQYJA.cache +1 -0
  126. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/J-/J-hbdFdKmhYgVvczTzQyQ6ToGIL2Ucw2qCT6Y1oOPhg.cache +1 -0
  127. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/KZ/KZDZMIUD9LD98z__9bjCHLnzjcGoKSnlxuHH1cEiw6M.cache +1 -0
  128. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/LD/LDzW9KshYb0NgRzu1HyrKQlc3satBlIIOEHET_I4TjA.cache +1 -0
  129. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Mw/MwUXpv2ArJcHhHfRN-i_SHhOyrhE2ED5DP6j2_tHtDM.cache +1 -0
  130. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/N6/N6_UDcd-9vm063oO9Kj2UKERXHyG53mpljIHhMP_sX0.cache +1 -0
  131. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Ot/OttEu6oltiTErpVGZQJA3vWOb24u3_w28yMEG-Gs0tA.cache +1 -0
  132. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/P1/P1Ojlz0OChhbxGf83KhMWxJFzKZ3unhLwJ1UoH5U7ss.cache +1 -0
  133. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Pz/PzsjxNnBT0RlIX-T49i6Iyrc_XG8IaJ-F55_x52md8M.cache +0 -0
  134. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Q0/Q0AeQIZuDbFTvWKLlSaL-R4XKHuiymwgVvQUqxxVq_k.cache +0 -0
  135. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Qr/Qrr38H1OZvkfozoMfcDEQ-arpbO7PFQ47i70UTEeWnk.cache +1 -0
  136. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Qw/QwtseSptjk29vLQAs9XVSY_9GY6mR4wLQ6e3xJZzwuo.cache +1 -0
  137. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Rf/RfAETGxupO0E6Sf50S9Rs_7H_8IFQkZ0V_Ot0qRcMaM.cache +1 -0
  138. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/S1/S1RgRu3SVlB0u9krRyLUpNzVgKMN9Pk_KMWLehP2SUc.cache +1 -0
  139. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/SN/SNLpl8dBME7slRhucvmV_kjMQImk-VGiILaga5lEcBM.cache +0 -0
  140. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/SO/SOU1TEHFYRVejiA6nBNRm3Bwq_YtPlxSXK0VM3y3vto.cache +0 -0
  141. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Sd/Sda0ZUElAQoD0SXBgNqF99THI2KdVA4YOcdhAyZxPsY.cache +1 -0
  142. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Sh/ShN-ZUpoxLJLJiMV5gFDP00vcSMHw87YzFBlXH4adPA.cache +0 -0
  143. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Si/Sin6bEoASrNa45108CpfgF2jcifz-KpbsvvZJtqVZ68.cache +0 -0
  144. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/TI/TIt8bfq26rstydJvFM28p05FfB6s8Qjr6EoF6EtQUEc.cache +1 -0
  145. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Uk/UkodNPk80caeUqn1HNQXMB1qV-c-4l-vBFHb7fd5ZGw.cache +1 -0
  146. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Uw/Uws4qYyGLobvE_JD4L6dQNcIOOhv4LEZ3D0mK86tZOA.cache +1 -0
  147. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Wm/WmtvDDxglSnhmavMeA7WNn7waN3QbagRHeoZHvZJN84.cache +1 -0
  148. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/X6/X6u2Cul1j8SpBq0WC1S8WhzGiT6f-6L_djUngh_gQfw.cache +0 -0
  149. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Xe/XeuTfsFtikyfcpzyNjJW7GvVARtV7EFUF8V9lJuS9zs.cache +0 -0
  150. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Ya/YayMISAqD-Y3vBFywwKrXbUovGf5o77HUF5s8mnQgO0.cache +0 -0
  151. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Z2/Z2fYOjvDRsoVXYUWY_QLV3gqU-HobuEZ7vKRjuJO-80.cache +1 -0
  152. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Zj/ZjPZKMxS8BzA1QxHFURXSpprFItP8iIYNCg6yfbO69Y.cache +1 -0
  153. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/a7/a7_aLHXKzPVK1lGdqvWuCl5hXxwSIGH4kcxuF7jMzgE.cache +1 -0
  154. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/c9/c9YydpmE9rI8VeQ4sVqd5JrA1VSEFGGzpuMBUSrAGac.cache +0 -0
  155. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/cB/cBjyp28toLdtY2EFK9cqrbDnrwBSFI7T_vLNoGz-u_U.cache +0 -0
  156. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/cT/cT8i2C4yg0R2UYvutxD-4kbdJF09toG1OUgtd6NAf2M.cache +0 -0
  157. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/cU/cUegCc5wz5f7rfqzD7wrbN633pZRWeewi9j1lJ895Y0.cache +0 -0
  158. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/dA/dAab_MVPXubReIXiKSsP0TGA9dXca0KkwVLz7xNJNmA.cache +0 -0
  159. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/eY/eYUlaSCg8w9Jp-IVGbffopOhH4C94vGA0w6SaC88FM8.cache +1 -0
  160. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/eo/eoSb6VtmOhc2zv4rO1yMBf6hjUj7zHVkSMiNZ7Y576w.cache +1 -0
  161. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/gm/gmeq3PfpFbfe2L0ijWzw1Dzny6T-kD3zREQjh6XGs-o.cache +0 -0
  162. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/he/heptoj4xFW23bqbGAnQ2g6MsS3OKgswQZOu4EFQA9CE.cache +1 -0
  163. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/kN/kNQUVmgZpBoZh9oC57J3qRmnvFOb8zfDeJWar6cPJFM.cache +1 -0
  164. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/km/km1UJe7Uvz3cE03ctzec3Mpcow_vgKO36rq50_Szy3o.cache +5 -0
  165. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/kv/kvOgs1tp83VikXcBjupUg71ybkDcx1pBzH2Dw6mVa7A.cache +1 -0
  166. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/kz/kzw210ITXFWNFV8kw5e-_kRlpS48lGotSQWKPlUfMJ4.cache +0 -0
  167. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/m-/m-gDByrlve8T_OZCCZCaGVlLUnbGWk0qkv7naFMcLDg.cache +1 -0
  168. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/m8/m8XSfEV5J53MzAtMK6udqOZh9S_uC-tELG327hLnWT4.cache +1 -0
  169. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +0 -0
  170. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/na/naKBB6bJXEjSAfrBfAiXlIzJDRGTsRrbQlI5FezRxnM.cache +1 -0
  171. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +0 -0
  172. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/oU/oUgVYeNUmvSbf5MWq5a-nknLIlepM8oMGSWyD1J5bzg.cache +0 -0
  173. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/pN/pNBMBzHv-_a5u4lbxQmRsv_hzWZOk93wX3hlG4y4X5E.cache +1 -0
  174. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/pb/pb0V-IHbOTzmTuDDHO7dn8kl3G4RWqXYY1-Gtuklh-M.cache +1 -0
  175. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/pq/pqi4pYpSRroaGdwCXuATmVeb1U-mvzUU8zeWu6o5ooo.cache +0 -0
  176. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/q9/q9zC8RrLhOO1dVXJ3fZqc9dSbshhjSpsDQxh5MpbnDA.cache +0 -0
  177. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/qP/qPmv5snMrDw830S6hSICDcnIy7kVEWoFKXhGKT38lG4.cache +2 -0
  178. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/rn/rnjUJtM3qyEybb7S3NaVbV36OvY6ulGzqxgvp6vtkW0.cache +1 -0
  179. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/rv/rvA5ImExxmMtvHSKmwVMXxnVzM4istECfBR-LxbUf8I.cache +0 -0
  180. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/sS/sSg6UsW5PPi591GTK35btFew1r3_HpbNHoyZv3vZ_HY.cache +1 -0
  181. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/t3/t39F_1zIFMdWiKVUNJyhWOOnP8Lgr6AD5R1HWdVYwbU.cache +0 -0
  182. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/tV/tVL6qud2OxyiMT_-izeWpZa4KnypOUhK0XjwBIPVgi0.cache +0 -0
  183. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/uo/uo2nRPLQSA3FmFVLvE-9uXW64Xx-Gp799qSF3vui1WE.cache +0 -0
  184. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +0 -0
  185. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/xU/xUR-yFcc0UZR2BLp-jBU9bjPiIYophx6ep5yBEeQCM8.cache +1 -0
  186. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/zh/zhmfmdnnow0QqwfT_7IXfN-FAU8qAMm03N7XQjFct6E.cache +1 -0
  187. data/test/apps/rails5/tmp/restart.txt +0 -0
  188. data/test/run-test.rb +49 -0
  189. data/test/unit/run-test.rb +35 -0
  190. data/test/unit/test_load_value_generator.rb +79 -0
  191. data/test/unit/test_record.rb +52 -0
  192. metadata +516 -0
@@ -0,0 +1,27 @@
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 "groonga/client/test-helper"
18
+
19
+ module GroongaClientModel
20
+ module TestHelper
21
+ extend ActiveSupport::Concern
22
+
23
+ included do
24
+ include Groonga::Client::TestHelper
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,19 @@
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
+ module GroongaClientModel
18
+ VERSION = "0.9.0"
19
+ end
@@ -0,0 +1,50 @@
1
+ source 'https://rubygems.org'
2
+
3
+
4
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
+ gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
6
+ # Use Puma as the app server
7
+ gem 'puma', '~> 3.0'
8
+ # Use SCSS for stylesheets
9
+ gem 'sass-rails', '~> 5.0'
10
+ # Use Uglifier as compressor for JavaScript assets
11
+ gem 'uglifier', '>= 1.3.0'
12
+ # Use CoffeeScript for .coffee assets and views
13
+ gem 'coffee-rails', '~> 4.2'
14
+ # See https://github.com/rails/execjs#readme for more supported runtimes
15
+ # gem 'therubyracer', platforms: :ruby
16
+
17
+ # Use jquery as the JavaScript library
18
+ gem 'jquery-rails'
19
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
20
+ gem 'turbolinks', '~> 5'
21
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
22
+ gem 'jbuilder', '~> 2.5'
23
+ # Use Redis adapter to run Action Cable in production
24
+ # gem 'redis', '~> 3.0'
25
+ # Use ActiveModel has_secure_password
26
+ # gem 'bcrypt', '~> 3.1.7'
27
+
28
+ # Use Capistrano for deployment
29
+ # gem 'capistrano-rails', group: :development
30
+
31
+ group :development, :test do
32
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
33
+ gem 'byebug', platform: :mri
34
+ gem 'factory_girl_rails'
35
+ end
36
+
37
+ group :development do
38
+ # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
39
+ gem 'web-console'
40
+ gem 'listen', '~> 3.0.5'
41
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
42
+ gem 'spring'
43
+ gem 'spring-watcher-listen', '~> 2.0.0'
44
+ end
45
+
46
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
47
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
48
+
49
+ gem 'groonga-client-model', path: '../../../'
50
+ gem 'groonga-client', path: '../../../../groonga-client'
@@ -0,0 +1,208 @@
1
+ PATH
2
+ remote: ../../../../groonga-client
3
+ specs:
4
+ groonga-client (0.3.5)
5
+ gqtp (>= 1.0.4)
6
+ groonga-command (>= 1.2.8)
7
+ hashie
8
+
9
+ PATH
10
+ remote: ../../../
11
+ specs:
12
+ groonga-client-model (0.9.0)
13
+ activemodel
14
+ groonga-client (>= 0.3.4)
15
+ groonga-command-parser
16
+
17
+ GEM
18
+ remote: https://rubygems.org/
19
+ specs:
20
+ actioncable (5.0.0.1)
21
+ actionpack (= 5.0.0.1)
22
+ nio4r (~> 1.2)
23
+ websocket-driver (~> 0.6.1)
24
+ actionmailer (5.0.0.1)
25
+ actionpack (= 5.0.0.1)
26
+ actionview (= 5.0.0.1)
27
+ activejob (= 5.0.0.1)
28
+ mail (~> 2.5, >= 2.5.4)
29
+ rails-dom-testing (~> 2.0)
30
+ actionpack (5.0.0.1)
31
+ actionview (= 5.0.0.1)
32
+ activesupport (= 5.0.0.1)
33
+ rack (~> 2.0)
34
+ rack-test (~> 0.6.3)
35
+ rails-dom-testing (~> 2.0)
36
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
37
+ actionview (5.0.0.1)
38
+ activesupport (= 5.0.0.1)
39
+ builder (~> 3.1)
40
+ erubis (~> 2.7.0)
41
+ rails-dom-testing (~> 2.0)
42
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
43
+ activejob (5.0.0.1)
44
+ activesupport (= 5.0.0.1)
45
+ globalid (>= 0.3.6)
46
+ activemodel (5.0.0.1)
47
+ activesupport (= 5.0.0.1)
48
+ activerecord (5.0.0.1)
49
+ activemodel (= 5.0.0.1)
50
+ activesupport (= 5.0.0.1)
51
+ arel (~> 7.0)
52
+ activesupport (5.0.0.1)
53
+ concurrent-ruby (~> 1.0, >= 1.0.2)
54
+ i18n (~> 0.7)
55
+ minitest (~> 5.1)
56
+ tzinfo (~> 1.1)
57
+ arel (7.1.4)
58
+ builder (3.2.2)
59
+ byebug (9.0.6)
60
+ coffee-rails (4.2.1)
61
+ coffee-script (>= 2.2.0)
62
+ railties (>= 4.0.0, < 5.2.x)
63
+ coffee-script (2.4.1)
64
+ coffee-script-source
65
+ execjs
66
+ coffee-script-source (1.11.1)
67
+ concurrent-ruby (1.0.2)
68
+ debug_inspector (0.0.2)
69
+ erubis (2.7.0)
70
+ execjs (2.7.0)
71
+ factory_girl (4.5.0)
72
+ activesupport (>= 3.0.0)
73
+ factory_girl_rails (4.6.0)
74
+ factory_girl (~> 4.5.0)
75
+ railties (>= 3.0.0)
76
+ ffi (1.9.14)
77
+ ffi-yajl (2.2.3)
78
+ libyajl2 (~> 1.2)
79
+ globalid (0.3.7)
80
+ activesupport (>= 4.1.0)
81
+ gqtp (1.0.6)
82
+ groonga-command (1.3.1)
83
+ json
84
+ groonga-command-parser (1.0.5)
85
+ ffi
86
+ ffi-yajl
87
+ groonga-command (>= 1.0.9)
88
+ hashie (3.4.6)
89
+ i18n (0.7.0)
90
+ jbuilder (2.6.1)
91
+ activesupport (>= 3.0.0, < 5.1)
92
+ multi_json (~> 1.2)
93
+ jquery-rails (4.2.1)
94
+ rails-dom-testing (>= 1, < 3)
95
+ railties (>= 4.2.0)
96
+ thor (>= 0.14, < 2.0)
97
+ json (2.0.2)
98
+ libyajl2 (1.2.0)
99
+ listen (3.0.8)
100
+ rb-fsevent (~> 0.9, >= 0.9.4)
101
+ rb-inotify (~> 0.9, >= 0.9.7)
102
+ loofah (2.0.3)
103
+ nokogiri (>= 1.5.9)
104
+ mail (2.6.4)
105
+ mime-types (>= 1.16, < 4)
106
+ method_source (0.8.2)
107
+ mime-types (3.1)
108
+ mime-types-data (~> 3.2015)
109
+ mime-types-data (3.2016.0521)
110
+ mini_portile2 (2.1.0)
111
+ minitest (5.10.0)
112
+ multi_json (1.12.1)
113
+ nio4r (1.2.1)
114
+ nokogiri (1.6.8.1)
115
+ mini_portile2 (~> 2.1.0)
116
+ puma (3.6.2)
117
+ rack (2.0.1)
118
+ rack-test (0.6.3)
119
+ rack (>= 1.0)
120
+ rails (5.0.0.1)
121
+ actioncable (= 5.0.0.1)
122
+ actionmailer (= 5.0.0.1)
123
+ actionpack (= 5.0.0.1)
124
+ actionview (= 5.0.0.1)
125
+ activejob (= 5.0.0.1)
126
+ activemodel (= 5.0.0.1)
127
+ activerecord (= 5.0.0.1)
128
+ activesupport (= 5.0.0.1)
129
+ bundler (>= 1.3.0, < 2.0)
130
+ railties (= 5.0.0.1)
131
+ sprockets-rails (>= 2.0.0)
132
+ rails-dom-testing (2.0.1)
133
+ activesupport (>= 4.2.0, < 6.0)
134
+ nokogiri (~> 1.6.0)
135
+ rails-html-sanitizer (1.0.3)
136
+ loofah (~> 2.0)
137
+ railties (5.0.0.1)
138
+ actionpack (= 5.0.0.1)
139
+ activesupport (= 5.0.0.1)
140
+ method_source
141
+ rake (>= 0.8.7)
142
+ thor (>= 0.18.1, < 2.0)
143
+ rake (11.3.0)
144
+ rb-fsevent (0.9.8)
145
+ rb-inotify (0.9.7)
146
+ ffi (>= 0.5.0)
147
+ sass (3.4.22)
148
+ sass-rails (5.0.6)
149
+ railties (>= 4.0.0, < 6)
150
+ sass (~> 3.1)
151
+ sprockets (>= 2.8, < 4.0)
152
+ sprockets-rails (>= 2.0, < 4.0)
153
+ tilt (>= 1.1, < 3)
154
+ spring (2.0.0)
155
+ activesupport (>= 4.2)
156
+ spring-watcher-listen (2.0.1)
157
+ listen (>= 2.7, < 4.0)
158
+ spring (>= 1.2, < 3.0)
159
+ sprockets (3.7.0)
160
+ concurrent-ruby (~> 1.0)
161
+ rack (> 1, < 3)
162
+ sprockets-rails (3.2.0)
163
+ actionpack (>= 4.0)
164
+ activesupport (>= 4.0)
165
+ sprockets (>= 3.0.0)
166
+ thor (0.19.4)
167
+ thread_safe (0.3.5)
168
+ tilt (2.0.5)
169
+ turbolinks (5.0.1)
170
+ turbolinks-source (~> 5)
171
+ turbolinks-source (5.0.0)
172
+ tzinfo (1.2.2)
173
+ thread_safe (~> 0.1)
174
+ uglifier (3.0.4)
175
+ execjs (>= 0.3.0, < 3)
176
+ web-console (3.4.0)
177
+ actionview (>= 5.0)
178
+ activemodel (>= 5.0)
179
+ debug_inspector
180
+ railties (>= 5.0)
181
+ websocket-driver (0.6.4)
182
+ websocket-extensions (>= 0.1.0)
183
+ websocket-extensions (0.1.2)
184
+
185
+ PLATFORMS
186
+ ruby
187
+
188
+ DEPENDENCIES
189
+ byebug
190
+ coffee-rails (~> 4.2)
191
+ factory_girl_rails
192
+ groonga-client!
193
+ groonga-client-model!
194
+ jbuilder (~> 2.5)
195
+ jquery-rails
196
+ listen (~> 3.0.5)
197
+ puma (~> 3.0)
198
+ rails (~> 5.0.0, >= 5.0.0.1)
199
+ sass-rails (~> 5.0)
200
+ spring
201
+ spring-watcher-listen (~> 2.0.0)
202
+ turbolinks (~> 5)
203
+ tzinfo-data
204
+ uglifier (>= 1.3.0)
205
+ web-console
206
+
207
+ BUNDLED WITH
208
+ 1.13.6
@@ -0,0 +1,24 @@
1
+ # README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require_relative 'config/application'
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,3 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../javascripts .js
3
+ //= link_directory ../stylesheets .css
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
@@ -0,0 +1,13 @@
1
+ // Action Cable provides the framework to deal with WebSockets in Rails.
2
+ // You can generate new channels where WebSocket features live using the rails generate channel command.
3
+ //
4
+ //= require action_cable
5
+ //= require_self
6
+ //= require_tree ./channels
7
+
8
+ (function() {
9
+ this.App || (this.App = {});
10
+
11
+ App.cable = ActionCable.createConsumer();
12
+
13
+ }).call(this);
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the posts controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,89 @@
1
+ body {
2
+ background-color: #fff;
3
+ color: #333;
4
+ font-family: verdana, arial, helvetica, sans-serif;
5
+ font-size: 13px;
6
+ line-height: 18px;
7
+ margin: 33px;
8
+ }
9
+
10
+ p, ol, ul, td {
11
+ font-family: verdana, arial, helvetica, sans-serif;
12
+ font-size: 13px;
13
+ line-height: 18px;
14
+ margin: 33px;
15
+ }
16
+
17
+ pre {
18
+ background-color: #eee;
19
+ padding: 10px;
20
+ font-size: 11px;
21
+ }
22
+
23
+ a {
24
+ color: #000;
25
+
26
+ &:visited {
27
+ color: #666;
28
+ }
29
+
30
+ &:hover {
31
+ color: #fff;
32
+ background-color: #000;
33
+ }
34
+ }
35
+
36
+ th {
37
+ padding-bottom: 5px;
38
+ }
39
+
40
+ td {
41
+ padding-bottom: 7px;
42
+ padding-left: 5px;
43
+ padding-right: 5px;
44
+ }
45
+
46
+ div {
47
+ &.field, &.actions {
48
+ margin-bottom: 10px;
49
+ }
50
+ }
51
+
52
+ #notice {
53
+ color: green;
54
+ }
55
+
56
+ .field_with_errors {
57
+ padding: 2px;
58
+ background-color: red;
59
+ display: table;
60
+ }
61
+
62
+ #error_explanation {
63
+ width: 450px;
64
+ border: 2px solid red;
65
+ padding: 7px;
66
+ padding-bottom: 0;
67
+ margin-bottom: 20px;
68
+ background-color: #f0f0f0;
69
+
70
+ h2 {
71
+ text-align: left;
72
+ font-weight: bold;
73
+ padding: 5px 5px 5px 15px;
74
+ font-size: 12px;
75
+ margin: -7px;
76
+ margin-bottom: 0;
77
+ background-color: #c00;
78
+ color: #fff;
79
+ }
80
+
81
+ ul li {
82
+ font-size: 12px;
83
+ list-style: square;
84
+ }
85
+ }
86
+
87
+ label {
88
+ display: block;
89
+ }