any_login 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +27 -0
- data/Rakefile +37 -0
- data/app/assets/images/any_login/person.png +0 -0
- data/app/controllers/any_login/application_controller.rb +11 -0
- data/app/helpers/any_login/application_helper.rb +58 -0
- data/app/views/any_login/_any_login.html.erb +123 -0
- data/config/routes.rb +7 -0
- data/lib/any_login.rb +99 -0
- data/lib/any_login/engine.rb +26 -0
- data/lib/any_login/routes.rb +7 -0
- data/lib/any_login/strategy/devise.rb +19 -0
- data/lib/any_login/version.rb +3 -0
- data/lib/generators/any_login/USAGE +8 -0
- data/lib/generators/any_login/any_login_generator.rb +6 -0
- data/lib/generators/any_login/templates/any_login.rb +13 -0
- data/test/any_login_test.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/bootstrap.min.js +7 -0
- data/test/dummy/app/assets/javascripts/home.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/assets/stylesheets/bootstrap-theme.min.css +5 -0
- data/test/dummy/app/assets/stylesheets/bootstrap.min.css +5 -0
- data/test/dummy/app/assets/stylesheets/home.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/home_controller.rb +9 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/home_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +10 -0
- data/test/dummy/app/views/home/about.html.erb +2 -0
- data/test/dummy/app/views/home/index.html.erb +530 -0
- data/test/dummy/app/views/layouts/application.html.erb +22 -0
- data/test/dummy/app/views/shared/_footer.html.erb +16 -0
- data/test/dummy/app/views/shared/_header.html.erb +33 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +42 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/any_login.rb +5 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/devise.rb +262 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/devise.en.yml +60 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +6 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20150907190739_create_users.rb +9 -0
- data/test/dummy/db/migrate/20150907190846_add_devise_to_users.rb +49 -0
- data/test/dummy/db/migrate/20150909210357_populate_test_users.rb +21 -0
- data/test/dummy/db/schema.rb +37 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1128 -0
- data/test/dummy/log/test.log +373 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/home_controller_test.rb +15 -0
- data/test/dummy/test/fixtures/users.yml +11 -0
- data/test/dummy/test/models/user_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/0mUCX5MiuPurvwMDJN1viKrLiNvvFTZc-L6ZBrckEic.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/2SYNbjkqPSMfgHiWdLtg7nuZalOIPjaNfQttqkDHHss.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/3Q9PpN59Iw3R8NFQfW4EE4gsPONlCYSdvAD3JsCbGIA.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/7iLZhCRqomVffwv-AVwkHFYCcmPKLrrk7qQChfRapi0.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/7ur7VUze24s0VKgJKWpnUo96FYlWHEmE8HNVJZZMNTE.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8zb9xKJcvuzFNLl5eXm8-rMWpJcFxk8hMEmnWwSkMMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/AtSjVjN-l74fcYePzHnq_C7uDbKLzJtTnFyqpQfFU_4.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/BmgZIlC4dPPN5_-UVlbtqC4gTJIdxEs0RdshJXE6MrE.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/CC1ihO7XYNMibY_amTWKI8YUE-hQGPYSpCaqmNg-Jjk.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/C_5kL4_NWLeARMnjY-tAZ1QL-YK0CZVidwahgGIsFzE.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/DGFPj1WMU5MK9HUz3l69cYrktq0pxG73ZYroFiWFf1Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/EI5LzNFYz6ZfxNyOoS1ZOx8cjFegSaBzfB3-qRCE8Uw.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/FAQZN9Offj6Ralh8lPOcWnqsujeCnr7kRDG35KPXIFg.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/FEs8uokP_fREF7aomsryzRXjitBkvS9tWXmjSCB81_s.cache +2 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Fa6FU_PRuF2wp96Xm5R5izWdsog-W7-Fl8Ka6LvWWk0.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/GAdJwtpszZDaIVjZ1vy_hhrduwyRVZ-UVvY1VWHC1F8.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/IccPPvFDyMMsygLAgf1nuZlbJFhWotiFNmcybOaFSro.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/IlGSUvskziqqa652wnpgtDgid_Xny41bFG0ewd4lB7M.cache +4 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/J_8z3vJer-T2RbrrfOrrS-aanW_S2qbPaLmPgcAUTCM.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Ji0-C9rfE9nAgyKe3RRhYhog0GEaVgtWkXSOchJdJYM.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/K_jYNiV8wzkrkscwTARjB-fUFotRIGgDroMQRWsZoxE.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/LFqrFvIrFTK4bxXknLWn2XqLAtiVYCxLng_CGNJ4SVo.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/LsWw_Wu-4ficFT-ML0ZSsHOfPYWu1V3d5-MikqnX8Fc.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/NEqiXLuP2oYe7BUdje_GmZ-W8tpK1aeaYF4gjJqv0RM.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/OrM4D1znaRp8zJBOHxDL6-QpEUTx98mqOthiNDmtv_Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/OrR4h_6kjDqtTFVQuXjcgs0o7CxiOP63AEj_AGSAjtU.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Owlced5DGUDsMwIsBZyIwvGxfm8ACWU3ay2phFkvSjM.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/P6GmfkMYDKAH537GCnftfOOraEeXWHUBfh10dnmy4Gg.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/PF8peKtDrqGmgwiVlyi6IUk5qvykD3NPmuzKyA1PhP0.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/PGAZI7MHK6aEYaV0hHeITwxJ5N03rsEaTwLqMw62t9U.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Q3vUnsRezfxvQTLmfEUUbhKNB54P4eFotkxcswSF834.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/QBPpZbLf8M4F3nLK9viHM6W4N_JryJWPspRElgi6pJw.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/QtG2mQIAsmnEypY91SLARNSWyyllU43Tf-29a5Q7IjA.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/RICxiF1Y7tRr1144F7mHmJPW-mEKzj8mvHddAM2tiiM.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/RkSvs4z6bXZCiOGZNxmI6QNJYKG-MS6FTQpKQAyDJc0.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/SG1bNzk0fDOmjTY_MTvIDm0zXIIdNqTI6qkD0H9woOA.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/TXOhutpNU8EMOUm5epQFgsJYCvqIc1TlLWbW5lo0uEs.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/UM0weT-qqb6-BXbyenqRwt6ixDB_eb2faZeK1mvPZoY.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/VeLENRGeiTBRwGJzFiViJTsWIBxrBd108tWE6VKn4Ek.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/WtSTBHPqPJS6POv28C9Su9x2mW16It1Kfzn-iIGM44Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Wv2ZrYmoB1mW6LcyH4gmxG-CXkmL3XiMp8kC2gZMZJE.cache +2 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/YNjflxhjoc6hSFX1xoeS63gOYFKaBsmE-aEg7L9TaHA.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/aV2lHHL_bMOztNki30IWE4anPdMWzXAkfg_dPingc8Y.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/bQoUeMoyVPAXgwui9DzMeA6I9dU19Q-ke1Xu3LC9dk4.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/dvqnGzqP5nqsTc5Vkke-cprFBa45eFo2QNPspkN-qOQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/gPbb-C0stzrkDgjCLG6a6J1AGYNk4_X0kFvyGLRvSCc.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/gadB5x8m3Dg9LDdVonhWppxUv7J7zACwl_2FtL-WS2g.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/gdEO0xoQMaFCyk0bLTL9puO0bSGNWg0PFKY2xlDW9HM.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/hSDEcApI55-JVsyaRJw-W-DA0hrLo2fBsSRtizuEDBI.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/kO8N46uvJsIIglg5jaI0YRzqZxxVG7iyvUDwRjlCiFg.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/kXF0ywhnFoQlc9Q4DYuleE1sNExOUZJlt24sV_8Nzfs.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/l6JtVxklW8nQn3WaiBLRs2UU_cVrm9thr8FWrSQFnFE.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/myQlTWBqjEV7aXVwBtOaHIt42To2MmC_zlFFqkPxjmw.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/o2X38ta6JWjELW3lhNfN7_KowXHcyJu6vPjRv_xUZ28.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/pIVqc5tXAaLDSQbx4dvcFawX1iRPdcw_JTjDIE6Y0eM.cache +2 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/pnW3u_1AN48ig6ngefI89y96xoSlvnJurx-e3J-leoE.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/qcN-H5ioVjPEIjojelEQsfdYHJLnVkRXiMfS7fMsOKM.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sGvDE_1KVdF5NOorceoKmEPLP3D8OF6yAs2B2UReguU.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sYqD_6_DLhWbWmBm4ZOKDNI8bKtF7czThI6GXwmFlMU.cache +2 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sgALL3J-9VpCWqd6Gt4edjNFRDJCegUnBj_k4Hg1Lk0.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sh4xTbeFOQvmDNCWNG_o_rxwgbie1P7BovzPLTpYtg0.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ssS2x0Wl67rwXHaVHsh6CO7ayn9fQ5saIwATKN6O-nI.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/th8j6zWSaTIS6jxJKJVLFy3P2LC9wdiuQ4C1xWcnhUM.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/tuEq0SXuQh3A3UWa1dGXRLlKGMt6evB5YqwFJRyPvIE.cache +2 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/uOsJ4RbOhb9nvMwhf9lzUHRpwpiRFNexQoQX3IoMafE.cache +1 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/urVojGa6d1SRmE17SmNPfvygicsNO0rKkv5O3sF4quE.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/uugggZv5gxeHU2FxmV1B-bNg7quJtLpNiQUQBY8hEu4.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/vC87Ti4dfYY3jCaPO6OPoRAuMfUMJ2p5tMjYAKtqUw4.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/wSKFcgQC7KKgyXwKQKaMK6Ztjmt3kapkfDjS77n-W3I.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2fnIYpMuQIhuY4fuSr391k1N56QWkitsT2boe8qTaMc.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5LGawpUDypkb6KrQy14PHBOBvguN9iBvxEHH4FtD82Q.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5v04KhtOaN4Y_Jr6jsIEZhn52V5A4l0w3CazUVzKjPU.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5x5QyKbF3AyeyEB4IM113P7-rE5Hy6bz2QwHeMrd7nA.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/7ur7VUze24s0VKgJKWpnUo96FYlWHEmE8HNVJZZMNTE.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ASS8gmPSY4-jnkui14zqivm3x-lCN4eZklzKmn8Szg0.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/AtSjVjN-l74fcYePzHnq_C7uDbKLzJtTnFyqpQfFU_4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/CRAJhzElqj5oh-wxyOrJ6HQwszHJvcya6hlcczfEtY4.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/C_5kL4_NWLeARMnjY-tAZ1QL-YK0CZVidwahgGIsFzE.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/CmKITYh3oVk9z51_l8Xi6Vn54j3utI0AWvWb19mJxK8.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FAQZN9Offj6Ralh8lPOcWnqsujeCnr7kRDG35KPXIFg.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FEs8uokP_fREF7aomsryzRXjitBkvS9tWXmjSCB81_s.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Fv0q14URpEElr8JckQRM5nO4NmDRe_b0NrxveKXuu4s.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/GAdJwtpszZDaIVjZ1vy_hhrduwyRVZ-UVvY1VWHC1F8.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/L1nRpuovk9hLaarXKukmEFFIlRHS-hp_ibkGxAVPcEE.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/L7xpCtaByAnRRGFY2-UQGsMjrXfkqQeHO87Mibe3QhE.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/O0KKUhoSmd2Q948y61hBrhm4UgbSJVgEqdLgsNbvoQU.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OJ8Xn4kiILBc5N1iHDL2PuB3GOTLNLx66TJ-o9kiFb0.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Owlced5DGUDsMwIsBZyIwvGxfm8ACWU3ay2phFkvSjM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OzZFerjHbWGTsFx92c-JF36NNjyMkzh6Zqqt0PjgAac.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/P6GmfkMYDKAH537GCnftfOOraEeXWHUBfh10dnmy4Gg.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/PBhQkLPfcMr8AauDPTSUphnFi9StIDWj0WBdaIIZFos.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Q3vUnsRezfxvQTLmfEUUbhKNB54P4eFotkxcswSF834.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RICxiF1Y7tRr1144F7mHmJPW-mEKzj8mvHddAM2tiiM.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RXWAeuDhMtHr2vLlWWFw1oSqIiRFJcmY__w54DicQ58.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RbEnVrLsa7hWrkBIGqV5ZdMPD-ehXmD7q4MS5aOIHU8.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RkSvs4z6bXZCiOGZNxmI6QNJYKG-MS6FTQpKQAyDJc0.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UXd7yvTDXrekr6CX2dWbBYv9B3hTw2cZ4t2TuUiCLTc.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/VeLENRGeiTBRwGJzFiViJTsWIBxrBd108tWE6VKn4Ek.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/W33KM6utzxdKHyRwJSe3vYO1aU2EntAXxZoSgZ1uUac.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/WUcaxhpxfHk3tsqG1JXQy6iBRK9eQ0pkHzxk2NGj3Ps.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/WtSTBHPqPJS6POv28C9Su9x2mW16It1Kfzn-iIGM44Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Wv2ZrYmoB1mW6LcyH4gmxG-CXkmL3XiMp8kC2gZMZJE.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/XGM9it7b5UYdpWGq7Ce_s9bxIk2Dp2trc0ub0-WdTzs.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Xtu0577MttfVSmKOiG5xJxvBam7MSF_GhOZynZsSeuc.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Yi6XqUaOMhrVQYbOFDszEGKgq7eFdGgEiGtN1Dtjoco.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YmhO31KbA_R395b8Sjeb065uOdHxZ2vrXDL36L3W7kE.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_B5Bdp4aDeD-uSuI8DWuy-PpHM3v5eD3Gdi2zN3Mooc.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bQoUeMoyVPAXgwui9DzMeA6I9dU19Q-ke1Xu3LC9dk4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/cWzqklKCwgjz3ySepSZKDQxCepO0xZSkCdZaTBTZVsQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/egNsAXN2kaHymEOx3NU5BOnPhU_XYYlcSWUUvLMTdcA.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gYomMdsiFcr9v9Gt3-xBlwggze8THA7rgwiaq-8IHrw.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gdEO0xoQMaFCyk0bLTL9puO0bSGNWg0PFKY2xlDW9HM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hIlbDHmRe1X_zVDANRw4wrHjnaasIGIu3SoUc5vH8O4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hSDEcApI55-JVsyaRJw-W-DA0hrLo2fBsSRtizuEDBI.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hUmUEhmK7ztoXFpmikcwZMwk9h8tQnWyJjYfq0GPAKI.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hqR9m0i5bhK0cfl3QGM_w2M_3Uk_IEqKjp-suKM_18Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/jagno3A0Rv2nweFB6787uBwRLs_i_u18XBCxLCV1-kk.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kAeDHz-o0hn5oO-cwy0_Unre93ExAa4El8SSO23VgrA.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kGyXKeXcBntxtFoWUtKtVa8aa1iGkF7jcYxHYjYnB2c.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kNqvUZsqp7pXX8G6WPH1ix1zD50S9vdf4Ye-4SrbMWI.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kO8N46uvJsIIglg5jaI0YRzqZxxVG7iyvUDwRjlCiFg.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/m0IpB0R9vr_NP0tPSe2uoTDCa9E9dgHRELPwVhDBj-M.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/myQlTWBqjEV7aXVwBtOaHIt42To2MmC_zlFFqkPxjmw.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/o2X38ta6JWjELW3lhNfN7_KowXHcyJu6vPjRv_xUZ28.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/pIVqc5tXAaLDSQbx4dvcFawX1iRPdcw_JTjDIE6Y0eM.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/pnW3u_1AN48ig6ngefI89y96xoSlvnJurx-e3J-leoE.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/sYqD_6_DLhWbWmBm4ZOKDNI8bKtF7czThI6GXwmFlMU.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ssS2x0Wl67rwXHaVHsh6CO7ayn9fQ5saIwATKN6O-nI.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/tuEq0SXuQh3A3UWa1dGXRLlKGMt6evB5YqwFJRyPvIE.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/u9XYz1n7lju0ZiAPZuUgGPBP-3FGlLYNGALaTpPBgU4.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/uOsJ4RbOhb9nvMwhf9lzUHRpwpiRFNexQoQX3IoMafE.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/uugggZv5gxeHU2FxmV1B-bNg7quJtLpNiQUQBY8hEu4.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/uzGDr56Ry0XUNOvcVav44pqVfhES2aLqDlo3PWGG2V4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/va_iem9gJRtQZFSf8UZZP07dwlVPWwBB_oQi535l87I.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/wk5FwYB-2sMDpzX3UK3g269m9zybwAc6VhDwuc-GkG0.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/x1vgLKvr2zQdjUkf2BuMehFadl87MfEvMpinBRI6xIs.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ykPzTe9EiclkiGrh4-oYIDrCebAtGq-gVA_pg2OnBUQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/zjW1WJXfQevh5kt1q_h1SZliBXs_CVzA7hq9cQPwVk8.cache +1 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/test_helper.rb +25 -0
- metadata +580 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>AnyLogin Dummy</title>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
|
+
<meta name="description" content="">
|
9
|
+
<meta name="author" content="">
|
10
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
11
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
12
|
+
<%= csrf_meta_tags %>
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body role="document">
|
16
|
+
<%= render '/shared/header' %>
|
17
|
+
<div class="container theme-showcase" role="main">
|
18
|
+
<%= yield %>
|
19
|
+
</div>
|
20
|
+
<%= render '/shared/footer' %>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<br/>
|
3
|
+
<br/>
|
4
|
+
<br/>
|
5
|
+
<hr/>
|
6
|
+
|
7
|
+
<%= link_to 'Home', root_path %> |
|
8
|
+
<% if user_signed_in? %>
|
9
|
+
<%= link_to 'Sign out', destroy_user_session_path, method: :delete, data: { confirm: "Are you sure you want to sign out?" } %>
|
10
|
+
<% else %>
|
11
|
+
<%= link_to 'Sign up', new_user_registration_path %> |
|
12
|
+
<%= link_to 'Sign in', new_user_session_path %>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<%= any_login_here %>
|
16
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<!-- Fixed navbar -->
|
2
|
+
<nav class="navbar navbar-inverse">
|
3
|
+
<div class="container">
|
4
|
+
<div class="navbar-header">
|
5
|
+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
6
|
+
<span class="sr-only">Toggle navigation</span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
<span class="icon-bar"></span>
|
10
|
+
</button>
|
11
|
+
<a class="navbar-brand" href="/">AnyLogin Dummy</a>
|
12
|
+
</div>
|
13
|
+
<div id="navbar" class="navbar-collapse collapse">
|
14
|
+
<ul class="nav navbar-nav">
|
15
|
+
<li class="active"><a href=".">Home</a></li>
|
16
|
+
<li><a href="/about">About</a></li>
|
17
|
+
<li><a href="#contact">Contact</a></li>
|
18
|
+
<li class="dropdown">
|
19
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
|
20
|
+
<ul class="dropdown-menu">
|
21
|
+
<li><a href="#">Action</a></li>
|
22
|
+
<li><a href="#">Another action</a></li>
|
23
|
+
<li><a href="#">Something else here</a></li>
|
24
|
+
<li role="separator" class="divider"></li>
|
25
|
+
<li class="dropdown-header">Nav header</li>
|
26
|
+
<li><a href="#">Separated link</a></li>
|
27
|
+
<li><a href="#">One more separated link</a></li>
|
28
|
+
</ul>
|
29
|
+
</li>
|
30
|
+
</ul>
|
31
|
+
</div><!--/.nav-collapse -->
|
32
|
+
</div>
|
33
|
+
</nav>
|
data/test/dummy/bin/rake
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
# path to your application root.
|
5
|
+
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
|
+
|
7
|
+
Dir.chdir APP_ROOT do
|
8
|
+
# This script is a starting point to setup your application.
|
9
|
+
# Add necessary setup steps to this file:
|
10
|
+
|
11
|
+
puts "== Installing dependencies =="
|
12
|
+
system "gem install bundler --conservative"
|
13
|
+
system "bundle check || bundle install"
|
14
|
+
|
15
|
+
# puts "\n== Copying sample files =="
|
16
|
+
# unless File.exist?("config/database.yml")
|
17
|
+
# system "cp config/database.yml.sample config/database.yml"
|
18
|
+
# end
|
19
|
+
|
20
|
+
puts "\n== Preparing database =="
|
21
|
+
system "bin/rake db:setup"
|
22
|
+
|
23
|
+
puts "\n== Removing old logs and tempfiles =="
|
24
|
+
system "rm -f log/*"
|
25
|
+
system "rm -rf tmp/cache"
|
26
|
+
|
27
|
+
puts "\n== Restarting application server =="
|
28
|
+
system "touch tmp/restart.txt"
|
29
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails/all'
|
4
|
+
|
5
|
+
Bundler.require(*Rails.groups)
|
6
|
+
require "any_login"
|
7
|
+
|
8
|
+
module Dummy
|
9
|
+
class Application < Rails::Application
|
10
|
+
# Settings in config/environments/* take precedence over those specified here.
|
11
|
+
# Application configuration should go into files in config/initializers
|
12
|
+
# -- all .rb files in that directory are automatically loaded.
|
13
|
+
|
14
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
15
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
16
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
17
|
+
|
18
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
|
+
# config.i18n.default_locale = :de
|
21
|
+
|
22
|
+
# Do not swallow errors in after_commit/after_rollback callbacks.
|
23
|
+
config.active_record.raise_in_transactional_callbacks = true
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
#
|
7
|
+
default: &default
|
8
|
+
adapter: sqlite3
|
9
|
+
pool: 5
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
development:
|
13
|
+
<<: *default
|
14
|
+
database: db/development.sqlite3
|
15
|
+
|
16
|
+
# Warning: The database defined as "test" will be erased and
|
17
|
+
# re-generated from your development database when you run "rake".
|
18
|
+
# Do not set this db to the same as development or production.
|
19
|
+
test:
|
20
|
+
<<: *default
|
21
|
+
database: db/test.sqlite3
|
22
|
+
|
23
|
+
production:
|
24
|
+
<<: *default
|
25
|
+
database: db/production.sqlite3
|
@@ -0,0 +1,42 @@
|
|
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
|
+
# Raise an error on page load if there are pending migrations.
|
23
|
+
config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
|
30
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
31
|
+
# yet still be able to expire them through the digest params.
|
32
|
+
config.assets.digest = true
|
33
|
+
|
34
|
+
# Adds additional error checking when serving assets at runtime.
|
35
|
+
# Checks for improperly declared sprockets dependencies.
|
36
|
+
# Raises helpful error messages.
|
37
|
+
config.assets.raise_runtime_errors = true
|
38
|
+
|
39
|
+
# Raises error for missing translations
|
40
|
+
# config.action_view.raise_on_missing_translations = true
|
41
|
+
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
|
42
|
+
end
|
@@ -0,0 +1,79 @@
|
|
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
|
20
|
+
# NGINX, varnish or squid.
|
21
|
+
# config.action_dispatch.rack_cache = true
|
22
|
+
|
23
|
+
# Disable serving static files from the `/public` folder by default since
|
24
|
+
# Apache or NGINX already handles this.
|
25
|
+
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
26
|
+
|
27
|
+
# Compress JavaScripts and CSS.
|
28
|
+
config.assets.js_compressor = :uglifier
|
29
|
+
# config.assets.css_compressor = :sass
|
30
|
+
|
31
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
32
|
+
config.assets.compile = false
|
33
|
+
|
34
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
35
|
+
# yet still be able to expire them through the digest params.
|
36
|
+
config.assets.digest = true
|
37
|
+
|
38
|
+
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
39
|
+
|
40
|
+
# Specifies the header that your server uses for sending files.
|
41
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
42
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
43
|
+
|
44
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
45
|
+
# config.force_ssl = true
|
46
|
+
|
47
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
48
|
+
# when problems arise.
|
49
|
+
config.log_level = :debug
|
50
|
+
|
51
|
+
# Prepend all log lines with the following tags.
|
52
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
53
|
+
|
54
|
+
# Use a different logger for distributed setups.
|
55
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
56
|
+
|
57
|
+
# Use a different cache store in production.
|
58
|
+
# config.cache_store = :mem_cache_store
|
59
|
+
|
60
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
61
|
+
# config.action_controller.asset_host = 'http://assets.example.com'
|
62
|
+
|
63
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
64
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
65
|
+
# config.action_mailer.raise_delivery_errors = false
|
66
|
+
|
67
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
68
|
+
# the I18n.default_locale when a translation cannot be found).
|
69
|
+
config.i18n.fallbacks = true
|
70
|
+
|
71
|
+
# Send deprecation notices to registered listeners.
|
72
|
+
config.active_support.deprecation = :notify
|
73
|
+
|
74
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
75
|
+
config.log_formatter = ::Logger::Formatter.new
|
76
|
+
|
77
|
+
# Do not dump schema after migrations.
|
78
|
+
config.active_record.dump_schema_after_migration = false
|
79
|
+
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 static file server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_files = 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
|
+
# Randomize the order test cases are executed.
|
35
|
+
config.active_support.test_order = :random
|
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,262 @@
|
|
1
|
+
# Use this hook to configure devise mailer, warden hooks and so forth.
|
2
|
+
# Many of these configuration options can be set straight in your model.
|
3
|
+
Devise.setup do |config|
|
4
|
+
# The secret key used by Devise. Devise uses this key to generate
|
5
|
+
# random tokens. Changing this key will render invalid all existing
|
6
|
+
# confirmation, reset password and unlock tokens in the database.
|
7
|
+
# Devise will use the `secret_key_base` on Rails 4+ applications as its `secret_key`
|
8
|
+
# by default. You can change it below and use your own secret key.
|
9
|
+
# config.secret_key = 'c089d0a9680e79caa115f60d878ff4726e44d2782ce9401672c0921239aecdbfa4bdef29cca6b7557adefcc092fd93b8ad30d01b804c93952f970f35f832f63e'
|
10
|
+
|
11
|
+
# ==> Mailer Configuration
|
12
|
+
# Configure the e-mail address which will be shown in Devise::Mailer,
|
13
|
+
# note that it will be overwritten if you use your own mailer class
|
14
|
+
# with default "from" parameter.
|
15
|
+
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
|
16
|
+
|
17
|
+
# Configure the class responsible to send e-mails.
|
18
|
+
# config.mailer = 'Devise::Mailer'
|
19
|
+
|
20
|
+
# ==> ORM configuration
|
21
|
+
# Load and configure the ORM. Supports :active_record (default) and
|
22
|
+
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
23
|
+
# available as additional gems.
|
24
|
+
require 'devise/orm/active_record'
|
25
|
+
|
26
|
+
# ==> Configuration for any authentication mechanism
|
27
|
+
# Configure which keys are used when authenticating a user. The default is
|
28
|
+
# just :email. You can configure it to use [:username, :subdomain], so for
|
29
|
+
# authenticating a user, both parameters are required. Remember that those
|
30
|
+
# parameters are used only when authenticating and not when retrieving from
|
31
|
+
# session. If you need permissions, you should implement that in a before filter.
|
32
|
+
# You can also supply a hash where the value is a boolean determining whether
|
33
|
+
# or not authentication should be aborted when the value is not present.
|
34
|
+
# config.authentication_keys = [:email]
|
35
|
+
|
36
|
+
# Configure parameters from the request object used for authentication. Each entry
|
37
|
+
# given should be a request method and it will automatically be passed to the
|
38
|
+
# find_for_authentication method and considered in your model lookup. For instance,
|
39
|
+
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
40
|
+
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
41
|
+
# config.request_keys = []
|
42
|
+
|
43
|
+
# Configure which authentication keys should be case-insensitive.
|
44
|
+
# These keys will be downcased upon creating or modifying a user and when used
|
45
|
+
# to authenticate or find a user. Default is :email.
|
46
|
+
config.case_insensitive_keys = [:email]
|
47
|
+
|
48
|
+
# Configure which authentication keys should have whitespace stripped.
|
49
|
+
# These keys will have whitespace before and after removed upon creating or
|
50
|
+
# modifying a user and when used to authenticate or find a user. Default is :email.
|
51
|
+
config.strip_whitespace_keys = [:email]
|
52
|
+
|
53
|
+
# Tell if authentication through request.params is enabled. True by default.
|
54
|
+
# It can be set to an array that will enable params authentication only for the
|
55
|
+
# given strategies, for example, `config.params_authenticatable = [:database]` will
|
56
|
+
# enable it only for database (email + password) authentication.
|
57
|
+
# config.params_authenticatable = true
|
58
|
+
|
59
|
+
# Tell if authentication through HTTP Auth is enabled. False by default.
|
60
|
+
# It can be set to an array that will enable http authentication only for the
|
61
|
+
# given strategies, for example, `config.http_authenticatable = [:database]` will
|
62
|
+
# enable it only for database authentication. The supported strategies are:
|
63
|
+
# :database = Support basic authentication with authentication key + password
|
64
|
+
# config.http_authenticatable = false
|
65
|
+
|
66
|
+
# If 401 status code should be returned for AJAX requests. True by default.
|
67
|
+
# config.http_authenticatable_on_xhr = true
|
68
|
+
|
69
|
+
# The realm used in Http Basic Authentication. 'Application' by default.
|
70
|
+
# config.http_authentication_realm = 'Application'
|
71
|
+
|
72
|
+
# It will change confirmation, password recovery and other workflows
|
73
|
+
# to behave the same regardless if the e-mail provided was right or wrong.
|
74
|
+
# Does not affect registerable.
|
75
|
+
# config.paranoid = true
|
76
|
+
|
77
|
+
# By default Devise will store the user in session. You can skip storage for
|
78
|
+
# particular strategies by setting this option.
|
79
|
+
# Notice that if you are skipping storage for all authentication paths, you
|
80
|
+
# may want to disable generating routes to Devise's sessions controller by
|
81
|
+
# passing skip: :sessions to `devise_for` in your config/routes.rb
|
82
|
+
config.skip_session_storage = [:http_auth]
|
83
|
+
|
84
|
+
# By default, Devise cleans up the CSRF token on authentication to
|
85
|
+
# avoid CSRF token fixation attacks. This means that, when using AJAX
|
86
|
+
# requests for sign in and sign up, you need to get a new CSRF token
|
87
|
+
# from the server. You can disable this option at your own risk.
|
88
|
+
# config.clean_up_csrf_token_on_authentication = true
|
89
|
+
|
90
|
+
# ==> Configuration for :database_authenticatable
|
91
|
+
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
92
|
+
# using other encryptors, it sets how many times you want the password re-encrypted.
|
93
|
+
#
|
94
|
+
# Limiting the stretches to just one in testing will increase the performance of
|
95
|
+
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
96
|
+
# a value less than 10 in other environments. Note that, for bcrypt (the default
|
97
|
+
# encryptor), the cost increases exponentially with the number of stretches (e.g.
|
98
|
+
# a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
|
99
|
+
config.stretches = Rails.env.test? ? 1 : 10
|
100
|
+
|
101
|
+
# Setup a pepper to generate the encrypted password.
|
102
|
+
# config.pepper = 'db8d6330bb913cc3e94cfdae78ecc4510d855b24dab95452844a5d7057d5bdbc31d8325f75d548a08988bedcde04c7d448f48149fa428d8a9bd535539467e421'
|
103
|
+
|
104
|
+
# ==> Configuration for :confirmable
|
105
|
+
# A period that the user is allowed to access the website even without
|
106
|
+
# confirming their account. For instance, if set to 2.days, the user will be
|
107
|
+
# able to access the website for two days without confirming their account,
|
108
|
+
# access will be blocked just in the third day. Default is 0.days, meaning
|
109
|
+
# the user cannot access the website without confirming their account.
|
110
|
+
# config.allow_unconfirmed_access_for = 2.days
|
111
|
+
|
112
|
+
# A period that the user is allowed to confirm their account before their
|
113
|
+
# token becomes invalid. For example, if set to 3.days, the user can confirm
|
114
|
+
# their account within 3 days after the mail was sent, but on the fourth day
|
115
|
+
# their account can't be confirmed with the token any more.
|
116
|
+
# Default is nil, meaning there is no restriction on how long a user can take
|
117
|
+
# before confirming their account.
|
118
|
+
# config.confirm_within = 3.days
|
119
|
+
|
120
|
+
# If true, requires any email changes to be confirmed (exactly the same way as
|
121
|
+
# initial account confirmation) to be applied. Requires additional unconfirmed_email
|
122
|
+
# db field (see migrations). Until confirmed, new email is stored in
|
123
|
+
# unconfirmed_email column, and copied to email column on successful confirmation.
|
124
|
+
config.reconfirmable = true
|
125
|
+
|
126
|
+
# Defines which key will be used when confirming an account
|
127
|
+
# config.confirmation_keys = [:email]
|
128
|
+
|
129
|
+
# ==> Configuration for :rememberable
|
130
|
+
# The time the user will be remembered without asking for credentials again.
|
131
|
+
# config.remember_for = 2.weeks
|
132
|
+
|
133
|
+
# Invalidates all the remember me tokens when the user signs out.
|
134
|
+
config.expire_all_remember_me_on_sign_out = true
|
135
|
+
|
136
|
+
# If true, extends the user's remember period when remembered via cookie.
|
137
|
+
# config.extend_remember_period = false
|
138
|
+
|
139
|
+
# Options to be passed to the created cookie. For instance, you can set
|
140
|
+
# secure: true in order to force SSL only cookies.
|
141
|
+
# config.rememberable_options = {}
|
142
|
+
|
143
|
+
# ==> Configuration for :validatable
|
144
|
+
# Range for password length.
|
145
|
+
config.password_length = 8..72
|
146
|
+
|
147
|
+
# Email regex used to validate email formats. It simply asserts that
|
148
|
+
# one (and only one) @ exists in the given string. This is mainly
|
149
|
+
# to give user feedback and not to assert the e-mail validity.
|
150
|
+
# config.email_regexp = /\A[^@]+@[^@]+\z/
|
151
|
+
|
152
|
+
# ==> Configuration for :timeoutable
|
153
|
+
# The time you want to timeout the user session without activity. After this
|
154
|
+
# time the user will be asked for credentials again. Default is 30 minutes.
|
155
|
+
# config.timeout_in = 30.minutes
|
156
|
+
|
157
|
+
# ==> Configuration for :lockable
|
158
|
+
# Defines which strategy will be used to lock an account.
|
159
|
+
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
160
|
+
# :none = No lock strategy. You should handle locking by yourself.
|
161
|
+
# config.lock_strategy = :failed_attempts
|
162
|
+
|
163
|
+
# Defines which key will be used when locking and unlocking an account
|
164
|
+
# config.unlock_keys = [:email]
|
165
|
+
|
166
|
+
# Defines which strategy will be used to unlock an account.
|
167
|
+
# :email = Sends an unlock link to the user email
|
168
|
+
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
169
|
+
# :both = Enables both strategies
|
170
|
+
# :none = No unlock strategy. You should handle unlocking by yourself.
|
171
|
+
# config.unlock_strategy = :both
|
172
|
+
|
173
|
+
# Number of authentication tries before locking an account if lock_strategy
|
174
|
+
# is failed attempts.
|
175
|
+
# config.maximum_attempts = 20
|
176
|
+
|
177
|
+
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
178
|
+
# config.unlock_in = 1.hour
|
179
|
+
|
180
|
+
# Warn on the last attempt before the account is locked.
|
181
|
+
# config.last_attempt_warning = true
|
182
|
+
|
183
|
+
# ==> Configuration for :recoverable
|
184
|
+
#
|
185
|
+
# Defines which key will be used when recovering the password for an account
|
186
|
+
# config.reset_password_keys = [:email]
|
187
|
+
|
188
|
+
# Time interval you can reset your password with a reset password key.
|
189
|
+
# Don't put a too small interval or your users won't have the time to
|
190
|
+
# change their passwords.
|
191
|
+
config.reset_password_within = 6.hours
|
192
|
+
|
193
|
+
# When set to false, does not sign a user in automatically after their password is
|
194
|
+
# reset. Defaults to true, so a user is signed in automatically after a reset.
|
195
|
+
# config.sign_in_after_reset_password = true
|
196
|
+
|
197
|
+
# ==> Configuration for :encryptable
|
198
|
+
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
199
|
+
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
200
|
+
# :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
|
201
|
+
# and :restful_authentication_sha1 (then you should set stretches to 10, and copy
|
202
|
+
# REST_AUTH_SITE_KEY to pepper).
|
203
|
+
#
|
204
|
+
# Require the `devise-encryptable` gem when using anything other than bcrypt
|
205
|
+
# config.encryptor = :sha512
|
206
|
+
|
207
|
+
# ==> Scopes configuration
|
208
|
+
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
209
|
+
# "users/sessions/new". It's turned off by default because it's slower if you
|
210
|
+
# are using only default views.
|
211
|
+
# config.scoped_views = false
|
212
|
+
|
213
|
+
# Configure the default scope given to Warden. By default it's the first
|
214
|
+
# devise role declared in your routes (usually :user).
|
215
|
+
# config.default_scope = :user
|
216
|
+
|
217
|
+
# Set this configuration to false if you want /users/sign_out to sign out
|
218
|
+
# only the current scope. By default, Devise signs out all scopes.
|
219
|
+
# config.sign_out_all_scopes = true
|
220
|
+
|
221
|
+
# ==> Navigation configuration
|
222
|
+
# Lists the formats that should be treated as navigational. Formats like
|
223
|
+
# :html, should redirect to the sign in page when the user does not have
|
224
|
+
# access, but formats like :xml or :json, should return 401.
|
225
|
+
#
|
226
|
+
# If you have any extra navigational formats, like :iphone or :mobile, you
|
227
|
+
# should add them to the navigational formats lists.
|
228
|
+
#
|
229
|
+
# The "*/*" below is required to match Internet Explorer requests.
|
230
|
+
# config.navigational_formats = ['*/*', :html]
|
231
|
+
|
232
|
+
# The default HTTP method used to sign out a resource. Default is :delete.
|
233
|
+
config.sign_out_via = :delete
|
234
|
+
|
235
|
+
# ==> OmniAuth
|
236
|
+
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
237
|
+
# up on your models and hooks.
|
238
|
+
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
|
239
|
+
|
240
|
+
# ==> Warden configuration
|
241
|
+
# If you want to use other strategies, that are not supported by Devise, or
|
242
|
+
# change the failure app, you can configure them inside the config.warden block.
|
243
|
+
#
|
244
|
+
# config.warden do |manager|
|
245
|
+
# manager.intercept_401 = false
|
246
|
+
# manager.default_strategies(scope: :user).unshift :some_external_strategy
|
247
|
+
# end
|
248
|
+
|
249
|
+
# ==> Mountable engine configurations
|
250
|
+
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
251
|
+
# is mountable, there are some extra configurations to be taken into account.
|
252
|
+
# The following options are available, assuming the engine is mounted as:
|
253
|
+
#
|
254
|
+
# mount MyEngine, at: '/my_engine'
|
255
|
+
#
|
256
|
+
# The router that invoked `devise_for`, in the example above, would be:
|
257
|
+
# config.router_name = :my_engine
|
258
|
+
#
|
259
|
+
# When using OmniAuth, Devise cannot automatically set OmniAuth path,
|
260
|
+
# so you need to do it manually. For the users scope, it would be:
|
261
|
+
# config.omniauth_path_prefix = '/my_engine/users/auth'
|
262
|
+
end
|