groonga-client-model 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +13 -0
- data/lib/groonga-client-model.rb +1 -0
- data/lib/groonga_client_model/attribute_assignment.rb +34 -0
- data/lib/groonga_client_model/client.rb +1 -1
- data/lib/groonga_client_model/record.rb +37 -16
- data/lib/groonga_client_model/version.rb +1 -1
- data/test/apps/rails4/Gemfile +55 -0
- data/test/apps/rails4/Gemfile.lock +206 -0
- data/test/apps/rails4/README.md +24 -0
- data/test/apps/rails4/Rakefile +6 -0
- data/test/apps/rails4/app/assets/config/manifest.js +3 -0
- data/test/apps/rails4/app/assets/javascripts/application.js +16 -0
- data/test/apps/rails4/app/assets/javascripts/cable.js +13 -0
- data/test/apps/rails4/app/assets/javascripts/posts.coffee +3 -0
- data/test/apps/rails4/app/assets/stylesheets/application.css +15 -0
- data/test/apps/rails4/app/assets/stylesheets/posts.scss +3 -0
- data/test/apps/rails4/app/assets/stylesheets/scaffolds.scss +89 -0
- data/test/apps/rails4/app/channels/application_cable/channel.rb +4 -0
- data/test/apps/rails4/app/channels/application_cable/connection.rb +4 -0
- data/test/apps/rails4/app/controllers/application_controller.rb +3 -0
- data/test/apps/rails4/app/controllers/posts_controller.rb +74 -0
- data/test/apps/rails4/app/helpers/application_helper.rb +2 -0
- data/test/apps/rails4/app/helpers/posts_helper.rb +2 -0
- data/test/apps/rails4/app/jobs/application_job.rb +2 -0
- data/test/apps/rails4/app/mailers/application_mailer.rb +4 -0
- data/test/apps/rails4/app/models/post.rb +2 -0
- data/test/apps/rails4/app/views/layouts/application.html.erb +14 -0
- data/test/apps/rails4/app/views/layouts/mailer.html.erb +13 -0
- data/test/apps/rails4/app/views/layouts/mailer.text.erb +1 -0
- data/test/apps/rails4/app/views/posts/_form.html.erb +27 -0
- data/test/apps/rails4/app/views/posts/_post.json.jbuilder +2 -0
- data/test/apps/rails4/app/views/posts/edit.html.erb +6 -0
- data/test/apps/rails4/app/views/posts/index.html.erb +29 -0
- data/test/apps/rails4/app/views/posts/index.json.jbuilder +1 -0
- data/test/apps/rails4/app/views/posts/new.html.erb +5 -0
- data/test/apps/rails4/app/views/posts/show.html.erb +14 -0
- data/test/apps/rails4/app/views/posts/show.json.jbuilder +1 -0
- data/test/apps/rails4/bin/bundle +3 -0
- data/test/apps/rails4/bin/rails +9 -0
- data/test/apps/rails4/bin/rake +9 -0
- data/test/apps/rails4/bin/setup +34 -0
- data/test/apps/rails4/bin/spring +16 -0
- data/test/apps/rails4/bin/update +29 -0
- data/test/apps/rails4/config/application.rb +25 -0
- data/test/apps/rails4/config/boot.rb +3 -0
- data/test/apps/rails4/config/cable.yml +9 -0
- data/test/apps/rails4/config/environment.rb +5 -0
- data/test/apps/rails4/config/environments/development.rb +51 -0
- data/test/apps/rails4/config/environments/production.rb +83 -0
- data/test/apps/rails4/config/environments/test.rb +42 -0
- data/test/apps/rails4/config/groonga.yml +8 -0
- data/test/apps/rails4/config/initializers/application_controller_renderer.rb +6 -0
- data/test/apps/rails4/config/initializers/assets.rb +11 -0
- data/test/apps/rails4/config/initializers/backtrace_silencers.rb +7 -0
- data/test/apps/rails4/config/initializers/cookies_serializer.rb +5 -0
- data/test/apps/rails4/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/apps/rails4/config/initializers/inflections.rb +16 -0
- data/test/apps/rails4/config/initializers/mime_types.rb +4 -0
- data/test/apps/rails4/config/initializers/new_framework_defaults.rb +21 -0
- data/test/apps/rails4/config/initializers/session_store.rb +3 -0
- data/test/apps/rails4/config/initializers/wrap_parameters.rb +9 -0
- data/test/apps/rails4/config/locales/en.yml +23 -0
- data/test/apps/rails4/config/puma.rb +47 -0
- data/test/apps/rails4/config/routes.rb +4 -0
- data/test/apps/rails4/config/secrets.yml +22 -0
- data/test/apps/rails4/config/spring.rb +6 -0
- data/test/apps/rails4/config.ru +5 -0
- data/test/apps/rails4/db/schema.grn +9 -0
- data/test/apps/rails4/db/seeds.rb +7 -0
- data/test/apps/rails4/log/development.log +0 -0
- data/test/apps/rails4/log/test.log +207 -0
- data/test/apps/rails4/public/404.html +67 -0
- data/test/apps/rails4/public/422.html +67 -0
- data/test/apps/rails4/public/500.html +66 -0
- data/test/apps/rails4/public/apple-touch-icon-precomposed.png +0 -0
- data/test/apps/rails4/public/apple-touch-icon.png +0 -0
- data/test/apps/rails4/public/favicon.ico +0 -0
- data/test/apps/rails4/public/robots.txt +5 -0
- data/test/apps/rails4/test/controllers/posts_controller_test.rb +50 -0
- data/test/apps/rails4/test/factories/posts.rb +6 -0
- data/test/apps/rails4/test/test_helper.rb +9 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/0I/0Ihy3SE8nTe---ZtfB9WjKd6UOgmtLFlyhbw1R2BDFs.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/0M/0M4bZ4tQh0MQYZMb72U5yr-ELStAsUSb8akkTME9TPM.cache +3 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/0g/0gB1rYz79RuAa43DzVci1GUjc5so0F1dU_LyLSmm3oQ.cache +3 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/17/17ACx-zXgzaAZBriGH5oeRJJ9hMIlwP9bWBPlEMoY-0.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/6a/6ae9A4LxsOF8WxXqTRrY_OfmiKLzuX-k8CdxcYhyH2w.cache +3 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/6r/6rrJLZY0-_gdJxgMUZBZIn-wf8bPVArYjXhIIrt_O5Y.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/8Z/8Zm1d9-lBPsGG_HUw8FP2OCCVucGDVhWAOGaopvOdss.cache +3 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/8d/8dPRKWI4by88Sxw2Ybxs2Y3jz-1b6FQAc1e3i1ve5go.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/8i/8iQwPHnNGnDGUJBtgrVMB7FceEuaXnCBF1671S9jJgo.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/B6/B6nLb8yGukrJQUpa3aPtLwrmBPnh2_8ZFkSTc5T8c0k.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Bh/BhBHwSo9EwfIYTDkA21FIndZkPsZ28CYARi4iBDw608.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Bj/BjttQ669rtLFSU4Oq7YxTtumvpgsHKREjOND3HIVJx8.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Bx/BxzoG0KxeNLac4xTNeJv3qfeytbNBw58xj2zD-xdbrE.cache +2 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/C3/C3hMQl1ywl9gQ3OFdiiVc8l1y2gP7GWN37t9DDEaoy4.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/FT/FTiuNlnEJN59jNEEgEfQazsLhj_YTdIQnCuFC2EM7qw.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/JX/JXqwLmb9hlO9nmp2kJYEcKaKy9RMO-HxwnptsiVAADc.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/K9/K9G8c-hzp4a8xRtPMnSQf6bsziHMznJz-OvHDz7w3rE.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Kq/KqsxRPBMXWQubUa9Ab4tmgT4j4DM5-A89_rh15MNlmI.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Kz/KznX4kBl2yjCE-XZL5bNAJ0xXrLVL6nJEJWMYLY3X7I.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/N1/N1cFx1cQirDbaPCgGKbLjIcxsOM8ODiP98PZWSHDzyE.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/QH/QHW6bVAXmJeybTQiApxxYej1wQkNigo-KRbnXDwd1Mk.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/R7/R7bSW7yrMkNVznGUpcDS6MXM3ZziGA7RrQGogNiuVTA.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/RH/RHIJ8umE9bWwt5xXi8SJ4RYpZqFvt88JBVNo4lTPg0U.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Rt/Rtg9DogJyyU6DIW9gV2GCVTWMF0GYLevAVNvv3bEDeI.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Ru/Ru1MOhJ8ZzL7pBzPr_QeTTd0LnfWx4DcM0iVcL4cTzo.cache +2 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/S3/S3OZbpxIypECjqQj77Gb9Oc6A-q0U1fKpzMbPVMoubk.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Si/Sin6bEoASrNa45108CpfgF2jcifz-KpbsvvZJtqVZ68.cache +3 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/VQ/VQNk5aqOyF22mFE5NhdDjfBZeFpSfgaaZdyngvHYi48.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Vw/Vwgy4zAZLGHF9RslYQ40wbF7NYW47NDE0wcA7T3HwxI.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/W9/W9OEjda3McVaqzRMNGzY4zMzGFKwy-JYer2dt7dxRjQ.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/XJ/XJRPx7aZ4ajZ72O37hx53ZFkfXSHpDDpCy78LI0leqM.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Ya/YayMISAqD-Y3vBFywwKrXbUovGf5o77HUF5s8mnQgO0.cache +2 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Zs/Zs96XWLbB-Sp-R9P31ArcdU7j6VL_RBI-SwpwTE_TZA.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/Zv/ZvCEW2ZyS-k4cHH7Gd8P2nKFE9Uh1VOrfR-1PYY2yz8.cache +5 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/a5/a5Ai9QXaiRRSN7BXZZ3eZSL8mbwrdOKNM9Hco1Bp498.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/aa/aaHS7n54GBP_AiELufudftqA7C4tZhFBH9VGYdybJr8.cache +2 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/bM/bMMUbhA2nFZ9dHAnzKZsPzKVcv-UlAWaVq92COmAHwI.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/cc/ccFbs28DWObwrW_wnGA4cU9RmsKrBzb5xDaMu1-5QOo.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/d8/d80_M7rvPV-A1sCjIEhieR5jS353S0hCykiWL6Qoy7Q.cache +3 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/do/doMYM14rQvSD5lPwCGe0ULzbXBwyBM-f1jOE0MzmEs4.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/eA/eA_fQgrHsn-vD9XeNQyC8335oMP8k0cnmerzHzjEwLQ.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/eQ/eQxzX_D16-XyOt1WTkYEC0qDvRbjXcCgQgnd9pBrg7o.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/gl/glrAgaE6JUHFNGuQsy5qakLJ2Sjmq-O09QX7cJklxP4.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/jt/jtP0R1pGResPYdA6O4Ph5x0W0T1If9yb0sRFijAemLY.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/kz/kzw210ITXFWNFV8kw5e-_kRlpS48lGotSQWKPlUfMJ4.cache +3 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/mA/mAWsnX7Peh_B8DPSBTB4f9Yr4LFtZwOf5prl05GZY3g.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/mX/mXbxFiGMdcA3j1srHRMPEBxhXw8udKgsNtXk6_Zl5ts.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/nf/nfIObnkUaxVC6zkWxRI2Mzau2JKMWf2ii3dr0Q0IvNk.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/rF/rF2vahiCQKUhJ8McEG0p8B7csWsz-dL13EQ7r2APOxc.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/tH/tHi6ifML6NOeHhumbOb5hc1QFREX-LhACtiUhS54YPQ.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/u3/u3DEuOZf5FZ_vumprxhkeIsi2jzeDJRxtjYbqNJ13wQ.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/u_/u_yfB9bAyTK1suTw3FxVxx4Lv0U31dIL1G0uX9R9byU.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/vH/vHuuPjMkmfpQ2eqHofMJprX6McDX-BRf-OZLe-Zy0uM.cache +0 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/wq/wqEwEzqpIhD5Ie3bMy9VSp3TZI4lqTUROqfAYdpO83g.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +2 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/yO/yO6BxW_KpdFMPjQgywUZXxLvdVM639GnboZKUb3K7kA.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/yZ/yZz4rIdiAxAUWJ7Io7t9ZdVN8fjEjgzn8MfNKrBdIR0.cache +1 -0
- data/test/apps/rails4/tmp/cache/assets/sprockets/v3.0/zQ/zQ9ej9LKS_XIns0yfDEKXZaCGO7n1sA2dRjIsPO9Krg.cache +1 -0
- data/test/apps/rails5/Gemfile.lock +37 -37
- data/test/apps/rails5/config/groonga.yml +1 -1
- data/test/apps/rails5/log/test.log +304 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/0s/0s0CsN3A9OzlsSdxdmQ8dowd6eB6pf89sskfcRwvj5U.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/30/30KT5QAalVCZ4YvGLiiqiwP8Nqarv9udTdHtvrO1tyY.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/3V/3VDW3Icf6dS8Wm81X2o6wpM2X_XBbxJ1GXVAmLMPkmQ.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/4N/4NSeDEGAGtTIlzShWYtQoKzyH2QCRAO29qbgVDm9EHc.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/7P/7PLLteF-xRpzxWZ5mfsgpvDtMftNnVQTuilTHNhuDNw.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/8Z/8Zm1d9-lBPsGG_HUw8FP2OCCVucGDVhWAOGaopvOdss.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/9i/9itFsz5eUi8gqKJUF2kc_ZCs0yTbyTRsy6vKnuT4abo.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/9y/9yohFvm-NgNxUQFrNQBmjkAxlx8hn7PQL1ouGd4yuf0.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/AD/ADg2PwebqPG6ZRaIo793X-ZEq_cUTncVCjXDyA2izhM.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Bg/Bgg_bbbuLxSs2CjZirqEYC2JoUYuJfAoozk2TvlgNI8.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Bx/BxzoG0KxeNLac4xTNeJv3qfeytbNBw58xj2zD-xdbrE.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Ea/EaVyDKPRPVHf6wyOvkuC5lEVTUz2zUxP1e-OZPomAco.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Gn/Gn4-OV-Ub-1WU1rfSESegkd5Mms4fD9YNzpLf0-_yIc.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/HC/HCkUr7-RfXS_VnsyAI9lZXpDZQUtsb2Kzqw--oBwgDU.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Hv/HvIE7Q-Grd2gs_C3I_njPrdpyA1ioXimnKlJ4o1F3kE.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Jj/JjD2HFU-vCk0D_SH68tmIVObhruQFXaE9Kk0IERK3V4.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Jv/JvtMzKIbNrhefiinEmmIElZwtpRqTONm4tpiKnqPTcs.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Kj/KjRyQjQD7AxkE5EaRozI7wI97Iof2F3CwmUMPLpECNE.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Lc/LcPT1gtyFWe7MSPy-gJCDXZAwWStOk9GxGM77JARVzc.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Lh/LhyvxY5uggGRDtBr5Oh5yXF5Hqhw1P-jwI3t-WALBtA.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/MO/MO4HmeMSIc2bqrVptzZUc-NLW1zuvOH8d3qWtEpD_yQ.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Om/OmZUvZCK4Ba1-rUY9PMDdsUQeaK5uKRm4rHVxfET6uQ.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/PG/PG8sM7Hi4hVGDvUPiuaRngLWMiZdxIgb0YXjj4iH-5A.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Pv/Pvz39euzn5iyXOTnsoC4L2Uuym-HYB0wfHCS14blC1k.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Q9/Q9duhZbKClj2yMCDfcfVardDtcN8L_O_0vWOSghO-Wc.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/QT/QTy35aJ8utBQ7tWPGP-wkH1gQFDw9PfDR6IL-ioARdI.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Rr/Rraj9_-3Y0hyX_ydNEYeZZjgRnpcTsaN2g8sBdAr0U4.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/SN/SNLpl8dBME7slRhucvmV_kjMQImk-VGiILaga5lEcBM.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/UA/UA-vI1pm6jjLk0HMTm32_Q8qSf6kl82Zqp4qHppaHTs.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Un/UnQckkSJxEgp7_0qcxAV0fVb-a1mMjjYgRZnYSqJVL4.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/VG/VGXrEvduCU_m46nDkclIvkz88q3U5XCR90Obpr4fAmI.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Vq/VqGlg41jzPe2xOKQT51XO0neCFahsFpYti3npqW_h5k.cache +3 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/X-/X-qNf54ppJDRBAw7DAsCGjKRMxYoNSukheQbSa8bH3I.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Xa/XarP8tNYI88ANDMIKJowbKzLrr5F-ySuKjVJxxYfFQY.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Xx/XxNbAR75-XymAhH_LmVcuEz6fWG8y1c8mCBDuE_Lw1A.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Y4/Y46f-2WDyv-1cajT0yd_TLvjuKSTna_LEIBFXu2HEH0.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Ya/YayMISAqD-Y3vBFywwKrXbUovGf5o77HUF5s8mnQgO0.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/Yi/Yi0o2OVzxzXYcS4Ub-BSXroo-1Hz963XYivzOqycA2k.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/a1/a1JkQNR-jIzpBc0YgSxNy1z6TmEk-18wELusp6uwMnY.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/aM/aMGeDsD2r6O1qpZOxjRFsihutyeMTwq_QqjOursdoi8.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/bL/bL5Zo79Q4uDkuHnSm2KXLE-T4Gq9pHXlqKUJ-JX7cmo.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/cC/cCKlO1m4XweKwETyD8B1rt2TjgJ7113m1qZPPp_HxoM.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/dE/dEXfv0V0k-NpSIhAUCYAWfi4BlVLZ4jH9E86cfulZWw.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/ez/eznA6dAb37VMBY614_p4GZE5YDkrwo3vb_QErDJ_LRk.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/f2/f2mtjZUY1ekuJsLvcJMC12c-4hV61BEh0XLA61fCswM.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/f8/f84jEUeiI_nJG_gDCh_hn-7aTSp48c_2IhLt_9WMdFI.cache +2 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/gS/gSZA8EU-m-fEUCSprxEMM-Bhri0ZwAssFKIelou0AEo.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/gT/gTan-pp1QHaUce9f0ZkC1enUYJDAlPfuija3jRTFC3o.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/gm/gmeq3PfpFbfe2L0ijWzw1Dzny6T-kD3zREQjh6XGs-o.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/i5/i5my_eWq7Zxc_Z_g1vQvOiA0IDmHuZFZBTWT3QCQfg8.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/i8/i8vRVFNFxJovAswEUH2cn2cgoNCHw64tAX1qrCHZ10Y.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/iY/iYOJpcZoyFigS_1MWM1kis69W76vWExf8Y0kyxjtOx8.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/jH/jHgUm9vqtCJw2D5t6vif1pgjzQJvHJVfPRAx7OAv73A.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/jc/jcmeyhSsE7F1ULqySegf56khUqvo4XkYET6Szgm3Bvk.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/k3/k3hQdQKe9nbevuKy3ORynP3MJAGvGh4UjtUBjBZlreU.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/kN/kN7p5Yd60hzqNW9AI3Cs01-31udA8OfmlMbCDCTALWs.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/kz/kzw210ITXFWNFV8kw5e-_kRlpS48lGotSQWKPlUfMJ4.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/lU/lUMILltXZTewdRkBDoaTN8YqP2HTEgG8pRHm-uwXGq8.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/l_/l_QAY97rLv-9sDaYoANaYoZ4ArK85m2kR4mGtFGUDbk.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/op/opvu3owuWCWLT2O2_NoG3_DQxo7jyuBfc1hgX6TxTIk.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/qa/qaiQhgwOdNAN8CFIUKYPG2wuHgams4R7ps30keggv0k.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/qv/qvz_zCaGhbxQok2cVfGrxJ2ZBHU7Z-tlQTyBlDONreM.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/r6/r6fqdvX67B754iGVsiI7VU4QYonMVkvxOsMGEt01HOE.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/rQ/rQuxS1p9usX_LSXmj2xZTRKTl7gbNHMIjItSLhBiYFo.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/s0/s04L41mt9STCFF5OjeU0iwkQDaKri9_wk09iD_tu8fE.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/tU/tUS580Jgk3Hpsg7T-1ZSyBoU0UlbXMyQFcXZpm_55-M.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/ww/ww8c31pBJogAMzLW_GZoB1mbaqeYq2fxbqW562M8u8E.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +0 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/xz/xz1wFbuw3Hm5tdgXrfvHPyJi5K-UxslzlGC8_-G68rc.cache +1 -0
- data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/zF/zFTGe9WA9MEh0BiglNQK18x4EAmZtMZ5blWdfcyb_CY.cache +3 -0
- data/test/unit/test_record.rb +41 -0
- metadata +399 -2
@@ -0,0 +1,21 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains migration options to ease your Rails 5.0 upgrade.
|
4
|
+
#
|
5
|
+
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
6
|
+
|
7
|
+
# Enable per-form CSRF tokens. Previous versions had false.
|
8
|
+
Rails.application.config.action_controller.per_form_csrf_tokens = true
|
9
|
+
|
10
|
+
# Enable origin-checking CSRF mitigation. Previous versions had false.
|
11
|
+
Rails.application.config.action_controller.forgery_protection_origin_check = true
|
12
|
+
|
13
|
+
# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
|
14
|
+
# Previous versions had false.
|
15
|
+
ActiveSupport.to_time_preserves_timezone = true
|
16
|
+
|
17
|
+
# Do not halt callback chains when a callback returns false. Previous versions had true.
|
18
|
+
ActiveSupport.halt_callback_chains_on_return_false = false
|
19
|
+
|
20
|
+
# Configure SSL options to enable HSTS with subdomains. Previous versions had false.
|
21
|
+
Rails.application.config.ssl_options = { hsts: { subdomains: true } }
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum, this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
|
8
|
+
threads threads_count, threads_count
|
9
|
+
|
10
|
+
# Specifies the `port` that Puma will listen on to receive requests, default is 3000.
|
11
|
+
#
|
12
|
+
port ENV.fetch("PORT") { 3000 }
|
13
|
+
|
14
|
+
# Specifies the `environment` that Puma will run in.
|
15
|
+
#
|
16
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
17
|
+
|
18
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
19
|
+
# Workers are forked webserver processes. If using threads and workers together
|
20
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
21
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
22
|
+
# processes).
|
23
|
+
#
|
24
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
25
|
+
|
26
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
27
|
+
# This directive tells Puma to first boot the application and load code
|
28
|
+
# before forking the application. This takes advantage of Copy On Write
|
29
|
+
# process behavior so workers use less memory. If you use this option
|
30
|
+
# you need to make sure to reconnect any threads in the `on_worker_boot`
|
31
|
+
# block.
|
32
|
+
#
|
33
|
+
# preload_app!
|
34
|
+
|
35
|
+
# The code in the `on_worker_boot` will be called if you are using
|
36
|
+
# clustered mode by specifying a number of `workers`. After each worker
|
37
|
+
# process is booted this block will be run, if you are using `preload_app!`
|
38
|
+
# option you will want to use this block to reconnect to any threads
|
39
|
+
# or connections that may have been created at application boot, Ruby
|
40
|
+
# cannot share connections between processes.
|
41
|
+
#
|
42
|
+
# on_worker_boot do
|
43
|
+
# ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
|
44
|
+
# end
|
45
|
+
|
46
|
+
# Allow puma to be restarted by `rails restart` command.
|
47
|
+
plugin :tmp_restart
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rails secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: bc32332a8b499eea2e1ffed5ff535148985b414437acc2a1ea4259a2d365136919a0898ba75f370cf5ef47fcf8aa544aa68f121bd9998c1f0b33f98f266485d4
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: c7b122c8ac22d2a79487ee76493ee1ae11bd8c4fcfe2d43f61af7c6bf90011e039afa8c7650c876ea8c17a45000e666ea8a0fd0eff3a63951563eef9b41c183e
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
table_create posts TABLE_NO_KEY
|
2
|
+
|
3
|
+
column_create posts title COLUMN_SCALAR ShortText
|
4
|
+
column_create posts body COLUMN_SCALAR Text
|
5
|
+
|
6
|
+
table_create terms TABLE_PAT_KEY ShortText \
|
7
|
+
--default_tokenizer TokenBigram \
|
8
|
+
--normalizer NormalizerAuto
|
9
|
+
column_create terms posts_body COLUMN_INDEX|WITH_POSITION posts body
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
|
7
|
+
# Character.create(name: 'Luke', movie: movies.first)
|
File without changes
|
@@ -0,0 +1,207 @@
|
|
1
|
+
-----------------------------------------
|
2
|
+
PostsControllerTest: test_should_get_edit
|
3
|
+
-----------------------------------------
|
4
|
+
----------------------------------------
|
5
|
+
PostsControllerTest: test_should_get_new
|
6
|
+
----------------------------------------
|
7
|
+
--------------------------------------------
|
8
|
+
PostsControllerTest: test_should_update_post
|
9
|
+
--------------------------------------------
|
10
|
+
--------------------------------------------
|
11
|
+
PostsControllerTest: test_should_create_post
|
12
|
+
--------------------------------------------
|
13
|
+
---------------------------------------------
|
14
|
+
PostsControllerTest: test_should_destroy_post
|
15
|
+
---------------------------------------------
|
16
|
+
------------------------------------------
|
17
|
+
PostsControllerTest: test_should_get_index
|
18
|
+
------------------------------------------
|
19
|
+
------------------------------------------
|
20
|
+
PostsControllerTest: test_should_show_post
|
21
|
+
------------------------------------------
|
22
|
+
------------------------------------------
|
23
|
+
PostsControllerTest: test_should_get_index
|
24
|
+
------------------------------------------
|
25
|
+
------------------------------------------
|
26
|
+
PostsControllerTest: test_should_show_post
|
27
|
+
------------------------------------------
|
28
|
+
---------------------------------------------
|
29
|
+
PostsControllerTest: test_should_destroy_post
|
30
|
+
---------------------------------------------
|
31
|
+
--------------------------------------------
|
32
|
+
PostsControllerTest: test_should_update_post
|
33
|
+
--------------------------------------------
|
34
|
+
----------------------------------------
|
35
|
+
PostsControllerTest: test_should_get_new
|
36
|
+
----------------------------------------
|
37
|
+
--------------------------------------------
|
38
|
+
PostsControllerTest: test_should_create_post
|
39
|
+
--------------------------------------------
|
40
|
+
-----------------------------------------
|
41
|
+
PostsControllerTest: test_should_get_edit
|
42
|
+
-----------------------------------------
|
43
|
+
--------------------------------------------
|
44
|
+
PostsControllerTest: test_should_update_post
|
45
|
+
--------------------------------------------
|
46
|
+
--------------------------------------------
|
47
|
+
PostsControllerTest: test_should_create_post
|
48
|
+
--------------------------------------------
|
49
|
+
------------------------------------------
|
50
|
+
PostsControllerTest: test_should_show_post
|
51
|
+
------------------------------------------
|
52
|
+
---------------------------------------------
|
53
|
+
PostsControllerTest: test_should_destroy_post
|
54
|
+
---------------------------------------------
|
55
|
+
-----------------------------------------
|
56
|
+
PostsControllerTest: test_should_get_edit
|
57
|
+
-----------------------------------------
|
58
|
+
------------------------------------------
|
59
|
+
PostsControllerTest: test_should_get_index
|
60
|
+
------------------------------------------
|
61
|
+
----------------------------------------
|
62
|
+
PostsControllerTest: test_should_get_new
|
63
|
+
----------------------------------------
|
64
|
+
------------------------------------------
|
65
|
+
PostsControllerTest: test_should_show_post
|
66
|
+
------------------------------------------
|
67
|
+
-----------------------------------------
|
68
|
+
PostsControllerTest: test_should_get_edit
|
69
|
+
-----------------------------------------
|
70
|
+
----------------------------------------
|
71
|
+
PostsControllerTest: test_should_get_new
|
72
|
+
----------------------------------------
|
73
|
+
------------------------------------------
|
74
|
+
PostsControllerTest: test_should_get_index
|
75
|
+
------------------------------------------
|
76
|
+
---------------------------------------------
|
77
|
+
PostsControllerTest: test_should_destroy_post
|
78
|
+
---------------------------------------------
|
79
|
+
--------------------------------------------
|
80
|
+
PostsControllerTest: test_should_update_post
|
81
|
+
--------------------------------------------
|
82
|
+
--------------------------------------------
|
83
|
+
PostsControllerTest: test_should_create_post
|
84
|
+
--------------------------------------------
|
85
|
+
-----------------------------------------
|
86
|
+
PostsControllerTest: test_should_get_edit
|
87
|
+
-----------------------------------------
|
88
|
+
----------------------------------------
|
89
|
+
PostsControllerTest: test_should_get_new
|
90
|
+
----------------------------------------
|
91
|
+
---------------------------------------------
|
92
|
+
PostsControllerTest: test_should_destroy_post
|
93
|
+
---------------------------------------------
|
94
|
+
------------------------------------------
|
95
|
+
PostsControllerTest: test_should_show_post
|
96
|
+
------------------------------------------
|
97
|
+
--------------------------------------------
|
98
|
+
PostsControllerTest: test_should_update_post
|
99
|
+
--------------------------------------------
|
100
|
+
--------------------------------------------
|
101
|
+
PostsControllerTest: test_should_create_post
|
102
|
+
--------------------------------------------
|
103
|
+
------------------------------------------
|
104
|
+
PostsControllerTest: test_should_get_index
|
105
|
+
------------------------------------------
|
106
|
+
--------------------------------------------
|
107
|
+
PostsControllerTest: test_should_create_post
|
108
|
+
--------------------------------------------
|
109
|
+
-----------------------------------------
|
110
|
+
PostsControllerTest: test_should_get_edit
|
111
|
+
-----------------------------------------
|
112
|
+
------------------------------------------
|
113
|
+
PostsControllerTest: test_should_show_post
|
114
|
+
------------------------------------------
|
115
|
+
---------------------------------------------
|
116
|
+
PostsControllerTest: test_should_destroy_post
|
117
|
+
---------------------------------------------
|
118
|
+
------------------------------------------
|
119
|
+
PostsControllerTest: test_should_get_index
|
120
|
+
------------------------------------------
|
121
|
+
----------------------------------------
|
122
|
+
PostsControllerTest: test_should_get_new
|
123
|
+
----------------------------------------
|
124
|
+
--------------------------------------------
|
125
|
+
PostsControllerTest: test_should_update_post
|
126
|
+
--------------------------------------------
|
127
|
+
------------------------------------------
|
128
|
+
PostsControllerTest: test_should_get_index
|
129
|
+
------------------------------------------
|
130
|
+
---------------------------------------------
|
131
|
+
PostsControllerTest: test_should_destroy_post
|
132
|
+
---------------------------------------------
|
133
|
+
----------------------------------------
|
134
|
+
PostsControllerTest: test_should_get_new
|
135
|
+
----------------------------------------
|
136
|
+
--------------------------------------------
|
137
|
+
PostsControllerTest: test_should_create_post
|
138
|
+
--------------------------------------------
|
139
|
+
-----------------------------------------
|
140
|
+
PostsControllerTest: test_should_get_edit
|
141
|
+
-----------------------------------------
|
142
|
+
------------------------------------------
|
143
|
+
PostsControllerTest: test_should_show_post
|
144
|
+
------------------------------------------
|
145
|
+
--------------------------------------------
|
146
|
+
PostsControllerTest: test_should_update_post
|
147
|
+
--------------------------------------------
|
148
|
+
---------------------------------------------
|
149
|
+
PostsControllerTest: test_should_destroy_post
|
150
|
+
---------------------------------------------
|
151
|
+
Started DELETE "/posts/1" for 127.0.0.1 at 2016-12-27 15:07:51 +0900
|
152
|
+
Processing by PostsController#destroy as HTML
|
153
|
+
Parameters: {"id"=>"1"}
|
154
|
+
Redirected to http://www.example.com/posts
|
155
|
+
Completed 302 Found in 180ms
|
156
|
+
----------------------------------------
|
157
|
+
PostsControllerTest: test_should_get_new
|
158
|
+
----------------------------------------
|
159
|
+
Started GET "/posts/new" for 127.0.0.1 at 2016-12-27 15:07:51 +0900
|
160
|
+
Processing by PostsController#new as HTML
|
161
|
+
Rendering posts/new.html.erb within layouts/application
|
162
|
+
Rendered posts/_form.html.erb (30.5ms)
|
163
|
+
Rendered posts/new.html.erb within layouts/application (37.8ms)
|
164
|
+
Completed 200 OK in 849ms (Views: 848.3ms)
|
165
|
+
--------------------------------------------
|
166
|
+
PostsControllerTest: test_should_update_post
|
167
|
+
--------------------------------------------
|
168
|
+
Started PATCH "/posts/1" for 127.0.0.1 at 2016-12-27 15:07:52 +0900
|
169
|
+
Processing by PostsController#update as HTML
|
170
|
+
Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}, "id"=>"1"}
|
171
|
+
Redirected to http://www.example.com/posts/1
|
172
|
+
Completed 302 Found in 31ms
|
173
|
+
--------------------------------------------
|
174
|
+
PostsControllerTest: test_should_create_post
|
175
|
+
--------------------------------------------
|
176
|
+
Started POST "/posts" for 127.0.0.1 at 2016-12-27 15:07:52 +0900
|
177
|
+
Processing by PostsController#create as HTML
|
178
|
+
Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}}
|
179
|
+
Redirected to http://www.example.com/posts/2
|
180
|
+
Completed 302 Found in 3ms
|
181
|
+
-----------------------------------------
|
182
|
+
PostsControllerTest: test_should_get_edit
|
183
|
+
-----------------------------------------
|
184
|
+
Started GET "/posts/1/edit" for 127.0.0.1 at 2016-12-27 15:07:52 +0900
|
185
|
+
Processing by PostsController#edit as HTML
|
186
|
+
Parameters: {"id"=>"1"}
|
187
|
+
Rendering posts/edit.html.erb within layouts/application
|
188
|
+
Rendered posts/_form.html.erb (2.6ms)
|
189
|
+
Rendered posts/edit.html.erb within layouts/application (3.7ms)
|
190
|
+
Completed 200 OK in 36ms (Views: 7.2ms)
|
191
|
+
------------------------------------------
|
192
|
+
PostsControllerTest: test_should_get_index
|
193
|
+
------------------------------------------
|
194
|
+
Started GET "/posts" for 127.0.0.1 at 2016-12-27 15:07:52 +0900
|
195
|
+
Processing by PostsController#index as HTML
|
196
|
+
Rendering posts/index.html.erb within layouts/application
|
197
|
+
Rendered posts/index.html.erb within layouts/application (3.1ms)
|
198
|
+
Completed 200 OK in 7ms (Views: 6.7ms)
|
199
|
+
------------------------------------------
|
200
|
+
PostsControllerTest: test_should_show_post
|
201
|
+
------------------------------------------
|
202
|
+
Started GET "/posts/1" for 127.0.0.1 at 2016-12-27 15:07:52 +0900
|
203
|
+
Processing by PostsController#show as HTML
|
204
|
+
Parameters: {"id"=>"1"}
|
205
|
+
Rendering posts/show.html.erb within layouts/application
|
206
|
+
Rendered posts/show.html.erb within layouts/application (0.9ms)
|
207
|
+
Completed 200 OK in 36ms (Views: 3.9ms)
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class PostsControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
include GroongaClientModel::TestHelper
|
5
|
+
|
6
|
+
setup do
|
7
|
+
@post = create(:post)
|
8
|
+
end
|
9
|
+
|
10
|
+
test "should get index" do
|
11
|
+
get posts_url
|
12
|
+
assert_response :success
|
13
|
+
end
|
14
|
+
|
15
|
+
test "should get new" do
|
16
|
+
get new_post_url
|
17
|
+
assert_response :success
|
18
|
+
end
|
19
|
+
|
20
|
+
test "should create post" do
|
21
|
+
assert_difference('Post.count') do
|
22
|
+
post posts_url, params: { post: { body: @post.body, title: @post.title } }
|
23
|
+
end
|
24
|
+
|
25
|
+
assert_redirected_to post_url(Post.last)
|
26
|
+
end
|
27
|
+
|
28
|
+
test "should show post" do
|
29
|
+
get post_url(@post)
|
30
|
+
assert_response :success
|
31
|
+
end
|
32
|
+
|
33
|
+
test "should get edit" do
|
34
|
+
get edit_post_url(@post)
|
35
|
+
assert_response :success
|
36
|
+
end
|
37
|
+
|
38
|
+
test "should update post" do
|
39
|
+
patch post_url(@post), params: { post: { body: @post.body, title: @post.title } }
|
40
|
+
assert_redirected_to post_url(@post)
|
41
|
+
end
|
42
|
+
|
43
|
+
test "should destroy post" do
|
44
|
+
assert_difference('Post.count', -1) do
|
45
|
+
delete post_url(@post)
|
46
|
+
end
|
47
|
+
|
48
|
+
assert_redirected_to posts_url
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
require 'groonga_client_model/test_helper'
|
5
|
+
|
6
|
+
class ActiveSupport::TestCase
|
7
|
+
# Add more helper methods to be used by all tests here...
|
8
|
+
include FactoryGirl::Syntax::Methods
|
9
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
"%O�n�%�wn���$R�P�{ ՠ��=����
|