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,74 @@
|
|
1
|
+
class PostsController < ApplicationController
|
2
|
+
before_action :set_post, only: [:show, :edit, :update, :destroy]
|
3
|
+
|
4
|
+
# GET /posts
|
5
|
+
# GET /posts.json
|
6
|
+
def index
|
7
|
+
@posts = Post.all
|
8
|
+
end
|
9
|
+
|
10
|
+
# GET /posts/1
|
11
|
+
# GET /posts/1.json
|
12
|
+
def show
|
13
|
+
end
|
14
|
+
|
15
|
+
# GET /posts/new
|
16
|
+
def new
|
17
|
+
@post = Post.new
|
18
|
+
end
|
19
|
+
|
20
|
+
# GET /posts/1/edit
|
21
|
+
def edit
|
22
|
+
end
|
23
|
+
|
24
|
+
# POST /posts
|
25
|
+
# POST /posts.json
|
26
|
+
def create
|
27
|
+
@post = Post.new(post_params)
|
28
|
+
|
29
|
+
respond_to do |format|
|
30
|
+
if @post.save
|
31
|
+
format.html { redirect_to @post, notice: 'Post was successfully created.' }
|
32
|
+
format.json { render :show, status: :created, location: @post }
|
33
|
+
else
|
34
|
+
format.html { render :new }
|
35
|
+
format.json { render json: @post.errors, status: :unprocessable_entity }
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# PATCH/PUT /posts/1
|
41
|
+
# PATCH/PUT /posts/1.json
|
42
|
+
def update
|
43
|
+
respond_to do |format|
|
44
|
+
if @post.update(post_params)
|
45
|
+
format.html { redirect_to @post, notice: 'Post was successfully updated.' }
|
46
|
+
format.json { render :show, status: :ok, location: @post }
|
47
|
+
else
|
48
|
+
format.html { render :edit }
|
49
|
+
format.json { render json: @post.errors, status: :unprocessable_entity }
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# DELETE /posts/1
|
55
|
+
# DELETE /posts/1.json
|
56
|
+
def destroy
|
57
|
+
@post.destroy
|
58
|
+
respond_to do |format|
|
59
|
+
format.html { redirect_to posts_url, notice: 'Post was successfully destroyed.' }
|
60
|
+
format.json { head :no_content }
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
private
|
65
|
+
# Use callbacks to share common setup or constraints between actions.
|
66
|
+
def set_post
|
67
|
+
@post = Post.find(params[:id])
|
68
|
+
end
|
69
|
+
|
70
|
+
# Never trust parameters from the scary internet, only allow the white list through.
|
71
|
+
def post_params
|
72
|
+
params.require(:post).permit(:title, :body)
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Blog</title>
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
|
7
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
8
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
<%= yield %>
|
13
|
+
</body>
|
14
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<%= form_for(post) do |f| %>
|
2
|
+
<% if post.errors.any? %>
|
3
|
+
<div id="error_explanation">
|
4
|
+
<h2><%= pluralize(post.errors.count, "error") %> prohibited this post from being saved:</h2>
|
5
|
+
|
6
|
+
<ul>
|
7
|
+
<% post.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="field">
|
15
|
+
<%= f.label :title %>
|
16
|
+
<%= f.text_field :title %>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="field">
|
20
|
+
<%= f.label :body %>
|
21
|
+
<%= f.text_area :body %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="actions">
|
25
|
+
<%= f.submit %>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<h1>Posts</h1>
|
4
|
+
|
5
|
+
<table>
|
6
|
+
<thead>
|
7
|
+
<tr>
|
8
|
+
<th>Title</th>
|
9
|
+
<th>Body</th>
|
10
|
+
<th colspan="3"></th>
|
11
|
+
</tr>
|
12
|
+
</thead>
|
13
|
+
|
14
|
+
<tbody>
|
15
|
+
<% @posts.each do |post| %>
|
16
|
+
<tr>
|
17
|
+
<td><%= post.title %></td>
|
18
|
+
<td><%= post.body %></td>
|
19
|
+
<td><%= link_to 'Show', post %></td>
|
20
|
+
<td><%= link_to 'Edit', edit_post_path(post) %></td>
|
21
|
+
<td><%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
22
|
+
</tr>
|
23
|
+
<% end %>
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
<br>
|
28
|
+
|
29
|
+
<%= link_to 'New Post', new_post_path %>
|
@@ -0,0 +1 @@
|
|
1
|
+
json.array! @posts, partial: 'posts/post', as: :post
|
@@ -0,0 +1 @@
|
|
1
|
+
json.partial! "posts/post", post: @post
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
begin
|
3
|
+
load File.expand_path('../spring', __FILE__)
|
4
|
+
rescue LoadError => e
|
5
|
+
raise unless e.message.include?('spring')
|
6
|
+
end
|
7
|
+
APP_PATH = File.expand_path('../config/application', __dir__)
|
8
|
+
require_relative '../config/boot'
|
9
|
+
require 'rails/commands'
|
@@ -0,0 +1,34 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
require 'fileutils'
|
4
|
+
include FileUtils
|
5
|
+
|
6
|
+
# path to your application root.
|
7
|
+
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
8
|
+
|
9
|
+
def system!(*args)
|
10
|
+
system(*args) || abort("\n== Command #{args} failed ==")
|
11
|
+
end
|
12
|
+
|
13
|
+
chdir APP_ROOT do
|
14
|
+
# This script is a starting point to setup your application.
|
15
|
+
# Add necessary setup steps to this file.
|
16
|
+
|
17
|
+
puts '== Installing dependencies =='
|
18
|
+
system! 'gem install bundler --conservative'
|
19
|
+
system('bundle check') || system!('bundle install')
|
20
|
+
|
21
|
+
# puts "\n== Copying sample files =="
|
22
|
+
# unless File.exist?('config/database.yml')
|
23
|
+
# cp 'config/database.yml.sample', 'config/database.yml'
|
24
|
+
# end
|
25
|
+
|
26
|
+
puts "\n== Preparing database =="
|
27
|
+
system! 'bin/rails db:setup'
|
28
|
+
|
29
|
+
puts "\n== Removing old logs and tempfiles =="
|
30
|
+
system! 'bin/rails log:clear tmp:clear'
|
31
|
+
|
32
|
+
puts "\n== Restarting application server =="
|
33
|
+
system! 'bin/rails restart'
|
34
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# This file loads spring without using Bundler, in order to be fast.
|
4
|
+
# It gets overwritten when you run the `spring binstub` command.
|
5
|
+
|
6
|
+
unless defined?(Spring)
|
7
|
+
require 'rubygems'
|
8
|
+
require 'bundler'
|
9
|
+
|
10
|
+
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
|
11
|
+
if spring = lockfile.specs.detect { |spec| spec.name == "spring" }
|
12
|
+
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
13
|
+
gem 'spring', spring.version
|
14
|
+
require 'spring/binstub'
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
require 'fileutils'
|
4
|
+
include FileUtils
|
5
|
+
|
6
|
+
# path to your application root.
|
7
|
+
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
8
|
+
|
9
|
+
def system!(*args)
|
10
|
+
system(*args) || abort("\n== Command #{args} failed ==")
|
11
|
+
end
|
12
|
+
|
13
|
+
chdir APP_ROOT do
|
14
|
+
# This script is a way to update your development environment automatically.
|
15
|
+
# Add necessary update steps to this file.
|
16
|
+
|
17
|
+
puts '== Installing dependencies =='
|
18
|
+
system! 'gem install bundler --conservative'
|
19
|
+
system('bundle check') || system!('bundle install')
|
20
|
+
|
21
|
+
puts "\n== Updating database =="
|
22
|
+
system! 'bin/rails db:migrate'
|
23
|
+
|
24
|
+
puts "\n== Removing old logs and tempfiles =="
|
25
|
+
system! 'bin/rails log:clear tmp:clear'
|
26
|
+
|
27
|
+
puts "\n== Restarting application server =="
|
28
|
+
system! 'bin/rails restart'
|
29
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require_relative 'boot'
|
2
|
+
|
3
|
+
require "rails"
|
4
|
+
# Pick the frameworks you want:
|
5
|
+
require "active_model/railtie"
|
6
|
+
require "active_job/railtie"
|
7
|
+
# require "active_record/railtie"
|
8
|
+
require "action_controller/railtie"
|
9
|
+
require "action_mailer/railtie"
|
10
|
+
require "action_view/railtie"
|
11
|
+
require "action_cable/engine"
|
12
|
+
require "sprockets/railtie"
|
13
|
+
require "rails/test_unit/railtie"
|
14
|
+
|
15
|
+
# Require the gems listed in Gemfile, including any gems
|
16
|
+
# you've limited to :test, :development, or :production.
|
17
|
+
Bundler.require(*Rails.groups)
|
18
|
+
|
19
|
+
module Blog
|
20
|
+
class Application < Rails::Application
|
21
|
+
# Settings in config/environments/* take precedence over those specified here.
|
22
|
+
# Application configuration should go into files in config/initializers
|
23
|
+
# -- all .rb files in that directory are automatically loaded.
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
|
15
|
+
# Enable/disable caching. By default caching is disabled.
|
16
|
+
if Rails.root.join('tmp/caching-dev.txt').exist?
|
17
|
+
config.action_controller.perform_caching = true
|
18
|
+
|
19
|
+
config.cache_store = :memory_store
|
20
|
+
config.public_file_server.headers = {
|
21
|
+
'Cache-Control' => 'public, max-age=172800'
|
22
|
+
}
|
23
|
+
else
|
24
|
+
config.action_controller.perform_caching = false
|
25
|
+
|
26
|
+
config.cache_store = :null_store
|
27
|
+
end
|
28
|
+
|
29
|
+
# Don't care if the mailer can't send.
|
30
|
+
config.action_mailer.raise_delivery_errors = false
|
31
|
+
|
32
|
+
config.action_mailer.perform_caching = false
|
33
|
+
|
34
|
+
# Print deprecation notices to the Rails logger.
|
35
|
+
config.active_support.deprecation = :log
|
36
|
+
|
37
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
38
|
+
# This option may cause significant delays in view rendering with a large
|
39
|
+
# number of complex assets.
|
40
|
+
config.assets.debug = true
|
41
|
+
|
42
|
+
# Suppress logger output for asset requests.
|
43
|
+
config.assets.quiet = true
|
44
|
+
|
45
|
+
# Raises error for missing translations
|
46
|
+
# config.action_view.raise_on_missing_translations = true
|
47
|
+
|
48
|
+
# Use an evented file watcher to asynchronously detect changes in source code,
|
49
|
+
# routes, locales, etc. This feature depends on the listen gem.
|
50
|
+
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
51
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both threaded web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Disable serving static files from the `/public` folder by default since
|
18
|
+
# Apache or NGINX already handles this.
|
19
|
+
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
20
|
+
|
21
|
+
# Compress JavaScripts and CSS.
|
22
|
+
config.assets.js_compressor = :uglifier
|
23
|
+
# config.assets.css_compressor = :sass
|
24
|
+
|
25
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
26
|
+
config.assets.compile = false
|
27
|
+
|
28
|
+
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
29
|
+
|
30
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
31
|
+
# config.action_controller.asset_host = 'http://assets.example.com'
|
32
|
+
|
33
|
+
# Specifies the header that your server uses for sending files.
|
34
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
35
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
36
|
+
|
37
|
+
# Mount Action Cable outside main process or domain
|
38
|
+
# config.action_cable.mount_path = nil
|
39
|
+
# config.action_cable.url = 'wss://example.com/cable'
|
40
|
+
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
41
|
+
|
42
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
+
# config.force_ssl = true
|
44
|
+
|
45
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
46
|
+
# when problems arise.
|
47
|
+
config.log_level = :debug
|
48
|
+
|
49
|
+
# Prepend all log lines with the following tags.
|
50
|
+
config.log_tags = [ :request_id ]
|
51
|
+
|
52
|
+
# Use a different cache store in production.
|
53
|
+
# config.cache_store = :mem_cache_store
|
54
|
+
|
55
|
+
# Use a real queuing backend for Active Job (and separate queues per environment)
|
56
|
+
# config.active_job.queue_adapter = :resque
|
57
|
+
# config.active_job.queue_name_prefix = "blog_#{Rails.env}"
|
58
|
+
config.action_mailer.perform_caching = false
|
59
|
+
|
60
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
61
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
62
|
+
# config.action_mailer.raise_delivery_errors = false
|
63
|
+
|
64
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
65
|
+
# the I18n.default_locale when a translation cannot be found).
|
66
|
+
config.i18n.fallbacks = true
|
67
|
+
|
68
|
+
# Send deprecation notices to registered listeners.
|
69
|
+
config.active_support.deprecation = :notify
|
70
|
+
|
71
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
72
|
+
config.log_formatter = ::Logger::Formatter.new
|
73
|
+
|
74
|
+
# Use a different logger for distributed setups.
|
75
|
+
# require 'syslog/logger'
|
76
|
+
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
77
|
+
|
78
|
+
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
79
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
80
|
+
logger.formatter = config.log_formatter
|
81
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure public file server for tests with Cache-Control for performance.
|
16
|
+
config.public_file_server.enabled = true
|
17
|
+
config.public_file_server.headers = {
|
18
|
+
'Cache-Control' => 'public, max-age=3600'
|
19
|
+
}
|
20
|
+
|
21
|
+
# Show full error reports and disable caching.
|
22
|
+
config.consider_all_requests_local = true
|
23
|
+
config.action_controller.perform_caching = false
|
24
|
+
|
25
|
+
# Raise exceptions instead of rendering exception templates.
|
26
|
+
config.action_dispatch.show_exceptions = false
|
27
|
+
|
28
|
+
# Disable request forgery protection in test environment.
|
29
|
+
config.action_controller.allow_forgery_protection = false
|
30
|
+
config.action_mailer.perform_caching = false
|
31
|
+
|
32
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
33
|
+
# The :test delivery method accumulates sent emails in the
|
34
|
+
# ActionMailer::Base.deliveries array.
|
35
|
+
config.action_mailer.delivery_method = :test
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr.
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
|
40
|
+
# Raises error for missing translations
|
41
|
+
# config.action_view.raise_on_missing_translations = true
|
42
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|