rake_dashboard 0.0.0 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -0
- data/README.md +13 -1
- data/Rakefile +12 -0
- data/app/assets/javascripts/rake_dashboard/application.js +15 -0
- data/app/controllers/rake_dashboard/tasks_controller.rb +18 -0
- data/app/views/layouts/rake_dashboard/application.html.erb +0 -1
- data/app/views/rake_dashboard/tasks/create.html.erb +2 -0
- data/app/views/rake_dashboard/tasks/index.html.erb +5 -0
- data/config/routes.rb +1 -0
- data/lib/rake_dashboard/engine.rb +8 -0
- data/lib/rake_dashboard/version.rb +1 -1
- data/lib/rake_dashboard.rb +1 -1
- data/rake_dashboard.gemspec +9 -0
- data/spec/controllers/rake_dashboard/tasks_controller_spec.rb +58 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +29 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +9 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +35 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +1 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/rake_dashboard.rb +2 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/schema.rb +16 -0
- data/spec/dummy/log/development.log +1934 -0
- data/spec/dummy/log/test.log +1142 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1_uRTMF1qdhm0NfH13c44aB9C8IojJ8eDX35ZpU_xmc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1tzYgfK3EyahT7c_wktVg_ftw1FmbvmNBjAYE0On1ms.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2mentctqRHPrTMh2ayd3pCIpaBOXEkbsLC8NWbMUcns.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/3wqRoT7Y7y0ZRF-UZ_n0BsEHiZiLrlstno6OjeB7jm4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/4NC6Q__oC78YwPILhWAefTesbA-VruoXWvC89VWQxAc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5AsV8ZpqRg_erO00OjXFzsR8VaPfS2htMfxKFj6_X2s.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5LHEU13LEDdnW1_y9Em8i6mJsLRHiPOPXs3vOYjIDsU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5q3-mxYHRoel0-ehe-1YaNVj0c3eH9H6acyapWSF4-k.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/69M7KPgxBb2l5ViiypGvL4sGCCgGscRHP83InCevn54.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7dvgF4AFR79Z-5gIIj3tnHl_aXhK4FqjNboym2RvZT4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9CO4VOFnf3epuDMW2iGAWgfN77AL4GhpzQZhg-EA8xU.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9apsxoxyPXA4KHYSCWMkJPa0Jn1PA7sKxrl9gzYIZrw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9i63zTmp5aIutD2dcfXTernJnkbun2_7RHyuXJDq7yg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9o9gmbTOdtNcknjXXgxUlQ5fFnG45EQ1hVxTA5rm3gQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/BFGxRhNvl0lvwqwEeXcYYudd9yfONffZH2SD_9JlNA0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/BS_3zbkLcpeQfRylCsQzPh55Prifwp-kht7X6JagPqE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Cu88jy94xLELDIDHgESLEjAfbqQSDf42eRYHQ7uhae4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/DS7Arza-EKgmMDzkblX0jZmgQFacCxepksyMGepmyeU.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/DWAbczNDZ606_Yvis7zgmCoVCQ-U1LyI7n9X3Oar45w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/DkJ2a2bYVxLGiKFOVAFDeZWcmh9VmP_6zaNPHJ982V0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/EWMqKCvPtPOB8pFKZDFI0mSNKdYdLyepGa-wrh212_Y.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/EfR9Kc-4cqeRXfG5UWI6Fvg2ChhNo2Wt7LRrmendYAY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Fa2DCdkKel9Xl9fakpdJeDGkTEAWdid5p6g5M1mvvB0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Fm6txCmD2PR18cnGC5VNlrnKtW0b5RlM-Sn_5UkOCwA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/G0XC_iSBFIaifGe_zKg80z0YBAVu9rN3l98ehVRkWOY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GLOPoCP-9TDOqRr-aUh3jVLWtzRzeorVoynRKcQtkVs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HZ4JR3eccRe0rh_9itklrCJarbGHls0C1DrQCi7xoHQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/I6bj_0DeAKTyfgwj-2BnLi3Nf5fQAjPeshmrW3jmDqo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/IQPcs9figw_VWp_PSwNbcchISsCafffnTqef0db4RL0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/JO-4-E7B52b1VBQMghbRZAAXu9H4m3Hz9LsgkL81qn0.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Jgb2NbKCoFDstFMEs6h-F9cVpeCwTru7TmyPQsVVeHE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/KLcBiVuopNHslcW6OJm1qQbecOGCd6SdvCzU_saj8Ok.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/LWGFoez040y0w5XCBLg4fGZuYwMYxW_pffiGmrViSw8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/N0dIQR81xBm3YpUbQ-vTtsIKjVXXib0RJus9Xw4xO3c.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/NeHqHolWGoz6piZ3B3avWjYCTi5sWz6E3ri3ZkTfTSY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OC-j8KMe0yy0o0lPx8zDHjeKfCjIeIfKHuZGpwzlAJ0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OhjdxwyRujKkDZuT681R6BheB1K8zHm5zR5QWyVpycU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/PC1fyZSBkwCMU3krlSoOqeZHUXPhJEI9DI9I39rDHgU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/PHZgerTfoqLgAKYM25o-gvEYvWlGDu6IaDaQo24y2K8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/PQYSwGO8tICbv-9J6pTJ2A04pty7dgwyT00vnT-Is3Q.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QNNRUIqJjqJ8r9yjyiiWuPt-2X2gAb3k8fsaV8_U4K0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QXOHnOVD0vlHgFklet_ucI8mfOARKZXeOI8WGoAgA_0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/RCI3zi6Re0BwFPEZ_yIIHCDWKdKt6cB813OQVeVM1vQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/RUt2mqwOfVHAAYJzfxzaeQtuymfLuZW9OwDy2rvDALs.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/SqsUiKZIC9yRkSPE92oMGc0oKTIInBSRzcWTB8sj6aE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/T505ikyD4wYDM5-vrZbV_mFUOUJIC-xEr99n6qan_38.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UHZrZXQSFdROxPisyaS7bPUxrju7PApsoRIBW9pSJfA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UVOGCQtmBivkNrdbw3liWQP2xnd8LYk18hgtBk3s8_g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/VaDG45LFcvjWemLKyjsdbUK_FdNgO_SVJnNXuABnCx4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/YmVUFA3cNsFPg5yoK9nV8YcShQLeBf_yqImn3axbTP4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/YypSmpGQYT7gQ7gJauS9ThYEjGQL5GOpyffVnAlG8b8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Yz4ZnIndW0d0-itVFFAswe76UlMnAeJqhTJMJ6xAg-k.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ZSxd0OjYhrmvkkRnCDVamAsEEyq5Gkjyuh_2_CM5rIA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/_K99yM6IXlMTLolJN4PjdkioHZAqZOlsMrHvgAQF9HY.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/art25l9VV5KNDIkjuxvHZAjmQBFwJ93vLaV7C8-xw8E.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/b54l2cq8YL_vUQ8p_UnTyJ-XXvNqvWpPWeVIRwbJcp8.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/bBNoddp81xM1RouUsrdBaY1lYSXhVkz_0n2rzybH42s.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/bhuQcvbDfo8D2gAHnP7rf-pgdboitvp5jdoSYuq423c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/c1Qe4NIRvR6qrsmeweb01j2WQcZV33WFrmleOEB4dWE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dVbsKbWUL7hzVhOLpS4fLgHpAe0cWB1Qh5eGAhkS2Yg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dbFiXXd7FjIwT4p9qeOgulpop4xc4A1Oh8flTXpjp8U.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/duNW3etH2ZRdbCtiVgUePfgScy6EYtJW6ePMm_7sASk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eYmPvFbieaaBf6pePdOvc5FLyO-ZTZY8Mxr6ojPaVZI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/fAnowVwOC4H0Hg4Dij_qwmAY9qaLwbFObDgSIN7Ial8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/fujguFxr6MM0ugfwpguNUFa8iHMgcQKziOc9VUb0BZo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/g2WIjBmc_IDdb9a9UdVADZA6qHxaDA4agqXDbXz3Pfk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gSIg2CgDumyQtupyBw6LckGenypBbWXWsv90P10hIPc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hH4_wzis0JdQZ16vIil7gYVEnPkZzq3jC7ZOjmRmvEU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/jPB0OIkM8apkjpgm_AdGZPqqP6sny-qu1fUypj1z1sM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/jY_QPMjgPkzhW09D79b670gvDqZ0_guQqjU7QvJHJxo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/jjbJX3WgONpz4q0zNU-mvb9Cx8KQ6xqi1BvboUjD5hk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/k3JqUmtzWO1IdgMZL1U3Bknk6PMa5k11KYO-XfRjNI0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kf63ntYxCA-Sz-nDgyAnmmZ2v9tnkypyxFTzXRVQh1w.cache +3 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kgHURa7WJqwC3E55X7TIJFVBnJ4R0KcHoZrRgINPu_M.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kn-yLNqSzm9pErMlmm4d2mhXvirFT8YNdBuL9U75W5Q.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/laNrzOJYlJr31epcg2dd42hHicZpYPrpFkCq9crbRgM.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/lnR-ycD5bbpmJNAywyP-IV7cc0F8dYUpnTG-408_cd8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/o3PzIqze6hKMAqMzFXpRI60VMsfkgz3mYQrSfDI0LME.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/oANhgADzh7JWi0TDinY1E1x8uLarSX2tPhVWLF_hWEk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/oTbNlyzGSlP_6wpWjuNnEF0KKB2ZP6QkR5a3yRNfpRk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qAyCW52FLWf-spWbdN20_TjnFB-E3QHPIeZXY4YEASE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qXzvFOSCQ3uXsdAGTLIO2ob_gFiZo3JRO6e6qtNFW1s.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qeVL4vuYT_lsVzhWJDtHJ_ZDp4tcKWUPWaGzjoL4xx8.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/r1pZal6Wgtlexb9AjK77yXEZ7MOZZ0aDU2moz8puVcQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/r2EDJk3sPqm7ni3mnuazHtAliNrEN-6_2UB0iDMW6eQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/uXmelRFRZanaW_GtHW1SW1dbbT3ekCg4ZOleT46Ow9I.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wX5WDpT1AGkCsopuI8rGQdkfsO0cSA9HkR2qFoxkjC4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wYTIUWOcVHoa1DPlUeZZocDA3u7a0jny9NYEswrprHk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wn5lckq6uLlequgU4zRyZFjeOIL6pJSFtx3IZWLJxYA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/x-I2bp6m4yXCk9LKf9G0bwV5M4sebCc11GB3xWfmmf0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/-OzdtYYdYTgp13Wl0KKdEaCoGj5IRQXJFwoCPEbSX84.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/1_uRTMF1qdhm0NfH13c44aB9C8IojJ8eDX35ZpU_xmc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/1aC7nZf32CISGqB4UJVPTM1kibEFKPyVfW8s4LQSkmg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/27lFGcUvBEhwnejXOGwD8iloDJRMDimv69Zzxt5__zE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2mentctqRHPrTMh2ayd3pCIpaBOXEkbsLC8NWbMUcns.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/31MYte91XFoHCqL75hAk6wLzZdBv8DdArdJzLBo9-T0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/3CPSTeWU_Odqk1R-N4vGT7T5nd8BPOlKFVe9cmeDOJg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/7JHRC3HDItpC8ooMUzFbR-6xQVdaLgbh9N0K2FdoZmg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/8EqF0luPCaGSBmyN62d3A7dxwThVXsxrCchhU8AH1OY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/A5QhApjpZmgeCNFI5TwXz-f_XZJwSGxAVro8l-32drs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/BS_3zbkLcpeQfRylCsQzPh55Prifwp-kht7X6JagPqE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/BlZalhW1pvbVa4dLWfYTCCGKKnDHp60pMATEtcFt8Fs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Cu88jy94xLELDIDHgESLEjAfbqQSDf42eRYHQ7uhae4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/D-n5JOV8jDYrPxdc0QRYxT1hhMUiiwz6mda_wHuejHU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/DS7Arza-EKgmMDzkblX0jZmgQFacCxepksyMGepmyeU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/DdV4JI8ezxAtzGhdAxikwv5rYRZd5OtSbiHJSbVZkH0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/EfR9Kc-4cqeRXfG5UWI6Fvg2ChhNo2Wt7LRrmendYAY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/EsWMRMQj1SaRL3vmBr-yvpimazVDAAIRBu-IrhOeepM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Fa2DCdkKel9Xl9fakpdJeDGkTEAWdid5p6g5M1mvvB0.cache +7 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Fm6txCmD2PR18cnGC5VNlrnKtW0b5RlM-Sn_5UkOCwA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/G0XC_iSBFIaifGe_zKg80z0YBAVu9rN3l98ehVRkWOY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/HBKJrVmxbXf-qDuWfGdkznhsG3Pg-ltHUBi89JGjsEs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/HZQ3gEKukYO997-udsSaVW5qYN6KLFspHgcTZLg8tmc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/JO-4-E7B52b1VBQMghbRZAAXu9H4m3Hz9LsgkL81qn0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Jgb2NbKCoFDstFMEs6h-F9cVpeCwTru7TmyPQsVVeHE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/LJbUTYtj58QbWuYRbdLxSB9fs-pi2w8fsqCyk3YhOVg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/LnaCdl4hXjKpoy4q9CmKUvre_lk0g7HgvM55fijQjLg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/NeHqHolWGoz6piZ3B3avWjYCTi5sWz6E3ri3ZkTfTSY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/PC1fyZSBkwCMU3krlSoOqeZHUXPhJEI9DI9I39rDHgU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/RbHzLNtjxJC8l6cTpoI6lpQ4LN_zUFiy4XU9H2IzZIw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/ReFoNL1U5JP23iWpBu3G0PonvI8F4J0wJS5c0E-r0hE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/TA3dIW7QhUFI6N4G0ZVobcnoPxqJDmmk_j5MDwL9IEg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/UHZrZXQSFdROxPisyaS7bPUxrju7PApsoRIBW9pSJfA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/V9Yw6J_FsBpr336KnhPqJngEgav6E4nTmCwMvwgVKEU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/VKln6qQd6IcM-IQFXHolddaICcTNnFBRKimQnYbApso.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/WP0iXB5EfOpCk3KbeW1KZ0ySut04QKzO6z5u0SC02Tg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/YrfHCm6375G7xL4mLOtWhTnB8AHqN7DFX-FAjor9UrI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/ZLP9qFeA8WZtUdkA5iSqHvi149WpoEDQsXAAbyAptBA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/ZT2HrX198ov5bTKNlkHlZn3rzfY-BKOFkI7uQdcDHus.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Zr8ZeH3MjCSRKnbkJcICOjNtuadk1LaBcWhdb3RE77o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/auFoICVr1X_tslMUVXuf391lscsgiEwMMNCzGnPCxog.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/ax03VMyqyfTCfn3_HdjNfPTnxZvPAEzlhdo6uIUhzFA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/bHEGTDpfb8o_ViqYFKiDlxBpVzAqDUC-g-x8fkF7Uuw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/cMgRvqmeLxgERc8oLKBvEYITDHw0uslno4sIUJcmdJ4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/duNW3etH2ZRdbCtiVgUePfgScy6EYtJW6ePMm_7sASk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/dx1WULLWNfDJ2l05CHsxAniqWsFCsxwxveWqx-XAvtc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/eqrjQis5fJ3-NLD332pyulZZXzs3TtDFeFoWaTiZFFQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/fujguFxr6MM0ugfwpguNUFa8iHMgcQKziOc9VUb0BZo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/h7bpo08-9Sdo8m-uN3mXTxGaKz2l-5_F_mWFx_7R7Wc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/hIDfsH9UYl36UndcSmnsAmkVBq8g-Uk_ZK2vUPBVwEI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/haFIXUWipIjRjFkTjpaP1RRa-cazsBhsBqp3Nfu-NNM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/k3JqUmtzWO1IdgMZL1U3Bknk6PMa5k11KYO-XfRjNI0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/kD2gkJyt1rjxXAjw5JsQJ3a3SEFeKdRVOJtnb4URRLU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/kIfC-sRQtAaDfDvJNDfrzj_iKit-mmbg0NpirDMAeLA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/kzM9WfthxwDe-mpTx3xhC5tAmyw40775CMvCG3lDjcg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/l5sJ-tblBgI00DP8GPzBzDuDPFiMy6GYVAmIHwz5smQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/laNrzOJYlJr31epcg2dd42hHicZpYPrpFkCq9crbRgM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/mv11ATY1ENNrovRsTXYhMWPj8Wdorxg2tzYhkt9_WCI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/oTbNlyzGSlP_6wpWjuNnEF0KKB2ZP6QkR5a3yRNfpRk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/oe0CXBPOIIsPkr6Mz-Fnu-rU236GPhuM1R7tc1ZOOD8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/pkTm5URlzuAmr5hTqnkQjxfSQKfrMX_so8EqrTpR-Fs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/q5aM_tgtCIFudHlKBMFQMsqWCp_dp0u_nQOitS3ugNw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/qAyCW52FLWf-spWbdN20_TjnFB-E3QHPIeZXY4YEASE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/qeVL4vuYT_lsVzhWJDtHJ_ZDp4tcKWUPWaGzjoL4xx8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/rHjybxMq5LidcOg3JhHAWGICic_QBHpnAL-42ASrSJ0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/sfXvlCAdXCA2jfrB3L8N0O6MTac5X-odD0Ape64nldU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/vG9B1ZEDDNmQxqGVFHAuAMQI77y3JHFOIRAnKO322G8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/wKz3dpi0fItxLBqt-uuU1iUhKMEs8c5QWk1PJpx6Gwg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/yCcqAmvBR313Hf7pQV3e12lVU08CkxCSNc37FtScF8Y.cache +1 -0
- data/spec/features/invoke_task_spec.rb +17 -0
- data/spec/features/lists_tasks_spec.rb +10 -0
- data/spec/rake_dashboard_spec.rb +7 -0
- data/spec/spec_helper.rb +23 -0
- data/spec/views/rake_dashboard/tasks/index.html.erb_spec.rb +31 -0
- metadata +535 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b242e997dcc1aaee22e88bb7a10a75da3e0a302c
|
4
|
+
data.tar.gz: 9e3bbd5425c543b67d603475b2ca2cd2fc50c2c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faf3c5c836428aa8ac905efad98b1e8762e9c2646dd8c36d15e721feaa4f675a918151258186bdbc4d4b5e5e8de89832d72e4eaaa5e0a60baf5f5f30198928c6
|
7
|
+
data.tar.gz: 0b86c735a9882b392aaa560ca7e41eedf1a8437d17f9793dd5050fa6e12ead19adadb3b1145e9e037fa9590beacc7b5200131180dbe5cabe21aa9acb419d7958
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -28,7 +28,19 @@ Or install it yourself as:
|
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
31
|
-
|
31
|
+
1. Mount the RakeDashboard engine to your preferred path prefix, for example:
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
Rails.application.routes.draw do
|
35
|
+
|
36
|
+
mount RakeDashboard::Engine, at: "/rake"
|
37
|
+
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
2. Point your browser to your new route: ```/rake/tasks```.
|
42
|
+
|
43
|
+
3. Click on the task you want to run.
|
32
44
|
|
33
45
|
## Development
|
34
46
|
|
data/Rakefile
CHANGED
@@ -1 +1,13 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
|
3
|
+
Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }
|
4
|
+
|
5
|
+
require 'rspec/core'
|
6
|
+
require 'rspec/core/rake_task'
|
7
|
+
|
8
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
9
|
+
load 'rails/tasks/engine.rake'
|
10
|
+
|
11
|
+
desc "Run all specs in spec directory (excluding plugin specs)"
|
12
|
+
RSpec::Core::RakeTask.new(:spec)
|
13
|
+
task :default => :spec
|
@@ -0,0 +1,15 @@
|
|
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.
|
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_tree .
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require_dependency "rake_dashboard/application_controller"
|
2
|
+
require 'session_off'
|
3
|
+
|
4
|
+
module RakeDashboard
|
5
|
+
class TasksController < ApplicationController
|
6
|
+
session :off
|
7
|
+
|
8
|
+
def index
|
9
|
+
@tasks = RakeDashboard.tasks
|
10
|
+
end
|
11
|
+
|
12
|
+
def create
|
13
|
+
@rake_stream = capture(:stdout) { Rake::Task[params[:task]].invoke }
|
14
|
+
|
15
|
+
render inline: "<pre><%= @rake_stream %></pre>"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/config/routes.rb
CHANGED
data/lib/rake_dashboard.rb
CHANGED
data/rake_dashboard.gemspec
CHANGED
@@ -15,12 +15,21 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.test_files = Dir["spec/**/*"]
|
18
19
|
spec.bindir = "exe"
|
19
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
21
|
spec.require_paths = ["lib"]
|
21
22
|
|
22
23
|
spec.add_dependency "rails", "~> 4.1.0"
|
24
|
+
spec.add_dependency "jquery-rails", "~> 3.1.2"
|
25
|
+
spec.add_dependency "session_off", "~> 0.5.1"
|
26
|
+
# Moved sqlite3 development dependency to Gemfile
|
27
|
+
spec.add_development_dependency "capybara", "~> 2.4.4"
|
23
28
|
spec.add_development_dependency "bundler", "~> 1.9"
|
24
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
30
|
spec.add_development_dependency "rspec", "~> 3.2.0"
|
31
|
+
spec.add_development_dependency "rspec-rails", "~> 3.2.0"
|
32
|
+
spec.add_development_dependency "rspec-html-matchers", "~> 0.7.0"
|
33
|
+
spec.add_development_dependency "poltergeist", "~> 1.6.0"
|
34
|
+
spec.add_development_dependency "pry"
|
26
35
|
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
module RakeDashboard
|
5
|
+
RSpec.describe TasksController, type: :controller do
|
6
|
+
|
7
|
+
routes { RakeDashboard::Engine.routes }
|
8
|
+
|
9
|
+
before do
|
10
|
+
Dummy::Application.load_tasks
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:tasks) { Rake::Task.tasks }
|
14
|
+
|
15
|
+
describe "GET #index" do
|
16
|
+
it "returns http success" do
|
17
|
+
get :index
|
18
|
+
expect(response).to have_http_status(:success)
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should have tasks assigned from the configuration" do
|
22
|
+
RakeDashboard.tasks = tasks
|
23
|
+
get :index
|
24
|
+
expect(assigns(:tasks)).to eql(tasks)
|
25
|
+
end
|
26
|
+
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
describe "POST #create" do
|
31
|
+
let(:task) { double("task") }
|
32
|
+
before do
|
33
|
+
allow(task).to receive(:invoke) { puts "invoked!" }
|
34
|
+
allow(Rake::Task).to receive(:[]).with("secret").and_return(task)
|
35
|
+
end
|
36
|
+
|
37
|
+
it "returns http success" do
|
38
|
+
post :create, task: :secret
|
39
|
+
expect(response).to have_http_status(:success)
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should invoke the passed rake task" do
|
43
|
+
expect(Rake::Task).to receive(:[]).with("secret").and_return(task)
|
44
|
+
|
45
|
+
post :create, task: :secret
|
46
|
+
expect(response).to have_http_status(:success)
|
47
|
+
end
|
48
|
+
|
49
|
+
it "should respond with the task ouput" do
|
50
|
+
expect(Rake::Task).to receive(:[]).with("secret").and_return(task)
|
51
|
+
|
52
|
+
post :create, task: :secret
|
53
|
+
expect(response.body).to eql("<pre>invoked!\n</pre>")
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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
|
+
* ...
|
25
|
+
|
26
|
+
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
28
|
+
<tt>rake doc:app</tt>.
|
data/spec/dummy/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
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 vendor/assets/javascripts of plugins, if any, 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.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require_tree .
|
@@ -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 vendor/assets/stylesheets of plugins, if any, 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 styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
data/spec/dummy/bin/rake
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_mailer/railtie"
|
7
|
+
require "action_view/railtie"
|
8
|
+
require "sprockets/railtie"
|
9
|
+
# require "rails/test_unit/railtie"
|
10
|
+
|
11
|
+
Bundler.require(*Rails.groups)
|
12
|
+
require "rake_dashboard"
|
13
|
+
|
14
|
+
module Dummy
|
15
|
+
class Application < Rails::Application
|
16
|
+
# Settings in config/environments/* take precedence over those specified here.
|
17
|
+
# Application configuration should go into files in config/initializers
|
18
|
+
# -- all .rb files in that directory are automatically loaded.
|
19
|
+
|
20
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
21
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
22
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
23
|
+
|
24
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
25
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
26
|
+
# config.i18n.default_locale = :de
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -0,0 +1,35 @@
|
|
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 and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
23
|
+
# This option may cause significant delays in view rendering with a large
|
24
|
+
# number of complex assets.
|
25
|
+
config.assets.debug = true
|
26
|
+
config.assets.digest = true
|
27
|
+
|
28
|
+
# Adds additional error checking when serving assets at runtime.
|
29
|
+
# Checks for improperly declared sprockets dependencies.
|
30
|
+
# Raises helpful error messages.
|
31
|
+
config.assets.raise_runtime_errors = true
|
32
|
+
|
33
|
+
# Raises error for missing translations
|
34
|
+
# config.action_view.raise_on_missing_translations = true
|
35
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
+
# config.action_dispatch.rack_cache = true
|
21
|
+
|
22
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
+
config.serve_static_assets = false
|
24
|
+
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
28
|
+
|
29
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
+
config.assets.compile = false
|
31
|
+
|
32
|
+
# Generate digests for assets URLs.
|
33
|
+
config.assets.digest = true
|
34
|
+
|
35
|
+
# Version of your assets, change this if you want to expire all your assets.
|
36
|
+
config.assets.version = '1.0'
|
37
|
+
|
38
|
+
# Specifies the header that your server uses for sending files.
|
39
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
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
|
+
# Set to :debug to see everything in the log.
|
46
|
+
config.log_level = :info
|
47
|
+
|
48
|
+
# Prepend all log lines with the following tags.
|
49
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
+
|
51
|
+
# Use a different logger for distributed setups.
|
52
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
+
|
54
|
+
# Use a different cache store in production.
|
55
|
+
# config.cache_store = :mem_cache_store
|
56
|
+
|
57
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
+
|
60
|
+
# Precompile additional assets.
|
61
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
+
# config.assets.precompile += %w( search.js )
|
63
|
+
|
64
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
+
# config.action_mailer.raise_delivery_errors = false
|
67
|
+
|
68
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
+
# the I18n.default_locale when a translation cannot be found).
|
70
|
+
config.i18n.fallbacks = true
|
71
|
+
|
72
|
+
# Send deprecation notices to registered listeners.
|
73
|
+
config.active_support.deprecation = :notify
|
74
|
+
|
75
|
+
# Disable automatic flushing of the log to improve performance.
|
76
|
+
# config.autoflush_log = false
|
77
|
+
|
78
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
+
config.log_formatter = ::Logger::Formatter.new
|
80
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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 static asset server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_assets = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Print deprecation notices to the stderr.
|
35
|
+
config.active_support.deprecation = :stderr
|
36
|
+
|
37
|
+
# Raises error for missing translations
|
38
|
+
# config.action_view.raise_on_missing_translations = true
|
39
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Rails.application.config.assets.version = '1.0'
|
@@ -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
|
@@ -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] if respond_to?(:wrap_parameters)
|
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"
|