any_login 1.4.3 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +22 -7
- data/app/assets/javascripts/any_login/application.js +23 -0
- data/app/assets/stylesheets/any_login/application.css +96 -0
- data/app/controllers/any_login/application_controller.rb +14 -2
- data/app/views/any_login/_any_login.html.erb +8 -135
- data/app/views/any_login/svg/_user.html.erb +13 -0
- data/config/routes.rb +2 -0
- data/lib/any_login/engine.rb +20 -29
- data/{app/helpers/any_login/application_helper.rb → lib/any_login/helpers.rb} +3 -7
- data/lib/any_login/providers/authlogic.rb +0 -2
- data/lib/any_login/providers/clearance.rb +0 -4
- data/lib/any_login/providers/devise.rb +0 -2
- data/lib/any_login/providers/sorcery.rb +0 -2
- data/lib/any_login/version.rb +1 -1
- data/lib/any_login.rb +3 -0
- data/test/authlogic/integration/navigation_test.rb +25 -0
- data/test/authlogic/test_helper_authlogic.rb +5 -0
- data/test/clearance/integration/navigation_test.rb +24 -0
- data/test/clearance/test_helper_clearance.rb +5 -0
- data/test/devise/integration/navigation_test.rb +26 -0
- data/test/devise/test_helper_devise.rb +5 -0
- data/test/{any_login_test.rb → devise/unit/any_login_test.rb} +1 -1
- data/test/{any_login → devise/unit}/collection_test.rb +1 -1
- data/test/{dummy-authlogic → rails_apps/authlogic}/Rakefile +1 -1
- data/test/rails_apps/authlogic/app/assets/config/manifest.js +1 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/application_controller.rb +0 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/home_controller.rb +1 -1
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/user_sessions_controller.rb +0 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/models/user.rb +0 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/models/user_session.rb +0 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/home/about.html.erb +0 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/home/index.html.erb +0 -0
- data/test/rails_apps/authlogic/app/views/layouts/application.html.erb +29 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/shared/_footer.html.erb +0 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/shared/_header.html.erb +0 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/user_sessions/new.html.erb +0 -0
- data/test/rails_apps/authlogic/bin/rails +4 -0
- data/test/rails_apps/authlogic/bin/rake +4 -0
- data/test/rails_apps/authlogic/bin/setup +33 -0
- data/test/rails_apps/authlogic/config/application.rb +25 -0
- data/test/rails_apps/authlogic/config/boot.rb +5 -0
- data/test/{dummy-sorcery → rails_apps/authlogic}/config/database.yml +3 -3
- data/test/{dummy-authlogic → rails_apps/authlogic}/config/environment.rb +1 -1
- data/test/rails_apps/authlogic/config/environments/development.rb +70 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/config/environments/production.rb +40 -26
- data/test/rails_apps/authlogic/config/environments/test.rb +60 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/config/initializers/any_login.rb +1 -0
- data/test/rails_apps/authlogic/config/initializers/assets.rb +12 -0
- data/test/rails_apps/authlogic/config/initializers/filter_parameter_logging.rb +8 -0
- data/test/{dummy-clearance → rails_apps/authlogic}/config/initializers/inflections.rb +4 -4
- data/test/{dummy-sorcery → rails_apps/authlogic}/config/initializers/sorcery.rb +0 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/config/locales/en.yml +13 -3
- data/test/{dummy-authlogic → rails_apps/authlogic}/config/routes.rb +0 -0
- data/test/rails_apps/authlogic/config/storage.yml +34 -0
- data/test/{dummy-clearance → rails_apps/authlogic}/config.ru +3 -1
- data/test/{dummy-clearance → rails_apps/authlogic}/db/migrate/20150907190739_create_users.rb +1 -1
- data/test/{dummy-sorcery → rails_apps/authlogic}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
- data/test/{dummy-authlogic → rails_apps/authlogic}/db/migrate/20150928123254_change_users.rb +1 -1
- data/test/rails_apps/authlogic/db/migrate/20220825195914_populate_test_users.rb +21 -0
- data/test/rails_apps/authlogic/db/schema.rb +46 -0
- data/test/{dummy-authlogic → rails_apps/authlogic}/public/404.html +6 -6
- data/test/{dummy-clearance → rails_apps/authlogic}/public/422.html +6 -6
- data/test/{dummy-clearance → rails_apps/authlogic}/public/500.html +6 -6
- data/test/{dummy-authlogic → rails_apps/authlogic}/public/favicon.ico +0 -0
- data/test/{dummy-sorcery → rails_apps/clearance}/Rakefile +1 -1
- data/test/rails_apps/clearance/app/assets/config/manifest.js +1 -0
- data/test/{dummy-clearance → rails_apps/clearance}/app/controllers/application_controller.rb +0 -0
- data/test/{dummy-clearance → rails_apps/clearance}/app/controllers/home_controller.rb +0 -0
- data/test/{dummy-clearance → rails_apps/clearance}/app/models/user.rb +0 -0
- data/test/{dummy-clearance → rails_apps/clearance}/app/models/user_session.rb +0 -0
- data/test/{dummy-clearance → rails_apps/clearance}/app/views/home/about.html.erb +0 -0
- data/test/{dummy-clearance → rails_apps/clearance}/app/views/home/index.html.erb +0 -0
- data/test/rails_apps/clearance/app/views/layouts/application.html.erb +29 -0
- data/test/{dummy-clearance → rails_apps/clearance}/app/views/shared/_footer.html.erb +0 -0
- data/test/{dummy-clearance → rails_apps/clearance}/app/views/shared/_header.html.erb +0 -0
- data/test/rails_apps/clearance/bin/rails +4 -0
- data/test/rails_apps/clearance/bin/rake +4 -0
- data/test/rails_apps/clearance/bin/setup +33 -0
- data/test/rails_apps/clearance/config/application.rb +25 -0
- data/test/rails_apps/clearance/config/boot.rb +5 -0
- data/test/{dummy → rails_apps/clearance}/config/database.yml +3 -3
- data/test/{dummy-clearance → rails_apps/clearance}/config/environment.rb +1 -1
- data/test/rails_apps/clearance/config/environments/development.rb +70 -0
- data/test/{dummy → rails_apps/clearance}/config/environments/production.rb +40 -26
- data/test/rails_apps/clearance/config/environments/test.rb +60 -0
- data/test/{dummy-clearance → rails_apps/clearance}/config/initializers/any_login.rb +1 -0
- data/test/rails_apps/clearance/config/initializers/assets.rb +12 -0
- data/test/{dummy-clearance → rails_apps/clearance}/config/initializers/clearance.rb +0 -0
- data/test/rails_apps/clearance/config/initializers/filter_parameter_logging.rb +8 -0
- data/test/{dummy-sorcery → rails_apps/clearance}/config/initializers/inflections.rb +4 -4
- data/test/{dummy-sorcery → rails_apps/clearance}/config/locales/en.yml +13 -3
- data/test/{dummy-clearance → rails_apps/clearance}/config/routes.rb +0 -0
- data/test/rails_apps/clearance/config/storage.yml +34 -0
- data/test/{dummy-sorcery → rails_apps/clearance}/config.ru +3 -1
- data/test/{dummy-sorcery → rails_apps/clearance}/db/migrate/20150907190739_create_users.rb +1 -1
- data/test/{dummy-authlogic → rails_apps/clearance}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
- data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20150909210357_populate_test_users.rb +6 -6
- data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20150928123254_change_users.rb +1 -1
- data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20151007170422_add_clearance_to_users.rb +1 -1
- data/test/rails_apps/clearance/db/schema.rb +49 -0
- data/test/{dummy-sorcery → rails_apps/clearance}/public/404.html +6 -6
- data/test/{dummy-sorcery → rails_apps/clearance}/public/422.html +6 -6
- data/test/{dummy-sorcery → rails_apps/clearance}/public/500.html +6 -6
- data/test/{dummy-clearance → rails_apps/clearance}/public/favicon.ico +0 -0
- data/test/{dummy → rails_apps/devise}/Rakefile +1 -1
- data/test/rails_apps/devise/app/assets/config/manifest.js +1 -0
- data/test/rails_apps/devise/app/controllers/application_controller.rb +2 -0
- data/test/{dummy → rails_apps/devise}/app/controllers/home_controller.rb +0 -0
- data/test/{dummy → rails_apps/devise}/app/models/user.rb +0 -0
- data/test/{dummy-sorcery → rails_apps/devise}/app/views/home/about.html.erb +0 -0
- data/test/{dummy → rails_apps/devise}/app/views/home/index.html.erb +0 -0
- data/test/rails_apps/devise/app/views/layouts/application.html.erb +29 -0
- data/test/{dummy → rails_apps/devise}/app/views/shared/_footer.html.erb +0 -1
- data/test/{dummy-sorcery → rails_apps/devise}/app/views/shared/_header.html.erb +0 -0
- data/test/rails_apps/devise/bin/rails +4 -0
- data/test/rails_apps/devise/bin/rake +4 -0
- data/test/rails_apps/devise/bin/setup +33 -0
- data/test/rails_apps/devise/config/application.rb +25 -0
- data/test/rails_apps/devise/config/boot.rb +5 -0
- data/test/{dummy-authlogic → rails_apps/devise}/config/database.yml +3 -3
- data/test/{dummy → rails_apps/devise}/config/environment.rb +1 -1
- data/test/rails_apps/devise/config/environments/development.rb +67 -0
- data/test/{dummy-sorcery → rails_apps/devise}/config/environments/production.rb +40 -26
- data/test/rails_apps/devise/config/environments/test.rb +60 -0
- data/test/{dummy → rails_apps/devise}/config/initializers/any_login.rb +1 -0
- data/test/rails_apps/devise/config/initializers/assets.rb +12 -0
- data/test/{dummy → rails_apps/devise}/config/initializers/devise.rb +0 -0
- data/test/rails_apps/devise/config/initializers/filter_parameter_logging.rb +8 -0
- data/test/{dummy-authlogic → rails_apps/devise}/config/initializers/inflections.rb +4 -4
- data/test/{dummy → rails_apps/devise}/config/locales/en.yml +13 -3
- data/test/{dummy → rails_apps/devise}/config/routes.rb +0 -0
- data/test/rails_apps/devise/config/storage.yml +34 -0
- data/test/{dummy-authlogic → rails_apps/devise}/config.ru +3 -1
- data/test/{dummy-authlogic → rails_apps/devise}/db/migrate/20150907190739_create_users.rb +1 -1
- data/test/{dummy → rails_apps/devise}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
- data/test/rails_apps/devise/db/migrate/20150909210357_populate_test_users.rb +21 -0
- data/test/rails_apps/devise/db/schema.rb +35 -0
- data/test/{dummy → rails_apps/devise}/public/404.html +6 -6
- data/test/{dummy-authlogic → rails_apps/devise}/public/422.html +6 -6
- data/test/{dummy-authlogic → rails_apps/devise}/public/500.html +6 -6
- data/test/{dummy-sorcery → rails_apps/devise}/public/favicon.ico +0 -0
- data/test/{dummy-clearance → rails_apps/sorcery}/Rakefile +1 -1
- data/test/rails_apps/sorcery/app/assets/config/manifest.js +1 -0
- data/test/rails_apps/sorcery/app/controllers/application_controller.rb +2 -0
- data/test/{dummy-sorcery → rails_apps/sorcery}/app/controllers/home_controller.rb +0 -0
- data/test/{dummy-sorcery → rails_apps/sorcery}/app/models/user.rb +0 -0
- data/test/{dummy → rails_apps/sorcery}/app/views/home/about.html.erb +0 -0
- data/test/{dummy-sorcery → rails_apps/sorcery}/app/views/home/index.html.erb +0 -0
- data/test/rails_apps/sorcery/app/views/layouts/application.html.erb +29 -0
- data/test/{dummy-sorcery → rails_apps/sorcery}/app/views/shared/_footer.html.erb +0 -0
- data/test/{dummy → rails_apps/sorcery}/app/views/shared/_header.html.erb +0 -0
- data/test/rails_apps/sorcery/bin/rails +4 -0
- data/test/rails_apps/sorcery/bin/rake +4 -0
- data/test/rails_apps/sorcery/bin/setup +33 -0
- data/test/rails_apps/sorcery/config/application.rb +25 -0
- data/test/rails_apps/sorcery/config/boot.rb +5 -0
- data/test/{dummy-clearance → rails_apps/sorcery}/config/database.yml +3 -3
- data/test/{dummy-sorcery → rails_apps/sorcery}/config/environment.rb +1 -1
- data/test/rails_apps/sorcery/config/environments/development.rb +70 -0
- data/test/{dummy-clearance → rails_apps/sorcery}/config/environments/production.rb +40 -26
- data/test/rails_apps/sorcery/config/environments/test.rb +60 -0
- data/test/{dummy-sorcery → rails_apps/sorcery}/config/initializers/any_login.rb +1 -0
- data/test/rails_apps/sorcery/config/initializers/assets.rb +12 -0
- data/test/rails_apps/sorcery/config/initializers/filter_parameter_logging.rb +8 -0
- data/test/{dummy → rails_apps/sorcery}/config/initializers/inflections.rb +4 -4
- data/test/rails_apps/sorcery/config/initializers/sorcery.rb +463 -0
- data/test/{dummy-clearance → rails_apps/sorcery}/config/locales/en.yml +13 -3
- data/test/{dummy-sorcery → rails_apps/sorcery}/config/routes.rb +0 -0
- data/test/rails_apps/sorcery/config/storage.yml +34 -0
- data/test/{dummy → rails_apps/sorcery}/config.ru +3 -1
- data/test/{dummy → rails_apps/sorcery}/db/migrate/20150907190739_create_users.rb +1 -1
- data/test/{dummy-clearance → rails_apps/sorcery}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
- data/test/rails_apps/sorcery/db/migrate/20150909210357_add_role_to_users.rb +6 -0
- data/test/{dummy-sorcery → rails_apps/sorcery}/db/migrate/20151019154558_sorcery_core.rb +2 -2
- data/test/rails_apps/sorcery/db/migrate/20220827040518_populate_test_users.rb +20 -0
- data/test/rails_apps/sorcery/db/schema.rb +37 -0
- data/test/{dummy-clearance → rails_apps/sorcery}/public/404.html +6 -6
- data/test/{dummy → rails_apps/sorcery}/public/422.html +6 -6
- data/test/{dummy → rails_apps/sorcery}/public/500.html +6 -6
- data/test/{dummy → rails_apps/sorcery}/public/favicon.ico +0 -0
- data/test/sorcery/integration/navigation_test.rb +24 -0
- data/test/sorcery/test_helper_sorcery.rb +5 -0
- data/test/test_helper_common.rb +25 -0
- metadata +350 -791
- data/app/assets/images/any_login/person.png +0 -0
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
- 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 +0 -15
- data/test/dummy/app/assets/javascripts/bootstrap.min.js +0 -7
- data/test/dummy/app/assets/javascripts/home.js +0 -2
- data/test/dummy/app/assets/stylesheets/application.css +0 -22
- data/test/dummy/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
- data/test/dummy/app/assets/stylesheets/bootstrap.min.css +0 -5
- data/test/dummy/app/assets/stylesheets/home.css +0 -4
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/helpers/home_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -22
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config/application.rb +0 -26
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -42
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/devise.en.yml +0 -60
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20150909210357_populate_test_users.rb +0 -21
- data/test/dummy/db/schema.rb +0 -37
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -25
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-D/-Dg5ZkTls3rHNa2l35Y2GMEXbJnvHY0-Egoq3V3KvGY.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-S/-SuAD2dP0cSgjTq3tP0swCy0jyqmR6tInZKuAFBcVp8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/04/04oTddx5RijUeZloooZ1Pm3k8cfkpg-3477aFaNANq4.cache +0 -5
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0Q/0QThAlIyHET8vLk7e4zmbnV9ZMHI5g4KcJu3By5L0xg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0s/0s938iaOX2NBJ-elmk5V7j6XyYC7WxwS57x4aSiyH54.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1l/1l2LyYtD0hI8QJI83gSEdwWsnqaFREIwwRAqXquREMY.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2c/2cjCUV2SoZNb4a7U-CVWPBsrSAT_805cWMBQqcDuR8U.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3N/3Ns3xAyH95BGx95LC8MPlnLNfnm1HQC-LRJ4n8Zlbhs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3p/3pTb9cnqbyj8oSbBnv-vO5Snw8FMgSpsEqhfftd6KM8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5P/5Pf0YftQI-ZQIqD1eArSl11t-n_RMCnpNAm7PJbPMg8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6L/6L8OhKpEg9OopqEks1Eg3Yn2nNpXkMUcYB3Ct90tmOI.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6R/6R8Ab2VVfHjOSQ8bJdbYqEEpI_BwsOTGMIWrs7CPiA8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6w/6wSsp-himpVCHqd2MwCqg5qpg9qvaBZK_QetzKx6fhg.cache +0 -4
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7U/7Urlldd4JqrpBAeGSO40LnBaBJUapZRia0-eA3BGgnQ.cache +0 -4
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9X/9Xc8YFlDJRwahzhOQ9-q0-FtnQcMniRnX8jJlHTROm8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AU/AUUQfp0ZTTAPUPDe8TEwY9U4B7rPF5tbb3DTaahfXGg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bx/BxIh9R3OGw4rXVuqRbI8E4_FFNuY0pqWtEVgO_M47hE.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cu/CuKQFQrECTYFUbTL112t_9VxYRa-qPAtFh_puj554eI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cu/CuNnn165lBWZkKCjdY_joHCV8qyyN-UNj2O0ZHBSddU.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FB/FBHo9LuH0xkwMXXXx95xeALLysZQEJGD_jAXz0L5D9c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fg/Fgi2PW3c1qK1CS8Mp5xq_m4Frc-Y4fz6MgbB--5_DFg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fo/FoMKiqVuXZlqXKS5sZ2CepOYjMVxk3XUCUC8z96dGlk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fw/FwiXjnLLgGTbJ2tZcnFWOp30FIQFbt42kxicUMneUFU.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/GA/GAdJwtpszZDaIVjZ1vy_hhrduwyRVZ-UVvY1VWHC1F8.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/I3/I3nUL1109ON75W3zxAKo1beybc7C4ZS1LGTLiZg2ej8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/IH/IHEtgWG-bM5JdeS4MpjATwdDPniVNIk31MgI5xCGuAw.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/J-/J-4oPSPBOYXvlx3v1bU5yFRhWKIt9Pbd-jTh4ARZTAo.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/L5/L55mKPIZW4yu8-ei7nxwOfhFbR2XEGnrlMdydgpfai8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mu/MuFc7AzSpPX16nZtGyUj6Jm09C_4L5gsM0FzPOBIwY4.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Na/NaOPJqxpTLnXnQ4IX8jEw3cvYo2SrqrlUYeZW2UzoOk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/On/OnResjr8j7pB3v8AMPlqruJ_597sdzzOxgAmjDuwa3w.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/P8/P8ytY6J2lveAeG2fMvyy8r9-tPg7fiN_3Ab7V7bQqTA.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PV/PVK-jZacxU1cWegzoBx4MuUxIFJx_s7WSdxTCeSJ2b4.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QI/QI0_r-lhQ11MgB5hl0iDmZkYUP2lhIbinlNV6z-CADI.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QK/QKxzR5Cw94Oy0fL3B1xQmewTiZ6syQcpkWvN_q51-hs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qr/QrrG5X3SHARlU3cX7xW8wIwoKn4WwLZmZnr43pECtq8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RI/RICxiF1Y7tRr1144F7mHmJPW-mEKzj8mvHddAM2tiiM.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RI/RIZ9Fwy55ZmMRMNm2m3o4FB0CmGeRKIDhRbjHCaG_2U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TK/TKL8jyLcA2JcZ3puvU_LSHcONp-_5Z-77GJRSThtC7A.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Uf/UfrjkaQSDo_CFzC0sczZIJW0X-owh9Tnm1xLkODaJ1I.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/W8/W8nAt_ntq-eifnenvYEnaPn1yPvEs66qr95bxpARWMQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WR/WRkATZ__BM8FSA_ps96QuKbjF1qxdXUQ2R0DbA1NiyA.cache +0 -4
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WS/WShZwpbrt5Q9NU5ngKHDGLed1e8DSQC7UbTdCbsgsT8.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/X9/X9CCaGqqaUv4WO8YGDLvsoMRI-YE_hZ7zMPXI8r12ts.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/XX/XXAHmbeg_TfKNFVv5Bke0lxLHJg2JKBL6_niQsSaNWU.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YW/YWz7RsbYEyV5W5K-N2XAZG4-LH1XcsjBxFfO-tCGlDE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yl/YlW61yeKVQbCaGB5KQ9x5UBQKkcFCI080Uagi4qUfMM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZP/ZPAB02xJo6ZN3L6OfzyWEgh36ZS4MGSuk_e7CAwfanM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eU/eUX6c56Kt_pz8fPl14NxlFJfGidrugVhIMj1gjs97pQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eq/eq-hOvJwIQGfeaOxPvLLoSgspYnPt1qmAvfzhIjiQ8I.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/f5/f54V076hGyLBoyXVqTSQ4TYLpxxfpE4rfnZKmPlkYD0.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fp/fpeHoSYPNIxuVWmz3_zN7Vbi23P-F3HPYv-XpKpLZFg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/g0/g0C0AU1L_x5sxYFr6z0NE79m0pF6-CXBH6VFPVxgCpM.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gT/gTC13k-_pje-P_LWe83hQ9_3C5cinGmG8ckrar4b7vE.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gT/gTkUgaB4k61_B3ydTNzFB012pqNr-7E4KO2cVtNLDkU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/h8/h8MyXG62sm-uRDQiYg6CH_Z-EtBPEai0euDPYa2ZOLQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jJ/jJMUuOxfxNdR_iw6_Atzc9BQIkzNyweek8qCfDM1620.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kh/khZgphuPeZYzQwBZrBEVGDBq4QQAvZ_CUfNsM15KtXc.cache +0 -4
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kw/kwrJPJzQnUZy6XwmBrFMJjah6mZ9qNB8nStiWPrGWhs.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/l5/l5rpSHE1xK2jT7OGZDVOzAUK0LgmIMJAhVJQGaGWQ00.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/my/myQlTWBqjEV7aXVwBtOaHIt42To2MmC_zlFFqkPxjmw.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ni/niVUoVEMUptq6L7GFj6Df_vajoeWEYtSF4BHTsuLmfE.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/o9/o9K2isMkub-cGtNTwR7zJ2UkWW-Q3C2vrMc7vyG6cQk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pI/pIVqc5tXAaLDSQbx4dvcFawX1iRPdcw_JTjDIE6Y0eM.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pn/pnW3u_1AN48ig6ngefI89y96xoSlvnJurx-e3J-leoE.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qD/qDNkKDUNVSrSAWT8yqnkWcqqtxLn4VA_kyk8JX1pKOU.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/s-/s-mG18OjpD8IKlOk-YOYmUYFC16rIaqqtnmGQYSEPIY.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sY/sYqD_6_DLhWbWmBm4ZOKDNI8bKtF7czThI6GXwmFlMU.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ss/ssS2x0Wl67rwXHaVHsh6CO7ayn9fQ5saIwATKN6O-nI.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/t1/t1w3t0uQeIB6mj-VliOTOvNCAcjMoQdBxMlac-VXXUk.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tV/tVUTHHlY5TMaPTcTIRE487ouNUpGmQVD_Ab6VAuDGw0.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tu/tuEq0SXuQh3A3UWa1dGXRLlKGMt6evB5YqwFJRyPvIE.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v-/v-N2813JF9StwoLTE-8AAriPnHbuvVx-m9DzTCXCH9M.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/x0/x00ZU4Y_G6K5u2IqypZTnQIPb--furSWaQfLMsVfEqo.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xC/xCexSNESQ_s5_Nb67lUl0oXgCpdisNQNvtsR-hfgIAo.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xg/xgfY0nnn8IRgObhr6ZixwkE7oqh7Ksdwe2VRgjKNB9A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xp/xp_GvoQomYX5lkhg7vSvVU0DGGy4QG_ldNHacZLqZt0.cache +0 -0
- data/test/dummy-authlogic/README.rdoc +0 -28
- data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
- data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/test/dummy-authlogic/app/assets/javascripts/application.js +0 -15
- data/test/dummy-authlogic/app/assets/javascripts/bootstrap.min.js +0 -7
- data/test/dummy-authlogic/app/assets/javascripts/home.js +0 -2
- data/test/dummy-authlogic/app/assets/stylesheets/application.css +0 -15
- data/test/dummy-authlogic/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
- data/test/dummy-authlogic/app/assets/stylesheets/bootstrap.min.css +0 -5
- data/test/dummy-authlogic/app/assets/stylesheets/home.css +0 -4
- data/test/dummy-authlogic/app/helpers/application_helper.rb +0 -2
- data/test/dummy-authlogic/app/helpers/home_helper.rb +0 -2
- data/test/dummy-authlogic/app/views/layouts/application.html.erb +0 -22
- data/test/dummy-authlogic/bin/bundle +0 -3
- data/test/dummy-authlogic/bin/rails +0 -4
- data/test/dummy-authlogic/bin/rake +0 -4
- data/test/dummy-authlogic/bin/setup +0 -29
- data/test/dummy-authlogic/config/application.rb +0 -26
- data/test/dummy-authlogic/config/boot.rb +0 -5
- data/test/dummy-authlogic/config/environments/development.rb +0 -42
- data/test/dummy-authlogic/config/environments/test.rb +0 -42
- data/test/dummy-authlogic/config/initializers/assets.rb +0 -11
- data/test/dummy-authlogic/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy-authlogic/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy-authlogic/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy-authlogic/config/initializers/mime_types.rb +0 -4
- data/test/dummy-authlogic/config/initializers/session_store.rb +0 -3
- data/test/dummy-authlogic/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy-authlogic/config/locales/devise.en.yml +0 -60
- data/test/dummy-authlogic/config/secrets.yml +0 -22
- data/test/dummy-authlogic/db/development.sqlite3 +0 -0
- data/test/dummy-authlogic/db/migrate/20150909210357_populate_test_users.rb +0 -21
- data/test/dummy-authlogic/db/schema.rb +0 -48
- data/test/dummy-clearance/README.rdoc +0 -28
- data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
- data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/test/dummy-clearance/app/assets/javascripts/application.js +0 -15
- data/test/dummy-clearance/app/assets/javascripts/bootstrap.min.js +0 -7
- data/test/dummy-clearance/app/assets/javascripts/home.js +0 -2
- data/test/dummy-clearance/app/assets/stylesheets/application.css +0 -15
- data/test/dummy-clearance/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
- data/test/dummy-clearance/app/assets/stylesheets/bootstrap.min.css +0 -5
- data/test/dummy-clearance/app/assets/stylesheets/home.css +0 -4
- data/test/dummy-clearance/app/helpers/application_helper.rb +0 -2
- data/test/dummy-clearance/app/helpers/home_helper.rb +0 -2
- data/test/dummy-clearance/app/views/layouts/application.html.erb +0 -22
- data/test/dummy-clearance/app/views/user_sessions/new.html.erb +0 -11
- data/test/dummy-clearance/bin/bundle +0 -3
- data/test/dummy-clearance/bin/rails +0 -4
- data/test/dummy-clearance/bin/rake +0 -4
- data/test/dummy-clearance/bin/setup +0 -29
- data/test/dummy-clearance/config/application.rb +0 -26
- data/test/dummy-clearance/config/boot.rb +0 -5
- data/test/dummy-clearance/config/environments/development.rb +0 -42
- data/test/dummy-clearance/config/environments/test.rb +0 -42
- data/test/dummy-clearance/config/initializers/assets.rb +0 -11
- data/test/dummy-clearance/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy-clearance/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy-clearance/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy-clearance/config/initializers/mime_types.rb +0 -4
- data/test/dummy-clearance/config/initializers/session_store.rb +0 -3
- data/test/dummy-clearance/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy-clearance/config/locales/devise.en.yml +0 -60
- data/test/dummy-clearance/config/secrets.yml +0 -22
- data/test/dummy-clearance/db/development.sqlite3 +0 -0
- data/test/dummy-clearance/db/schema.rb +0 -51
- data/test/dummy-sorcery/README.rdoc +0 -28
- data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
- data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/test/dummy-sorcery/app/assets/javascripts/application.js +0 -15
- data/test/dummy-sorcery/app/assets/javascripts/bootstrap.min.js +0 -7
- data/test/dummy-sorcery/app/assets/javascripts/home.js +0 -2
- data/test/dummy-sorcery/app/assets/stylesheets/application.css +0 -15
- data/test/dummy-sorcery/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
- data/test/dummy-sorcery/app/assets/stylesheets/bootstrap.min.css +0 -5
- data/test/dummy-sorcery/app/assets/stylesheets/home.css +0 -4
- data/test/dummy-sorcery/app/controllers/application_controller.rb +0 -5
- data/test/dummy-sorcery/app/helpers/application_helper.rb +0 -2
- data/test/dummy-sorcery/app/helpers/home_helper.rb +0 -2
- data/test/dummy-sorcery/app/views/layouts/application.html.erb +0 -22
- data/test/dummy-sorcery/bin/bundle +0 -3
- data/test/dummy-sorcery/bin/rails +0 -4
- data/test/dummy-sorcery/bin/rake +0 -4
- data/test/dummy-sorcery/bin/setup +0 -29
- data/test/dummy-sorcery/config/application.rb +0 -26
- data/test/dummy-sorcery/config/boot.rb +0 -5
- data/test/dummy-sorcery/config/environments/development.rb +0 -42
- data/test/dummy-sorcery/config/environments/test.rb +0 -42
- data/test/dummy-sorcery/config/initializers/assets.rb +0 -11
- data/test/dummy-sorcery/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy-sorcery/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy-sorcery/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy-sorcery/config/initializers/mime_types.rb +0 -4
- data/test/dummy-sorcery/config/initializers/session_store.rb +0 -3
- data/test/dummy-sorcery/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy-sorcery/config/locales/devise.en.yml +0 -60
- data/test/dummy-sorcery/config/secrets.yml +0 -22
- data/test/dummy-sorcery/db/migrate/20150909210357_populate_test_users.rb +0 -21
- data/test/dummy-sorcery/db/schema.rb +0 -39
- data/test/integration/navigation_test.rb +0 -8
- data/test/test_helper.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26b0fb1dfbe9f3264c85b6c48f4ee21294d89508d85ba97593bddc40e9e54416
|
4
|
+
data.tar.gz: 47d03dfbcc2c4de800d0be35da07a932d258b4bc515472fc544386d12f7ba67c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0731a0d850049fd8e7a8e7e526c9d150657735f1b134b0879b98c2c2336bb4419f5f90f6524fdce44c7593d9efa42958a32e4d1537316d40eaaeeec8b03e9d3
|
7
|
+
data.tar.gz: 2e0004a1d244d33b754d2de757d5bab74027811130150689a36c29af3db3d075d31f6beb4f1626b90117196e07685a5257df2a7a96e13b940a130f5200def91c
|
data/Rakefile
CHANGED
@@ -14,24 +14,39 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
15
|
end
|
16
16
|
|
17
|
-
APP_RAKEFILE = File.expand_path("../test/
|
17
|
+
APP_RAKEFILE = File.expand_path("../test/rails_apps/devise/Rakefile", __FILE__)
|
18
18
|
load 'rails/tasks/engine.rake'
|
19
19
|
|
20
|
-
|
21
20
|
load 'rails/tasks/statistics.rake'
|
22
21
|
|
23
|
-
|
24
|
-
|
25
22
|
Bundler::GemHelper.install_tasks
|
26
23
|
|
27
24
|
require 'rake/testtask'
|
28
25
|
|
29
|
-
Rake::TestTask.new(:
|
26
|
+
Rake::TestTask.new(:test_devise) do |t|
|
27
|
+
t.libs << 'lib'
|
28
|
+
t.libs << 'test'
|
29
|
+
t.pattern = ['test/devise/**/*_test.rb']
|
30
|
+
t.verbose = false
|
31
|
+
end
|
32
|
+
|
33
|
+
Rake::TestTask.new(:test_authlogic) do |t|
|
30
34
|
t.libs << 'lib'
|
31
35
|
t.libs << 'test'
|
32
|
-
t.pattern = 'test/**/*_test.rb'
|
36
|
+
t.pattern = ['test/authlogic/**/*_test.rb']
|
33
37
|
t.verbose = false
|
34
38
|
end
|
35
39
|
|
40
|
+
Rake::TestTask.new(:test_clearance) do |t|
|
41
|
+
t.libs << 'lib'
|
42
|
+
t.libs << 'test'
|
43
|
+
t.pattern = ['test/clearance/**/*_test.rb']
|
44
|
+
t.verbose = false
|
45
|
+
end
|
36
46
|
|
37
|
-
|
47
|
+
Rake::TestTask.new(:test_sorcery) do |t|
|
48
|
+
t.libs << 'lib'
|
49
|
+
t.libs << 'test'
|
50
|
+
t.pattern = ['test/sorcery/**/*_test.rb']
|
51
|
+
t.verbose = false
|
52
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
function submitOnChange() {
|
2
|
+
document.getElementById('any_login_form').submit();
|
3
|
+
}
|
4
|
+
|
5
|
+
function elementExists(element) {
|
6
|
+
return typeof (element) != 'undefined' && element != null;
|
7
|
+
}
|
8
|
+
|
9
|
+
function addChangeListenerTo(elementId) {
|
10
|
+
let element = document.getElementById(elementId);
|
11
|
+
if (elementExists(element)) {
|
12
|
+
element.addEventListener("change", submitOnChange);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
function setupAnyLoginHandlers() {
|
17
|
+
addChangeListenerTo("back_to_previous_id");
|
18
|
+
addChangeListenerTo("selected_id");
|
19
|
+
}
|
20
|
+
|
21
|
+
['DOMContentLoaded', 'turbolinks:load', 'turbo:load'].forEach(function(e) {
|
22
|
+
window.addEventListener(e, setupAnyLoginHandlers);
|
23
|
+
});
|
@@ -0,0 +1,96 @@
|
|
1
|
+
#any_login {
|
2
|
+
position: fixed;
|
3
|
+
opacity: 0.5;
|
4
|
+
background: #5c4383;
|
5
|
+
color: white;
|
6
|
+
font-size: 16px;
|
7
|
+
line-height: 20px;
|
8
|
+
z-index: 10000;
|
9
|
+
}
|
10
|
+
|
11
|
+
#any_login form {
|
12
|
+
margin: 0;
|
13
|
+
height: auto;
|
14
|
+
padding: 4px 6px;
|
15
|
+
}
|
16
|
+
|
17
|
+
#any_login #any_login_box {
|
18
|
+
display: none;
|
19
|
+
vertical-align: middle;
|
20
|
+
}
|
21
|
+
|
22
|
+
#any_login_form_toggle {
|
23
|
+
display: none;
|
24
|
+
}
|
25
|
+
|
26
|
+
#any_login_form_toggle[type=checkbox]:checked ~ #any_login_box {
|
27
|
+
display: inline;
|
28
|
+
}
|
29
|
+
|
30
|
+
#any_login input,
|
31
|
+
#any_login select {
|
32
|
+
color: black;
|
33
|
+
padding: 0;
|
34
|
+
margin: 0;
|
35
|
+
height: auto;
|
36
|
+
float: none;
|
37
|
+
text-decoration: none;
|
38
|
+
position: unset;
|
39
|
+
left: auto;
|
40
|
+
top: auto;
|
41
|
+
font-size: auto;
|
42
|
+
line-height: auto;
|
43
|
+
}
|
44
|
+
|
45
|
+
#any_login.any_login_top_left {
|
46
|
+
top: 0;
|
47
|
+
left: 0;
|
48
|
+
}
|
49
|
+
|
50
|
+
#any_login.any_login_top_right {
|
51
|
+
top: 0;
|
52
|
+
right: 0;
|
53
|
+
}
|
54
|
+
|
55
|
+
#any_login.any_login_bottom_left {
|
56
|
+
bottom: 0;
|
57
|
+
left: 0;
|
58
|
+
}
|
59
|
+
|
60
|
+
#any_login.any_login_bottom_right {
|
61
|
+
bottom: 0;
|
62
|
+
right: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
#any_login svg {
|
66
|
+
cursor: pointer;
|
67
|
+
vertical-align: middle;
|
68
|
+
fill: #fff;
|
69
|
+
}
|
70
|
+
|
71
|
+
#any_login:hover {
|
72
|
+
opacity: 1;
|
73
|
+
}
|
74
|
+
|
75
|
+
#any_login .any_login_user_information {
|
76
|
+
padding-left: 10px;
|
77
|
+
color: yellow;
|
78
|
+
}
|
79
|
+
|
80
|
+
#any_login #any_login_id_input {
|
81
|
+
width: 30px;
|
82
|
+
}
|
83
|
+
|
84
|
+
#any_login span#current_user_information {
|
85
|
+
display: inline;
|
86
|
+
}
|
87
|
+
|
88
|
+
#any_login span#current_user_information span {
|
89
|
+
display: inline;
|
90
|
+
}
|
91
|
+
|
92
|
+
#any_login span#anylogin_back_to_user {
|
93
|
+
padding-left: 15px;
|
94
|
+
color: cyan;
|
95
|
+
display: inline;
|
96
|
+
}
|
@@ -1,5 +1,10 @@
|
|
1
1
|
module AnyLogin
|
2
2
|
class ApplicationController < ActionController::Base
|
3
|
+
protect_from_forgery except: :js
|
4
|
+
before_action :try_not_to_leak_any_login_is_installed
|
5
|
+
|
6
|
+
include AnyLogin.provider.constantize::Controller
|
7
|
+
include ::Clearance::Controller if AnyLogin.provider.eql?("AnyLogin::Provider::Clearance")
|
3
8
|
|
4
9
|
if AnyLogin.enabled
|
5
10
|
if AnyLogin.http_basic_authentication_enabled
|
@@ -9,10 +14,17 @@ module AnyLogin
|
|
9
14
|
end
|
10
15
|
|
11
16
|
def any_login
|
12
|
-
try_not_to_leak_any_login_is_installed
|
13
17
|
head 403 && return unless AnyLogin.verify_access_proc.call(self)
|
14
18
|
add_to_previous
|
15
|
-
AnyLogin.provider::Controller.instance_method(:any_login_sign_in).bind(self).call
|
19
|
+
AnyLogin.provider.constantize::Controller.instance_method(:any_login_sign_in).bind(self).call
|
20
|
+
end
|
21
|
+
|
22
|
+
def css
|
23
|
+
send_file AnyLogin::Engine.root.join('app', 'assets', 'stylesheets', 'any_login', 'application.css'), content_type: 'text/css'
|
24
|
+
end
|
25
|
+
|
26
|
+
def js
|
27
|
+
send_file AnyLogin::Engine.root.join('app', 'assets', 'javascripts', 'any_login', 'application.js'), content_type: 'text/javascript'
|
16
28
|
end
|
17
29
|
|
18
30
|
private
|
@@ -1,7 +1,13 @@
|
|
1
|
+
<script src="<%= any_login.js_path %>"></script>
|
2
|
+
<link rel="stylesheet" href="<%= any_login.css_path %>">
|
3
|
+
|
1
4
|
<div id='any_login' class='<%= any_login_klasses %>'>
|
2
5
|
<%= form_tag any_login.sign_in_path, :method => :post, :id => 'any_login_form' do %>
|
3
|
-
|
4
|
-
|
6
|
+
<label for="any_login_form_toggle" id="any_login_form_toggle_label">
|
7
|
+
<%= render 'any_login/svg/user', :title => AnyLogin.klass %>
|
8
|
+
</label>
|
9
|
+
<input type="checkbox" id="any_login_form_toggle" <%= AnyLogin.auto_show ? "checked" : "" %>>
|
10
|
+
<span id='any_login_box'>
|
5
11
|
<%= any_login_select %>
|
6
12
|
or by
|
7
13
|
<%= any_login_id_input %>
|
@@ -11,136 +17,3 @@
|
|
11
17
|
</span>
|
12
18
|
<% end %>
|
13
19
|
</div>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8">
|
16
|
-
Element.prototype.hasClass = function (className) {
|
17
|
-
return new RegExp(' ' + className + ' ').test(' ' + this.className + ' ');
|
18
|
-
};
|
19
|
-
|
20
|
-
Element.prototype.addClass = function (className) {
|
21
|
-
if (!this.hasClass(className)) {
|
22
|
-
this.className += ' ' + className;
|
23
|
-
}
|
24
|
-
};
|
25
|
-
|
26
|
-
Element.prototype.removeClass = function (className) {
|
27
|
-
var newClass = ' ' + this.className.replace(/[\t\r\n]/g, ' ') + ' '
|
28
|
-
if (this.hasClass(className)) {
|
29
|
-
while (newClass.indexOf( ' ' + className + ' ') >= 0) {
|
30
|
-
newClass = newClass.replace(' ' + className + ' ', ' ');
|
31
|
-
}
|
32
|
-
this.className = newClass.replace(/^\s+|\s+$/g, ' ');
|
33
|
-
}
|
34
|
-
};
|
35
|
-
Element.prototype.toggleClass = function (className) {
|
36
|
-
var newClass = ' ' + this.className.replace(/[\t\r\n]/g, " ") + ' ';
|
37
|
-
if (this.hasClass(className)) {
|
38
|
-
while (newClass.indexOf(" " + className + " ") >= 0) {
|
39
|
-
newClass = newClass.replace(" " + className + " ", " ");
|
40
|
-
}
|
41
|
-
this.className = newClass.replace(/^\s+|\s+$/g, ' ');
|
42
|
-
} else {
|
43
|
-
this.className += ' ' + className;
|
44
|
-
}
|
45
|
-
};
|
46
|
-
|
47
|
-
var AnyLogin = {};
|
48
|
-
AnyLogin.on_image_click = function() {
|
49
|
-
var elem = document.getElementById('any_login_box');
|
50
|
-
elem.toggleClass("hidden_box");
|
51
|
-
elem.toggleClass("visible_box");
|
52
|
-
};
|
53
|
-
AnyLogin.on_select_change = function() {
|
54
|
-
document.getElementById('any_login_form').submit();
|
55
|
-
};
|
56
|
-
</script>
|
57
|
-
|
58
|
-
<style type="text/css" media="screen">
|
59
|
-
#any_login {
|
60
|
-
position: fixed;
|
61
|
-
opacity: 0.5;
|
62
|
-
background: #5c4383;
|
63
|
-
color: white;
|
64
|
-
font-size: 16px;
|
65
|
-
line-height: 20px;
|
66
|
-
z-index: 10000;
|
67
|
-
}
|
68
|
-
#any_login form {
|
69
|
-
padding: 0;
|
70
|
-
margin: 0;
|
71
|
-
height: auto;
|
72
|
-
}
|
73
|
-
#any_login input, #any_login select {
|
74
|
-
color: black;
|
75
|
-
padding: 0;
|
76
|
-
margin: 0;
|
77
|
-
height: auto;
|
78
|
-
float: none;
|
79
|
-
text-decoration: none;
|
80
|
-
position: unset;
|
81
|
-
left: auto;
|
82
|
-
top: auto;
|
83
|
-
font-size: auto;
|
84
|
-
line-height: auto;
|
85
|
-
}
|
86
|
-
#any_login .hidden_box {
|
87
|
-
display: none;
|
88
|
-
}
|
89
|
-
#any_login .visible_box {
|
90
|
-
display: inline;
|
91
|
-
}
|
92
|
-
#any_login.any_login_top_left {
|
93
|
-
top: 0;
|
94
|
-
left: 0;
|
95
|
-
}
|
96
|
-
#any_login.any_login_top_right {
|
97
|
-
top: 0;
|
98
|
-
right: 0;
|
99
|
-
}
|
100
|
-
#any_login.any_login_bottom_left {
|
101
|
-
bottom: 0;
|
102
|
-
left: 0;
|
103
|
-
}
|
104
|
-
#any_login.any_login_bottom_right {
|
105
|
-
bottom: 0;
|
106
|
-
right: 0;
|
107
|
-
}
|
108
|
-
#any_login.any_login_visible {
|
109
|
-
opacity: 1;
|
110
|
-
}
|
111
|
-
#any_login img {
|
112
|
-
cursor: pointer;
|
113
|
-
vertical-align: middle;
|
114
|
-
}
|
115
|
-
#any_login:hover {
|
116
|
-
opacity: 1;
|
117
|
-
}
|
118
|
-
#any_login form {
|
119
|
-
padding: 4px 6px;
|
120
|
-
}
|
121
|
-
#any_login span {
|
122
|
-
display: none;
|
123
|
-
vertical-align: middle;
|
124
|
-
}
|
125
|
-
#any_login.any_login_auto_show span {
|
126
|
-
display: inline;
|
127
|
-
}
|
128
|
-
#any_login .any_login_user_information {
|
129
|
-
padding-left: 10px;
|
130
|
-
color: yellow;
|
131
|
-
}
|
132
|
-
#any_login #any_login_id_input {
|
133
|
-
width: 30px;
|
134
|
-
}
|
135
|
-
#any_login span#current_user_information {
|
136
|
-
display: inline;
|
137
|
-
}
|
138
|
-
#any_login span#current_user_information span {
|
139
|
-
display: inline;
|
140
|
-
}
|
141
|
-
#any_login span#anylogin_back_to_user {
|
142
|
-
padding-left: 15px;
|
143
|
-
color: cyan;
|
144
|
-
display: inline;
|
145
|
-
}
|
146
|
-
</style>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<svg style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" height="16" width="16" role="img"
|
3
|
+
xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
4
|
+
<title><%= title %></title>
|
5
|
+
<g id="info" />
|
6
|
+
<g id="icons">
|
7
|
+
<g id="user">
|
8
|
+
<ellipse cx="12" cy="8" rx="5" ry="6" />
|
9
|
+
<path
|
10
|
+
d="M21.8,19.1c-0.9-1.8-2.6-3.3-4.8-4.2c-0.6-0.2-1.3-0.2-1.8,0.1c-1,0.6-2,0.9-3.2,0.9s-2.2-0.3-3.2-0.9 C8.3,14.8,7.6,14.7,7,15c-2.2,0.9-3.9,2.4-4.8,4.2C1.5,20.5,2.6,22,4.1,22h15.8C21.4,22,22.5,20.5,21.8,19.1z" />
|
11
|
+
</g>
|
12
|
+
</g>
|
13
|
+
</svg>
|
data/config/routes.rb
CHANGED
data/lib/any_login/engine.rb
CHANGED
@@ -2,52 +2,43 @@ module AnyLogin
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
isolate_namespace AnyLogin
|
4
4
|
|
5
|
-
initializer 'any_login.assets_precompile', :group => :all do |app|
|
6
|
-
app.config.assets.precompile += ['any_login/person.png']
|
7
|
-
end
|
8
|
-
|
9
5
|
initializer 'any_login.helpers' do
|
10
6
|
load_provider
|
11
|
-
|
12
7
|
ActiveSupport.on_load :action_controller do
|
13
|
-
|
14
|
-
AnyLogin.provider::Controller.send :include, Rails.application.routes.url_helpers
|
15
|
-
end
|
16
|
-
|
17
|
-
AnyLogin::ApplicationController.send :include, AnyLogin.provider::Controller
|
8
|
+
AnyLogin.provider.constantize::Controller.send :include, Rails.application.routes.url_helpers
|
18
9
|
end
|
19
10
|
|
20
11
|
ActiveSupport.on_load :action_view do
|
21
|
-
|
12
|
+
include AnyLogin::Helpers
|
22
13
|
end
|
23
14
|
end
|
24
15
|
|
25
16
|
private
|
26
17
|
|
27
18
|
def load_provider
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
when :sorcery
|
36
|
-
require 'any_login/providers/sorcery'
|
19
|
+
if (selected_provider = AnyLogin.provider || provider)
|
20
|
+
provider_with_module = "AnyLogin::Provider::#{selected_provider.to_s.capitalize}"
|
21
|
+
if Object.const_defined?(provider_with_module)
|
22
|
+
AnyLogin.provider = provider_with_module
|
23
|
+
else
|
24
|
+
AnyLogin.provider = selected_provider.to_s
|
25
|
+
end
|
37
26
|
else
|
38
|
-
throw 'Please use this gem with
|
27
|
+
throw 'Please use this gem with Devise, Authlogic or Clearance or provide a custom handler class'
|
39
28
|
end
|
40
29
|
end
|
41
30
|
|
42
31
|
def provider
|
43
|
-
if AnyLogin.provider.nil?
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
32
|
+
if AnyLogin.provider.nil?
|
33
|
+
if Object.const_defined?('Authlogic')
|
34
|
+
:authlogic
|
35
|
+
elsif Object.const_defined?('Devise')
|
36
|
+
:devise
|
37
|
+
elsif Object.const_defined?('Clearance')
|
38
|
+
:clearance
|
39
|
+
elsif Object.const_defined?('Sorcery')
|
40
|
+
:sorcery
|
41
|
+
end
|
51
42
|
end
|
52
43
|
end
|
53
44
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module AnyLogin
|
2
|
-
module
|
2
|
+
module Helpers
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
def any_login_here
|
@@ -53,7 +53,6 @@ module AnyLogin
|
|
53
53
|
|
54
54
|
def select_html_options(prompt = AnyLogin.select_prompt)
|
55
55
|
options = {}
|
56
|
-
options[:onchange] = 'AnyLogin.on_select_change();' if AnyLogin.login_on == :both
|
57
56
|
options[:prompt] = prompt
|
58
57
|
options
|
59
58
|
end
|
@@ -61,13 +60,12 @@ module AnyLogin
|
|
61
60
|
def any_login_klasses
|
62
61
|
klasses = []
|
63
62
|
klasses << "any_login_#{AnyLogin.position || 'bottom_left'}"
|
64
|
-
klasses << 'any_login_auto_show' if AnyLogin.auto_show
|
65
63
|
klasses.join(' ')
|
66
64
|
end
|
67
65
|
|
68
66
|
def current_user_information
|
69
|
-
if respond_to?(AnyLogin.provider::Controller.any_login_current_user_method) &&
|
70
|
-
user = send(AnyLogin.provider::Controller.any_login_current_user_method)
|
67
|
+
if respond_to?(AnyLogin.provider.constantize::Controller.any_login_current_user_method) &&
|
68
|
+
user = send(AnyLogin.provider.constantize::Controller.any_login_current_user_method)
|
71
69
|
content_tag :span, :class => 'any_login_user_information' do
|
72
70
|
if AnyLogin.name_method.is_a?(Symbol)
|
73
71
|
raw("Current #{AnyLogin.klass_name}: #{h(user.send(AnyLogin.name_method)[0])} — ID: #{user.id}")
|
@@ -77,8 +75,6 @@ module AnyLogin
|
|
77
75
|
end
|
78
76
|
end
|
79
77
|
end
|
80
|
-
|
81
78
|
end
|
82
|
-
|
83
79
|
end
|
84
80
|
end
|
data/lib/any_login/version.rb
CHANGED
data/lib/any_login.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
require_relative '../test_helper_authlogic'
|
2
|
+
|
3
|
+
|
4
|
+
class NavigationTest < ActionDispatch::IntegrationTest
|
5
|
+
setup do
|
6
|
+
@user = User.create(name: "test", email: "test@test.com", password: "password123", role: "user")
|
7
|
+
end
|
8
|
+
|
9
|
+
test "user cannot navigate to about page without login" do
|
10
|
+
visit "/about"
|
11
|
+
|
12
|
+
assert_no_text("This is secret page available only for logged in users")
|
13
|
+
end
|
14
|
+
|
15
|
+
test "it properly logs users in and allows access to the secret page" do
|
16
|
+
visit "/"
|
17
|
+
|
18
|
+
find("#any_login_form_toggle_label").click
|
19
|
+
find('#selected_id option:last-of-type').select_option
|
20
|
+
|
21
|
+
visit "/about"
|
22
|
+
|
23
|
+
assert_text("This is secret page available only for logged in users")
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative '../test_helper_clearance'
|
2
|
+
|
3
|
+
class NavigationTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@user = User.create(name: "test", email: "test@test.com", password: "password123", role: "user")
|
6
|
+
end
|
7
|
+
|
8
|
+
test "user cannot navigate to about page without login" do
|
9
|
+
visit "/about"
|
10
|
+
|
11
|
+
assert_no_text("This is secret page available only for logged in users")
|
12
|
+
end
|
13
|
+
|
14
|
+
test "it properly logs users in and allows access to the secret page" do
|
15
|
+
visit "/"
|
16
|
+
|
17
|
+
find("#any_login_form_toggle_label").click
|
18
|
+
find('#selected_id option:last-of-type').select_option
|
19
|
+
|
20
|
+
visit "/about"
|
21
|
+
|
22
|
+
assert_text("This is secret page available only for logged in users")
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require_relative "../test_helper_devise"
|
2
|
+
|
3
|
+
class NavigationTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@user = User.create(name: "test", email: "test@test.com", password: "password123", role: "user")
|
6
|
+
end
|
7
|
+
|
8
|
+
test "user cannot navigate to about page without login" do
|
9
|
+
visit "/about"
|
10
|
+
|
11
|
+
assert_no_text("This is secret page available only for logged in users")
|
12
|
+
end
|
13
|
+
|
14
|
+
test "it properly logs users in and allows access to the secret page" do
|
15
|
+
visit "/"
|
16
|
+
|
17
|
+
find("#any_login_form_toggle_label").click
|
18
|
+
# There is an instability in the test suite where the option on the dropdown sometimes shows
|
19
|
+
# up as `1` and sometimes shows up as `test@test.com`. This works around the issue.
|
20
|
+
find('#selected_id option:last-of-type').select_option
|
21
|
+
|
22
|
+
visit "/about"
|
23
|
+
|
24
|
+
assert_text("This is secret page available only for logged in users")
|
25
|
+
end
|
26
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
2
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
3
|
|
4
|
-
|
4
|
+
require_relative "config/application"
|
5
5
|
|
6
6
|
Rails.application.load_tasks
|
@@ -0,0 +1 @@
|
|
1
|
+
{}
|
data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/application_controller.rb
RENAMED
File without changes
|