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.
Files changed (412) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +22 -7
  3. data/app/assets/javascripts/any_login/application.js +23 -0
  4. data/app/assets/stylesheets/any_login/application.css +96 -0
  5. data/app/controllers/any_login/application_controller.rb +14 -2
  6. data/app/views/any_login/_any_login.html.erb +8 -135
  7. data/app/views/any_login/svg/_user.html.erb +13 -0
  8. data/config/routes.rb +2 -0
  9. data/lib/any_login/engine.rb +20 -29
  10. data/{app/helpers/any_login/application_helper.rb → lib/any_login/helpers.rb} +3 -7
  11. data/lib/any_login/providers/authlogic.rb +0 -2
  12. data/lib/any_login/providers/clearance.rb +0 -4
  13. data/lib/any_login/providers/devise.rb +0 -2
  14. data/lib/any_login/providers/sorcery.rb +0 -2
  15. data/lib/any_login/version.rb +1 -1
  16. data/lib/any_login.rb +3 -0
  17. data/test/authlogic/integration/navigation_test.rb +25 -0
  18. data/test/authlogic/test_helper_authlogic.rb +5 -0
  19. data/test/clearance/integration/navigation_test.rb +24 -0
  20. data/test/clearance/test_helper_clearance.rb +5 -0
  21. data/test/devise/integration/navigation_test.rb +26 -0
  22. data/test/devise/test_helper_devise.rb +5 -0
  23. data/test/{any_login_test.rb → devise/unit/any_login_test.rb} +1 -1
  24. data/test/{any_login → devise/unit}/collection_test.rb +1 -1
  25. data/test/{dummy-authlogic → rails_apps/authlogic}/Rakefile +1 -1
  26. data/test/rails_apps/authlogic/app/assets/config/manifest.js +1 -0
  27. data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/application_controller.rb +0 -0
  28. data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/home_controller.rb +1 -1
  29. data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/user_sessions_controller.rb +0 -0
  30. data/test/{dummy-authlogic → rails_apps/authlogic}/app/models/user.rb +0 -0
  31. data/test/{dummy-authlogic → rails_apps/authlogic}/app/models/user_session.rb +0 -0
  32. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/home/about.html.erb +0 -0
  33. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/home/index.html.erb +0 -0
  34. data/test/rails_apps/authlogic/app/views/layouts/application.html.erb +29 -0
  35. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/shared/_footer.html.erb +0 -0
  36. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/shared/_header.html.erb +0 -0
  37. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/user_sessions/new.html.erb +0 -0
  38. data/test/rails_apps/authlogic/bin/rails +4 -0
  39. data/test/rails_apps/authlogic/bin/rake +4 -0
  40. data/test/rails_apps/authlogic/bin/setup +33 -0
  41. data/test/rails_apps/authlogic/config/application.rb +25 -0
  42. data/test/rails_apps/authlogic/config/boot.rb +5 -0
  43. data/test/{dummy-sorcery → rails_apps/authlogic}/config/database.yml +3 -3
  44. data/test/{dummy-authlogic → rails_apps/authlogic}/config/environment.rb +1 -1
  45. data/test/rails_apps/authlogic/config/environments/development.rb +70 -0
  46. data/test/{dummy-authlogic → rails_apps/authlogic}/config/environments/production.rb +40 -26
  47. data/test/rails_apps/authlogic/config/environments/test.rb +60 -0
  48. data/test/{dummy-authlogic → rails_apps/authlogic}/config/initializers/any_login.rb +1 -0
  49. data/test/rails_apps/authlogic/config/initializers/assets.rb +12 -0
  50. data/test/rails_apps/authlogic/config/initializers/filter_parameter_logging.rb +8 -0
  51. data/test/{dummy-clearance → rails_apps/authlogic}/config/initializers/inflections.rb +4 -4
  52. data/test/{dummy-sorcery → rails_apps/authlogic}/config/initializers/sorcery.rb +0 -0
  53. data/test/{dummy-authlogic → rails_apps/authlogic}/config/locales/en.yml +13 -3
  54. data/test/{dummy-authlogic → rails_apps/authlogic}/config/routes.rb +0 -0
  55. data/test/rails_apps/authlogic/config/storage.yml +34 -0
  56. data/test/{dummy-clearance → rails_apps/authlogic}/config.ru +3 -1
  57. data/test/{dummy-clearance → rails_apps/authlogic}/db/migrate/20150907190739_create_users.rb +1 -1
  58. data/test/{dummy-sorcery → rails_apps/authlogic}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  59. data/test/{dummy-authlogic → rails_apps/authlogic}/db/migrate/20150928123254_change_users.rb +1 -1
  60. data/test/rails_apps/authlogic/db/migrate/20220825195914_populate_test_users.rb +21 -0
  61. data/test/rails_apps/authlogic/db/schema.rb +46 -0
  62. data/test/{dummy-authlogic → rails_apps/authlogic}/public/404.html +6 -6
  63. data/test/{dummy-clearance → rails_apps/authlogic}/public/422.html +6 -6
  64. data/test/{dummy-clearance → rails_apps/authlogic}/public/500.html +6 -6
  65. data/test/{dummy-authlogic → rails_apps/authlogic}/public/favicon.ico +0 -0
  66. data/test/{dummy-sorcery → rails_apps/clearance}/Rakefile +1 -1
  67. data/test/rails_apps/clearance/app/assets/config/manifest.js +1 -0
  68. data/test/{dummy-clearance → rails_apps/clearance}/app/controllers/application_controller.rb +0 -0
  69. data/test/{dummy-clearance → rails_apps/clearance}/app/controllers/home_controller.rb +0 -0
  70. data/test/{dummy-clearance → rails_apps/clearance}/app/models/user.rb +0 -0
  71. data/test/{dummy-clearance → rails_apps/clearance}/app/models/user_session.rb +0 -0
  72. data/test/{dummy-clearance → rails_apps/clearance}/app/views/home/about.html.erb +0 -0
  73. data/test/{dummy-clearance → rails_apps/clearance}/app/views/home/index.html.erb +0 -0
  74. data/test/rails_apps/clearance/app/views/layouts/application.html.erb +29 -0
  75. data/test/{dummy-clearance → rails_apps/clearance}/app/views/shared/_footer.html.erb +0 -0
  76. data/test/{dummy-clearance → rails_apps/clearance}/app/views/shared/_header.html.erb +0 -0
  77. data/test/rails_apps/clearance/bin/rails +4 -0
  78. data/test/rails_apps/clearance/bin/rake +4 -0
  79. data/test/rails_apps/clearance/bin/setup +33 -0
  80. data/test/rails_apps/clearance/config/application.rb +25 -0
  81. data/test/rails_apps/clearance/config/boot.rb +5 -0
  82. data/test/{dummy → rails_apps/clearance}/config/database.yml +3 -3
  83. data/test/{dummy-clearance → rails_apps/clearance}/config/environment.rb +1 -1
  84. data/test/rails_apps/clearance/config/environments/development.rb +70 -0
  85. data/test/{dummy → rails_apps/clearance}/config/environments/production.rb +40 -26
  86. data/test/rails_apps/clearance/config/environments/test.rb +60 -0
  87. data/test/{dummy-clearance → rails_apps/clearance}/config/initializers/any_login.rb +1 -0
  88. data/test/rails_apps/clearance/config/initializers/assets.rb +12 -0
  89. data/test/{dummy-clearance → rails_apps/clearance}/config/initializers/clearance.rb +0 -0
  90. data/test/rails_apps/clearance/config/initializers/filter_parameter_logging.rb +8 -0
  91. data/test/{dummy-sorcery → rails_apps/clearance}/config/initializers/inflections.rb +4 -4
  92. data/test/{dummy-sorcery → rails_apps/clearance}/config/locales/en.yml +13 -3
  93. data/test/{dummy-clearance → rails_apps/clearance}/config/routes.rb +0 -0
  94. data/test/rails_apps/clearance/config/storage.yml +34 -0
  95. data/test/{dummy-sorcery → rails_apps/clearance}/config.ru +3 -1
  96. data/test/{dummy-sorcery → rails_apps/clearance}/db/migrate/20150907190739_create_users.rb +1 -1
  97. data/test/{dummy-authlogic → rails_apps/clearance}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  98. data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20150909210357_populate_test_users.rb +6 -6
  99. data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20150928123254_change_users.rb +1 -1
  100. data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20151007170422_add_clearance_to_users.rb +1 -1
  101. data/test/rails_apps/clearance/db/schema.rb +49 -0
  102. data/test/{dummy-sorcery → rails_apps/clearance}/public/404.html +6 -6
  103. data/test/{dummy-sorcery → rails_apps/clearance}/public/422.html +6 -6
  104. data/test/{dummy-sorcery → rails_apps/clearance}/public/500.html +6 -6
  105. data/test/{dummy-clearance → rails_apps/clearance}/public/favicon.ico +0 -0
  106. data/test/{dummy → rails_apps/devise}/Rakefile +1 -1
  107. data/test/rails_apps/devise/app/assets/config/manifest.js +1 -0
  108. data/test/rails_apps/devise/app/controllers/application_controller.rb +2 -0
  109. data/test/{dummy → rails_apps/devise}/app/controllers/home_controller.rb +0 -0
  110. data/test/{dummy → rails_apps/devise}/app/models/user.rb +0 -0
  111. data/test/{dummy-sorcery → rails_apps/devise}/app/views/home/about.html.erb +0 -0
  112. data/test/{dummy → rails_apps/devise}/app/views/home/index.html.erb +0 -0
  113. data/test/rails_apps/devise/app/views/layouts/application.html.erb +29 -0
  114. data/test/{dummy → rails_apps/devise}/app/views/shared/_footer.html.erb +0 -1
  115. data/test/{dummy-sorcery → rails_apps/devise}/app/views/shared/_header.html.erb +0 -0
  116. data/test/rails_apps/devise/bin/rails +4 -0
  117. data/test/rails_apps/devise/bin/rake +4 -0
  118. data/test/rails_apps/devise/bin/setup +33 -0
  119. data/test/rails_apps/devise/config/application.rb +25 -0
  120. data/test/rails_apps/devise/config/boot.rb +5 -0
  121. data/test/{dummy-authlogic → rails_apps/devise}/config/database.yml +3 -3
  122. data/test/{dummy → rails_apps/devise}/config/environment.rb +1 -1
  123. data/test/rails_apps/devise/config/environments/development.rb +67 -0
  124. data/test/{dummy-sorcery → rails_apps/devise}/config/environments/production.rb +40 -26
  125. data/test/rails_apps/devise/config/environments/test.rb +60 -0
  126. data/test/{dummy → rails_apps/devise}/config/initializers/any_login.rb +1 -0
  127. data/test/rails_apps/devise/config/initializers/assets.rb +12 -0
  128. data/test/{dummy → rails_apps/devise}/config/initializers/devise.rb +0 -0
  129. data/test/rails_apps/devise/config/initializers/filter_parameter_logging.rb +8 -0
  130. data/test/{dummy-authlogic → rails_apps/devise}/config/initializers/inflections.rb +4 -4
  131. data/test/{dummy → rails_apps/devise}/config/locales/en.yml +13 -3
  132. data/test/{dummy → rails_apps/devise}/config/routes.rb +0 -0
  133. data/test/rails_apps/devise/config/storage.yml +34 -0
  134. data/test/{dummy-authlogic → rails_apps/devise}/config.ru +3 -1
  135. data/test/{dummy-authlogic → rails_apps/devise}/db/migrate/20150907190739_create_users.rb +1 -1
  136. data/test/{dummy → rails_apps/devise}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  137. data/test/rails_apps/devise/db/migrate/20150909210357_populate_test_users.rb +21 -0
  138. data/test/rails_apps/devise/db/schema.rb +35 -0
  139. data/test/{dummy → rails_apps/devise}/public/404.html +6 -6
  140. data/test/{dummy-authlogic → rails_apps/devise}/public/422.html +6 -6
  141. data/test/{dummy-authlogic → rails_apps/devise}/public/500.html +6 -6
  142. data/test/{dummy-sorcery → rails_apps/devise}/public/favicon.ico +0 -0
  143. data/test/{dummy-clearance → rails_apps/sorcery}/Rakefile +1 -1
  144. data/test/rails_apps/sorcery/app/assets/config/manifest.js +1 -0
  145. data/test/rails_apps/sorcery/app/controllers/application_controller.rb +2 -0
  146. data/test/{dummy-sorcery → rails_apps/sorcery}/app/controllers/home_controller.rb +0 -0
  147. data/test/{dummy-sorcery → rails_apps/sorcery}/app/models/user.rb +0 -0
  148. data/test/{dummy → rails_apps/sorcery}/app/views/home/about.html.erb +0 -0
  149. data/test/{dummy-sorcery → rails_apps/sorcery}/app/views/home/index.html.erb +0 -0
  150. data/test/rails_apps/sorcery/app/views/layouts/application.html.erb +29 -0
  151. data/test/{dummy-sorcery → rails_apps/sorcery}/app/views/shared/_footer.html.erb +0 -0
  152. data/test/{dummy → rails_apps/sorcery}/app/views/shared/_header.html.erb +0 -0
  153. data/test/rails_apps/sorcery/bin/rails +4 -0
  154. data/test/rails_apps/sorcery/bin/rake +4 -0
  155. data/test/rails_apps/sorcery/bin/setup +33 -0
  156. data/test/rails_apps/sorcery/config/application.rb +25 -0
  157. data/test/rails_apps/sorcery/config/boot.rb +5 -0
  158. data/test/{dummy-clearance → rails_apps/sorcery}/config/database.yml +3 -3
  159. data/test/{dummy-sorcery → rails_apps/sorcery}/config/environment.rb +1 -1
  160. data/test/rails_apps/sorcery/config/environments/development.rb +70 -0
  161. data/test/{dummy-clearance → rails_apps/sorcery}/config/environments/production.rb +40 -26
  162. data/test/rails_apps/sorcery/config/environments/test.rb +60 -0
  163. data/test/{dummy-sorcery → rails_apps/sorcery}/config/initializers/any_login.rb +1 -0
  164. data/test/rails_apps/sorcery/config/initializers/assets.rb +12 -0
  165. data/test/rails_apps/sorcery/config/initializers/filter_parameter_logging.rb +8 -0
  166. data/test/{dummy → rails_apps/sorcery}/config/initializers/inflections.rb +4 -4
  167. data/test/rails_apps/sorcery/config/initializers/sorcery.rb +463 -0
  168. data/test/{dummy-clearance → rails_apps/sorcery}/config/locales/en.yml +13 -3
  169. data/test/{dummy-sorcery → rails_apps/sorcery}/config/routes.rb +0 -0
  170. data/test/rails_apps/sorcery/config/storage.yml +34 -0
  171. data/test/{dummy → rails_apps/sorcery}/config.ru +3 -1
  172. data/test/{dummy → rails_apps/sorcery}/db/migrate/20150907190739_create_users.rb +1 -1
  173. data/test/{dummy-clearance → rails_apps/sorcery}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  174. data/test/rails_apps/sorcery/db/migrate/20150909210357_add_role_to_users.rb +6 -0
  175. data/test/{dummy-sorcery → rails_apps/sorcery}/db/migrate/20151019154558_sorcery_core.rb +2 -2
  176. data/test/rails_apps/sorcery/db/migrate/20220827040518_populate_test_users.rb +20 -0
  177. data/test/rails_apps/sorcery/db/schema.rb +37 -0
  178. data/test/{dummy-clearance → rails_apps/sorcery}/public/404.html +6 -6
  179. data/test/{dummy → rails_apps/sorcery}/public/422.html +6 -6
  180. data/test/{dummy → rails_apps/sorcery}/public/500.html +6 -6
  181. data/test/{dummy → rails_apps/sorcery}/public/favicon.ico +0 -0
  182. data/test/sorcery/integration/navigation_test.rb +24 -0
  183. data/test/sorcery/test_helper_sorcery.rb +5 -0
  184. data/test/test_helper_common.rb +25 -0
  185. metadata +350 -791
  186. data/app/assets/images/any_login/person.png +0 -0
  187. data/test/dummy/README.rdoc +0 -28
  188. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  189. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
  190. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  191. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  192. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  193. data/test/dummy/app/assets/javascripts/application.js +0 -15
  194. data/test/dummy/app/assets/javascripts/bootstrap.min.js +0 -7
  195. data/test/dummy/app/assets/javascripts/home.js +0 -2
  196. data/test/dummy/app/assets/stylesheets/application.css +0 -22
  197. data/test/dummy/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
  198. data/test/dummy/app/assets/stylesheets/bootstrap.min.css +0 -5
  199. data/test/dummy/app/assets/stylesheets/home.css +0 -4
  200. data/test/dummy/app/controllers/application_controller.rb +0 -5
  201. data/test/dummy/app/helpers/application_helper.rb +0 -2
  202. data/test/dummy/app/helpers/home_helper.rb +0 -2
  203. data/test/dummy/app/views/layouts/application.html.erb +0 -22
  204. data/test/dummy/bin/bundle +0 -3
  205. data/test/dummy/bin/rails +0 -4
  206. data/test/dummy/bin/rake +0 -4
  207. data/test/dummy/bin/setup +0 -29
  208. data/test/dummy/config/application.rb +0 -26
  209. data/test/dummy/config/boot.rb +0 -5
  210. data/test/dummy/config/environments/development.rb +0 -42
  211. data/test/dummy/config/environments/test.rb +0 -42
  212. data/test/dummy/config/initializers/assets.rb +0 -11
  213. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  214. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  215. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  216. data/test/dummy/config/initializers/mime_types.rb +0 -4
  217. data/test/dummy/config/initializers/session_store.rb +0 -3
  218. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  219. data/test/dummy/config/locales/devise.en.yml +0 -60
  220. data/test/dummy/config/secrets.yml +0 -22
  221. data/test/dummy/db/development.sqlite3 +0 -0
  222. data/test/dummy/db/migrate/20150909210357_populate_test_users.rb +0 -21
  223. data/test/dummy/db/schema.rb +0 -37
  224. data/test/dummy/db/test.sqlite3 +0 -0
  225. data/test/dummy/log/test.log +0 -25
  226. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-D/-Dg5ZkTls3rHNa2l35Y2GMEXbJnvHY0-Egoq3V3KvGY.cache +0 -1
  227. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-S/-SuAD2dP0cSgjTq3tP0swCy0jyqmR6tInZKuAFBcVp8.cache +0 -0
  228. data/test/dummy/tmp/cache/assets/sprockets/v3.0/04/04oTddx5RijUeZloooZ1Pm3k8cfkpg-3477aFaNANq4.cache +0 -5
  229. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0Q/0QThAlIyHET8vLk7e4zmbnV9ZMHI5g4KcJu3By5L0xg.cache +0 -1
  230. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0s/0s938iaOX2NBJ-elmk5V7j6XyYC7WxwS57x4aSiyH54.cache +0 -3
  231. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1l/1l2LyYtD0hI8QJI83gSEdwWsnqaFREIwwRAqXquREMY.cache +0 -1
  232. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2c/2cjCUV2SoZNb4a7U-CVWPBsrSAT_805cWMBQqcDuR8U.cache +0 -3
  233. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3N/3Ns3xAyH95BGx95LC8MPlnLNfnm1HQC-LRJ4n8Zlbhs.cache +0 -0
  234. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3p/3pTb9cnqbyj8oSbBnv-vO5Snw8FMgSpsEqhfftd6KM8.cache +0 -1
  235. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5P/5Pf0YftQI-ZQIqD1eArSl11t-n_RMCnpNAm7PJbPMg8.cache +0 -1
  236. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6L/6L8OhKpEg9OopqEks1Eg3Yn2nNpXkMUcYB3Ct90tmOI.cache +0 -1
  237. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6R/6R8Ab2VVfHjOSQ8bJdbYqEEpI_BwsOTGMIWrs7CPiA8.cache +0 -0
  238. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6w/6wSsp-himpVCHqd2MwCqg5qpg9qvaBZK_QetzKx6fhg.cache +0 -4
  239. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7U/7Urlldd4JqrpBAeGSO40LnBaBJUapZRia0-eA3BGgnQ.cache +0 -4
  240. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9X/9Xc8YFlDJRwahzhOQ9-q0-FtnQcMniRnX8jJlHTROm8.cache +0 -1
  241. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AU/AUUQfp0ZTTAPUPDe8TEwY9U4B7rPF5tbb3DTaahfXGg.cache +0 -1
  242. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bx/BxIh9R3OGw4rXVuqRbI8E4_FFNuY0pqWtEVgO_M47hE.cache +0 -1
  243. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cu/CuKQFQrECTYFUbTL112t_9VxYRa-qPAtFh_puj554eI.cache +0 -0
  244. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cu/CuNnn165lBWZkKCjdY_joHCV8qyyN-UNj2O0ZHBSddU.cache +0 -1
  245. data/test/dummy/tmp/cache/assets/sprockets/v3.0/FB/FBHo9LuH0xkwMXXXx95xeALLysZQEJGD_jAXz0L5D9c.cache +0 -0
  246. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fg/Fgi2PW3c1qK1CS8Mp5xq_m4Frc-Y4fz6MgbB--5_DFg.cache +0 -1
  247. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fo/FoMKiqVuXZlqXKS5sZ2CepOYjMVxk3XUCUC8z96dGlk.cache +0 -1
  248. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fw/FwiXjnLLgGTbJ2tZcnFWOp30FIQFbt42kxicUMneUFU.cache +0 -3
  249. data/test/dummy/tmp/cache/assets/sprockets/v3.0/GA/GAdJwtpszZDaIVjZ1vy_hhrduwyRVZ-UVvY1VWHC1F8.cache +0 -3
  250. data/test/dummy/tmp/cache/assets/sprockets/v3.0/I3/I3nUL1109ON75W3zxAKo1beybc7C4ZS1LGTLiZg2ej8.cache +0 -1
  251. data/test/dummy/tmp/cache/assets/sprockets/v3.0/IH/IHEtgWG-bM5JdeS4MpjATwdDPniVNIk31MgI5xCGuAw.cache +0 -2
  252. data/test/dummy/tmp/cache/assets/sprockets/v3.0/J-/J-4oPSPBOYXvlx3v1bU5yFRhWKIt9Pbd-jTh4ARZTAo.cache +0 -1
  253. data/test/dummy/tmp/cache/assets/sprockets/v3.0/L5/L55mKPIZW4yu8-ei7nxwOfhFbR2XEGnrlMdydgpfai8.cache +0 -1
  254. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mu/MuFc7AzSpPX16nZtGyUj6Jm09C_4L5gsM0FzPOBIwY4.cache +0 -1
  255. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Na/NaOPJqxpTLnXnQ4IX8jEw3cvYo2SrqrlUYeZW2UzoOk.cache +0 -1
  256. data/test/dummy/tmp/cache/assets/sprockets/v3.0/On/OnResjr8j7pB3v8AMPlqruJ_597sdzzOxgAmjDuwa3w.cache +0 -1
  257. data/test/dummy/tmp/cache/assets/sprockets/v3.0/P8/P8ytY6J2lveAeG2fMvyy8r9-tPg7fiN_3Ab7V7bQqTA.cache +0 -1
  258. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PV/PVK-jZacxU1cWegzoBx4MuUxIFJx_s7WSdxTCeSJ2b4.cache +0 -1
  259. data/test/dummy/tmp/cache/assets/sprockets/v3.0/QI/QI0_r-lhQ11MgB5hl0iDmZkYUP2lhIbinlNV6z-CADI.cache +0 -3
  260. data/test/dummy/tmp/cache/assets/sprockets/v3.0/QK/QKxzR5Cw94Oy0fL3B1xQmewTiZ6syQcpkWvN_q51-hs.cache +0 -0
  261. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qr/QrrG5X3SHARlU3cX7xW8wIwoKn4WwLZmZnr43pECtq8.cache +0 -0
  262. data/test/dummy/tmp/cache/assets/sprockets/v3.0/RI/RICxiF1Y7tRr1144F7mHmJPW-mEKzj8mvHddAM2tiiM.cache +0 -2
  263. data/test/dummy/tmp/cache/assets/sprockets/v3.0/RI/RIZ9Fwy55ZmMRMNm2m3o4FB0CmGeRKIDhRbjHCaG_2U.cache +0 -0
  264. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TK/TKL8jyLcA2JcZ3puvU_LSHcONp-_5Z-77GJRSThtC7A.cache +0 -2
  265. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Uf/UfrjkaQSDo_CFzC0sczZIJW0X-owh9Tnm1xLkODaJ1I.cache +0 -2
  266. data/test/dummy/tmp/cache/assets/sprockets/v3.0/W8/W8nAt_ntq-eifnenvYEnaPn1yPvEs66qr95bxpARWMQ.cache +0 -1
  267. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WR/WRkATZ__BM8FSA_ps96QuKbjF1qxdXUQ2R0DbA1NiyA.cache +0 -4
  268. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WS/WShZwpbrt5Q9NU5ngKHDGLed1e8DSQC7UbTdCbsgsT8.cache +0 -2
  269. data/test/dummy/tmp/cache/assets/sprockets/v3.0/X9/X9CCaGqqaUv4WO8YGDLvsoMRI-YE_hZ7zMPXI8r12ts.cache +0 -0
  270. data/test/dummy/tmp/cache/assets/sprockets/v3.0/XX/XXAHmbeg_TfKNFVv5Bke0lxLHJg2JKBL6_niQsSaNWU.cache +0 -1
  271. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YW/YWz7RsbYEyV5W5K-N2XAZG4-LH1XcsjBxFfO-tCGlDE.cache +0 -0
  272. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yl/YlW61yeKVQbCaGB5KQ9x5UBQKkcFCI080Uagi4qUfMM.cache +0 -0
  273. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZP/ZPAB02xJo6ZN3L6OfzyWEgh36ZS4MGSuk_e7CAwfanM.cache +0 -0
  274. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eU/eUX6c56Kt_pz8fPl14NxlFJfGidrugVhIMj1gjs97pQ.cache +0 -1
  275. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eq/eq-hOvJwIQGfeaOxPvLLoSgspYnPt1qmAvfzhIjiQ8I.cache +0 -0
  276. data/test/dummy/tmp/cache/assets/sprockets/v3.0/f5/f54V076hGyLBoyXVqTSQ4TYLpxxfpE4rfnZKmPlkYD0.cache +0 -1
  277. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fp/fpeHoSYPNIxuVWmz3_zN7Vbi23P-F3HPYv-XpKpLZFg.cache +0 -1
  278. data/test/dummy/tmp/cache/assets/sprockets/v3.0/g0/g0C0AU1L_x5sxYFr6z0NE79m0pF6-CXBH6VFPVxgCpM.cache +0 -2
  279. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gT/gTC13k-_pje-P_LWe83hQ9_3C5cinGmG8ckrar4b7vE.cache +0 -3
  280. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gT/gTkUgaB4k61_B3ydTNzFB012pqNr-7E4KO2cVtNLDkU.cache +0 -0
  281. data/test/dummy/tmp/cache/assets/sprockets/v3.0/h8/h8MyXG62sm-uRDQiYg6CH_Z-EtBPEai0euDPYa2ZOLQ.cache +0 -1
  282. data/test/dummy/tmp/cache/assets/sprockets/v3.0/jJ/jJMUuOxfxNdR_iw6_Atzc9BQIkzNyweek8qCfDM1620.cache +0 -1
  283. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kh/khZgphuPeZYzQwBZrBEVGDBq4QQAvZ_CUfNsM15KtXc.cache +0 -4
  284. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kw/kwrJPJzQnUZy6XwmBrFMJjah6mZ9qNB8nStiWPrGWhs.cache +0 -1
  285. data/test/dummy/tmp/cache/assets/sprockets/v3.0/l5/l5rpSHE1xK2jT7OGZDVOzAUK0LgmIMJAhVJQGaGWQ00.cache +0 -2
  286. data/test/dummy/tmp/cache/assets/sprockets/v3.0/my/myQlTWBqjEV7aXVwBtOaHIt42To2MmC_zlFFqkPxjmw.cache +0 -2
  287. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ni/niVUoVEMUptq6L7GFj6Df_vajoeWEYtSF4BHTsuLmfE.cache +0 -3
  288. data/test/dummy/tmp/cache/assets/sprockets/v3.0/o9/o9K2isMkub-cGtNTwR7zJ2UkWW-Q3C2vrMc7vyG6cQk.cache +0 -1
  289. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pI/pIVqc5tXAaLDSQbx4dvcFawX1iRPdcw_JTjDIE6Y0eM.cache +0 -3
  290. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pn/pnW3u_1AN48ig6ngefI89y96xoSlvnJurx-e3J-leoE.cache +0 -3
  291. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qD/qDNkKDUNVSrSAWT8yqnkWcqqtxLn4VA_kyk8JX1pKOU.cache +0 -1
  292. data/test/dummy/tmp/cache/assets/sprockets/v3.0/s-/s-mG18OjpD8IKlOk-YOYmUYFC16rIaqqtnmGQYSEPIY.cache +0 -1
  293. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sY/sYqD_6_DLhWbWmBm4ZOKDNI8bKtF7czThI6GXwmFlMU.cache +0 -3
  294. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ss/ssS2x0Wl67rwXHaVHsh6CO7ayn9fQ5saIwATKN6O-nI.cache +0 -3
  295. data/test/dummy/tmp/cache/assets/sprockets/v3.0/t1/t1w3t0uQeIB6mj-VliOTOvNCAcjMoQdBxMlac-VXXUk.cache +0 -3
  296. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tV/tVUTHHlY5TMaPTcTIRE487ouNUpGmQVD_Ab6VAuDGw0.cache +0 -1
  297. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tu/tuEq0SXuQh3A3UWa1dGXRLlKGMt6evB5YqwFJRyPvIE.cache +0 -3
  298. data/test/dummy/tmp/cache/assets/sprockets/v3.0/v-/v-N2813JF9StwoLTE-8AAriPnHbuvVx-m9DzTCXCH9M.cache +0 -1
  299. data/test/dummy/tmp/cache/assets/sprockets/v3.0/x0/x00ZU4Y_G6K5u2IqypZTnQIPb--furSWaQfLMsVfEqo.cache +0 -1
  300. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xC/xCexSNESQ_s5_Nb67lUl0oXgCpdisNQNvtsR-hfgIAo.cache +0 -1
  301. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xg/xgfY0nnn8IRgObhr6ZixwkE7oqh7Ksdwe2VRgjKNB9A.cache +0 -0
  302. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xp/xp_GvoQomYX5lkhg7vSvVU0DGGy4QG_ldNHacZLqZt0.cache +0 -0
  303. data/test/dummy-authlogic/README.rdoc +0 -28
  304. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  305. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
  306. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  307. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  308. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  309. data/test/dummy-authlogic/app/assets/javascripts/application.js +0 -15
  310. data/test/dummy-authlogic/app/assets/javascripts/bootstrap.min.js +0 -7
  311. data/test/dummy-authlogic/app/assets/javascripts/home.js +0 -2
  312. data/test/dummy-authlogic/app/assets/stylesheets/application.css +0 -15
  313. data/test/dummy-authlogic/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
  314. data/test/dummy-authlogic/app/assets/stylesheets/bootstrap.min.css +0 -5
  315. data/test/dummy-authlogic/app/assets/stylesheets/home.css +0 -4
  316. data/test/dummy-authlogic/app/helpers/application_helper.rb +0 -2
  317. data/test/dummy-authlogic/app/helpers/home_helper.rb +0 -2
  318. data/test/dummy-authlogic/app/views/layouts/application.html.erb +0 -22
  319. data/test/dummy-authlogic/bin/bundle +0 -3
  320. data/test/dummy-authlogic/bin/rails +0 -4
  321. data/test/dummy-authlogic/bin/rake +0 -4
  322. data/test/dummy-authlogic/bin/setup +0 -29
  323. data/test/dummy-authlogic/config/application.rb +0 -26
  324. data/test/dummy-authlogic/config/boot.rb +0 -5
  325. data/test/dummy-authlogic/config/environments/development.rb +0 -42
  326. data/test/dummy-authlogic/config/environments/test.rb +0 -42
  327. data/test/dummy-authlogic/config/initializers/assets.rb +0 -11
  328. data/test/dummy-authlogic/config/initializers/backtrace_silencers.rb +0 -7
  329. data/test/dummy-authlogic/config/initializers/cookies_serializer.rb +0 -3
  330. data/test/dummy-authlogic/config/initializers/filter_parameter_logging.rb +0 -4
  331. data/test/dummy-authlogic/config/initializers/mime_types.rb +0 -4
  332. data/test/dummy-authlogic/config/initializers/session_store.rb +0 -3
  333. data/test/dummy-authlogic/config/initializers/wrap_parameters.rb +0 -14
  334. data/test/dummy-authlogic/config/locales/devise.en.yml +0 -60
  335. data/test/dummy-authlogic/config/secrets.yml +0 -22
  336. data/test/dummy-authlogic/db/development.sqlite3 +0 -0
  337. data/test/dummy-authlogic/db/migrate/20150909210357_populate_test_users.rb +0 -21
  338. data/test/dummy-authlogic/db/schema.rb +0 -48
  339. data/test/dummy-clearance/README.rdoc +0 -28
  340. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  341. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
  342. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  343. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  344. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  345. data/test/dummy-clearance/app/assets/javascripts/application.js +0 -15
  346. data/test/dummy-clearance/app/assets/javascripts/bootstrap.min.js +0 -7
  347. data/test/dummy-clearance/app/assets/javascripts/home.js +0 -2
  348. data/test/dummy-clearance/app/assets/stylesheets/application.css +0 -15
  349. data/test/dummy-clearance/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
  350. data/test/dummy-clearance/app/assets/stylesheets/bootstrap.min.css +0 -5
  351. data/test/dummy-clearance/app/assets/stylesheets/home.css +0 -4
  352. data/test/dummy-clearance/app/helpers/application_helper.rb +0 -2
  353. data/test/dummy-clearance/app/helpers/home_helper.rb +0 -2
  354. data/test/dummy-clearance/app/views/layouts/application.html.erb +0 -22
  355. data/test/dummy-clearance/app/views/user_sessions/new.html.erb +0 -11
  356. data/test/dummy-clearance/bin/bundle +0 -3
  357. data/test/dummy-clearance/bin/rails +0 -4
  358. data/test/dummy-clearance/bin/rake +0 -4
  359. data/test/dummy-clearance/bin/setup +0 -29
  360. data/test/dummy-clearance/config/application.rb +0 -26
  361. data/test/dummy-clearance/config/boot.rb +0 -5
  362. data/test/dummy-clearance/config/environments/development.rb +0 -42
  363. data/test/dummy-clearance/config/environments/test.rb +0 -42
  364. data/test/dummy-clearance/config/initializers/assets.rb +0 -11
  365. data/test/dummy-clearance/config/initializers/backtrace_silencers.rb +0 -7
  366. data/test/dummy-clearance/config/initializers/cookies_serializer.rb +0 -3
  367. data/test/dummy-clearance/config/initializers/filter_parameter_logging.rb +0 -4
  368. data/test/dummy-clearance/config/initializers/mime_types.rb +0 -4
  369. data/test/dummy-clearance/config/initializers/session_store.rb +0 -3
  370. data/test/dummy-clearance/config/initializers/wrap_parameters.rb +0 -14
  371. data/test/dummy-clearance/config/locales/devise.en.yml +0 -60
  372. data/test/dummy-clearance/config/secrets.yml +0 -22
  373. data/test/dummy-clearance/db/development.sqlite3 +0 -0
  374. data/test/dummy-clearance/db/schema.rb +0 -51
  375. data/test/dummy-sorcery/README.rdoc +0 -28
  376. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  377. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
  378. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  379. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  380. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  381. data/test/dummy-sorcery/app/assets/javascripts/application.js +0 -15
  382. data/test/dummy-sorcery/app/assets/javascripts/bootstrap.min.js +0 -7
  383. data/test/dummy-sorcery/app/assets/javascripts/home.js +0 -2
  384. data/test/dummy-sorcery/app/assets/stylesheets/application.css +0 -15
  385. data/test/dummy-sorcery/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
  386. data/test/dummy-sorcery/app/assets/stylesheets/bootstrap.min.css +0 -5
  387. data/test/dummy-sorcery/app/assets/stylesheets/home.css +0 -4
  388. data/test/dummy-sorcery/app/controllers/application_controller.rb +0 -5
  389. data/test/dummy-sorcery/app/helpers/application_helper.rb +0 -2
  390. data/test/dummy-sorcery/app/helpers/home_helper.rb +0 -2
  391. data/test/dummy-sorcery/app/views/layouts/application.html.erb +0 -22
  392. data/test/dummy-sorcery/bin/bundle +0 -3
  393. data/test/dummy-sorcery/bin/rails +0 -4
  394. data/test/dummy-sorcery/bin/rake +0 -4
  395. data/test/dummy-sorcery/bin/setup +0 -29
  396. data/test/dummy-sorcery/config/application.rb +0 -26
  397. data/test/dummy-sorcery/config/boot.rb +0 -5
  398. data/test/dummy-sorcery/config/environments/development.rb +0 -42
  399. data/test/dummy-sorcery/config/environments/test.rb +0 -42
  400. data/test/dummy-sorcery/config/initializers/assets.rb +0 -11
  401. data/test/dummy-sorcery/config/initializers/backtrace_silencers.rb +0 -7
  402. data/test/dummy-sorcery/config/initializers/cookies_serializer.rb +0 -3
  403. data/test/dummy-sorcery/config/initializers/filter_parameter_logging.rb +0 -4
  404. data/test/dummy-sorcery/config/initializers/mime_types.rb +0 -4
  405. data/test/dummy-sorcery/config/initializers/session_store.rb +0 -3
  406. data/test/dummy-sorcery/config/initializers/wrap_parameters.rb +0 -14
  407. data/test/dummy-sorcery/config/locales/devise.en.yml +0 -60
  408. data/test/dummy-sorcery/config/secrets.yml +0 -22
  409. data/test/dummy-sorcery/db/migrate/20150909210357_populate_test_users.rb +0 -21
  410. data/test/dummy-sorcery/db/schema.rb +0 -39
  411. data/test/integration/navigation_test.rb +0 -8
  412. data/test/test_helper.rb +0 -17
@@ -1,3 +1,5 @@
1
+ require "active_support/core_ext/integer/time"
2
+
1
3
  Rails.application.configure do
2
4
  # Settings specified here will take precedence over those in config/application.rb.
3
5
 
@@ -14,51 +16,53 @@ Rails.application.configure do
14
16
  config.consider_all_requests_local = false
15
17
  config.action_controller.perform_caching = true
16
18
 
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
19
+ # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
20
+ # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
21
+ # config.require_master_key = true
22
22
 
23
23
  # Disable serving static files from the `/public` folder by default since
24
24
  # Apache or NGINX already handles this.
25
- config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
25
+ config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
26
26
 
27
- # Compress JavaScripts and CSS.
28
- config.assets.js_compressor = :uglifier
27
+ # Compress CSS using a preprocessor.
29
28
  # config.assets.css_compressor = :sass
30
29
 
31
30
  # Do not fallback to assets pipeline if a precompiled asset is missed.
32
31
  config.assets.compile = false
33
32
 
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
33
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
34
+ # config.asset_host = "http://assets.example.com"
39
35
 
40
36
  # 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
37
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
38
+ # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
39
+
40
+ # Store uploaded files on the local file system (see config/storage.yml for options).
41
+ config.active_storage.service = :local
42
+
43
+ # Mount Action Cable outside main process or domain.
44
+ # config.action_cable.mount_path = nil
45
+ # config.action_cable.url = "wss://example.com/cable"
46
+ # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
43
47
 
44
48
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
49
  # config.force_ssl = true
46
50
 
47
- # Use the lowest log level to ensure availability of diagnostic information
48
- # when problems arise.
49
- config.log_level = :debug
51
+ # Include generic and useful information about system operation, but avoid logging too much
52
+ # information to avoid inadvertent exposure of personally identifiable information (PII).
53
+ config.log_level = :info
50
54
 
51
55
  # 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
+ config.log_tags = [ :request_id ]
56
57
 
57
58
  # Use a different cache store in production.
58
59
  # config.cache_store = :mem_cache_store
59
60
 
60
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
- # config.action_controller.asset_host = 'http://assets.example.com'
61
+ # Use a real queuing backend for Active Job (and separate queues per environment).
62
+ # config.active_job.queue_adapter = :resque
63
+ # config.active_job.queue_name_prefix = "dummy_production"
64
+
65
+ config.action_mailer.perform_caching = false
62
66
 
63
67
  # Ignore bad email addresses and do not raise email delivery errors.
64
68
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -68,12 +72,22 @@ Rails.application.configure do
68
72
  # the I18n.default_locale when a translation cannot be found).
69
73
  config.i18n.fallbacks = true
70
74
 
71
- # Send deprecation notices to registered listeners.
72
- config.active_support.deprecation = :notify
75
+ # Don't log any deprecations.
76
+ config.active_support.report_deprecations = false
73
77
 
74
78
  # Use default logging formatter so that PID and timestamp are not suppressed.
75
79
  config.log_formatter = ::Logger::Formatter.new
76
80
 
81
+ # Use a different logger for distributed setups.
82
+ # require "syslog/logger"
83
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
84
+
85
+ if ENV["RAILS_LOG_TO_STDOUT"].present?
86
+ logger = ActiveSupport::Logger.new(STDOUT)
87
+ logger.formatter = config.log_formatter
88
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
89
+ end
90
+
77
91
  # Do not dump schema after migrations.
78
92
  config.active_record.dump_schema_after_migration = false
79
93
  end
@@ -0,0 +1,60 @@
1
+ require "active_support/core_ext/integer/time"
2
+
3
+ # The test environment is used exclusively to run your application's
4
+ # test suite. You never need to work with it otherwise. Remember that
5
+ # your test database is "scratch space" for the test suite and is wiped
6
+ # and recreated between test runs. Don't rely on the data there!
7
+
8
+ Rails.application.configure do
9
+ # Settings specified here will take precedence over those in config/application.rb.
10
+
11
+ # Turn false under Spring and add config.action_view.cache_template_loading = true.
12
+ config.cache_classes = true
13
+
14
+ # Eager loading loads your whole application. When running a single test locally,
15
+ # this probably isn't necessary. It's a good idea to do in a continuous integration
16
+ # system, or in some way before deploying your code.
17
+ config.eager_load = ENV["CI"].present?
18
+
19
+ # Configure public file server for tests with Cache-Control for performance.
20
+ config.public_file_server.enabled = true
21
+ config.public_file_server.headers = {
22
+ "Cache-Control" => "public, max-age=#{1.hour.to_i}"
23
+ }
24
+
25
+ # Show full error reports and disable caching.
26
+ config.consider_all_requests_local = true
27
+ config.action_controller.perform_caching = false
28
+ config.cache_store = :null_store
29
+
30
+ # Raise exceptions instead of rendering exception templates.
31
+ config.action_dispatch.show_exceptions = false
32
+
33
+ # Disable request forgery protection in test environment.
34
+ config.action_controller.allow_forgery_protection = false
35
+
36
+ # Store uploaded files on the local file system in a temporary directory.
37
+ config.active_storage.service = :test
38
+
39
+ config.action_mailer.perform_caching = false
40
+
41
+ # Tell Action Mailer not to deliver emails to the real world.
42
+ # The :test delivery method accumulates sent emails in the
43
+ # ActionMailer::Base.deliveries array.
44
+ config.action_mailer.delivery_method = :test
45
+
46
+ # Print deprecation notices to the stderr.
47
+ config.active_support.deprecation = :stderr
48
+
49
+ # Raise exceptions for disallowed deprecations.
50
+ config.active_support.disallowed_deprecation = :raise
51
+
52
+ # Tell Active Support which deprecation messages to disallow.
53
+ config.active_support.disallowed_deprecation_warnings = []
54
+
55
+ # Raises error for missing translations.
56
+ # config.i18n.raise_on_missing_translations = true
57
+
58
+ # Annotate rendered view with file names.
59
+ # config.action_view.annotate_rendered_view_with_filenames = true
60
+ end
@@ -1,4 +1,5 @@
1
1
  AnyLogin.setup do |config|
2
+ config.enabled = true
2
3
  config.provider = :sorcery
3
4
  config.login_button_label = 'Sign in with Sorcery'
4
5
  config.klass_name = 'User'
@@ -0,0 +1,12 @@
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 the app/assets
11
+ # folder are already added.
12
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure parameters to be filtered from the log file. Use this to limit dissemination of
4
+ # sensitive information. See the ActiveSupport::ParameterFilter documentation for supported
5
+ # notations and behaviors.
6
+ Rails.application.config.filter_parameters += [
7
+ :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
8
+ ]
@@ -4,13 +4,13 @@
4
4
  # are locale specific, and you may define rules for as many different
5
5
  # locales as you wish. All of these examples are active by default:
6
6
  # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
7
+ # inflect.plural /^(ox)$/i, "\\1en"
8
+ # inflect.singular /^(ox)en/i, "\\1"
9
+ # inflect.irregular "person", "people"
10
10
  # inflect.uncountable %w( fish sheep )
11
11
  # end
12
12
 
13
13
  # These inflection rules are supported but not enabled by default:
14
14
  # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
15
+ # inflect.acronym "RESTful"
16
16
  # end
@@ -0,0 +1,463 @@
1
+ # The first thing you need to configure is which modules you need in your app.
2
+ # The default is nothing which will include only core features (password encryption, login/logout).
3
+ # Available submodules are: :user_activation, :http_basic_auth, :remember_me,
4
+ # :reset_password, :session_timeout, :brute_force_protection, :activity_logging, :external
5
+ Rails.application.config.sorcery.submodules = []
6
+
7
+ # Here you can configure each submodule's features.
8
+ Rails.application.config.sorcery.configure do |config|
9
+ # -- core --
10
+ # What controller action to call for non-authenticated users. You can also
11
+ # override the 'not_authenticated' method of course.
12
+ # Default: `:not_authenticated`
13
+ #
14
+ # config.not_authenticated_action =
15
+
16
+
17
+ # When a non logged in user tries to enter a page that requires login, save
18
+ # the URL he wanted to reach, and send him there after login, using 'redirect_back_or_to'.
19
+ # Default: `true`
20
+ #
21
+ # config.save_return_to_url =
22
+
23
+
24
+ # Set domain option for cookies; Useful for remember_me submodule.
25
+ # Default: `nil`
26
+ #
27
+ # config.cookie_domain =
28
+
29
+
30
+ # Allow the remember_me cookie to be set through AJAX
31
+ # Default: `true`
32
+ #
33
+ # config.remember_me_httponly =
34
+
35
+
36
+ # -- session timeout --
37
+ # How long in seconds to keep the session alive.
38
+ # Default: `3600`
39
+ #
40
+ # config.session_timeout =
41
+
42
+
43
+ # Use the last action as the beginning of session timeout.
44
+ # Default: `false`
45
+ #
46
+ # config.session_timeout_from_last_action =
47
+
48
+
49
+ # -- http_basic_auth --
50
+ # What realm to display for which controller name. For example {"My App" => "Application"}
51
+ # Default: `{"application" => "Application"}`
52
+ #
53
+ # config.controller_to_realm_map =
54
+
55
+
56
+ # -- activity logging --
57
+ # will register the time of last user login, every login.
58
+ # Default: `true`
59
+ #
60
+ # config.register_login_time =
61
+
62
+
63
+ # will register the time of last user logout, every logout.
64
+ # Default: `true`
65
+ #
66
+ # config.register_logout_time =
67
+
68
+
69
+ # will register the time of last user action, every action.
70
+ # Default: `true`
71
+ #
72
+ # config.register_last_activity_time =
73
+
74
+
75
+ # -- external --
76
+ # What providers are supported by this app, i.e. [:twitter, :facebook, :github, :linkedin, :xing, :google, :liveid, :salesforce] .
77
+ # Default: `[]`
78
+ #
79
+ # config.external_providers =
80
+
81
+
82
+ # You can change it by your local ca_file. i.e. '/etc/pki/tls/certs/ca-bundle.crt'
83
+ # Path to ca_file. By default use a internal ca-bundle.crt.
84
+ # Default: `'path/to/ca_file'`
85
+ #
86
+ # config.ca_file =
87
+
88
+
89
+ # For information about LinkedIn API:
90
+ # - user info fields go to https://developer.linkedin.com/documents/profile-fields
91
+ # - access permissions go to https://developer.linkedin.com/documents/authentication#granting
92
+ #
93
+ # config.linkedin.key = ""
94
+ # config.linkedin.secret = ""
95
+ # config.linkedin.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=linkedin"
96
+ # config.linkedin.user_info_fields = ['first-name', 'last-name']
97
+ # config.linkedin.user_info_mapping = {first_name: "firstName", last_name: "lastName"}
98
+ # config.linkedin.access_permissions = ['r_basicprofile']
99
+ #
100
+ #
101
+ # For information about XING API:
102
+ # - user info fields go to https://dev.xing.com/docs/get/users/me
103
+ #
104
+ # config.xing.key = ""
105
+ # config.xing.secret = ""
106
+ # config.xing.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=xing"
107
+ # config.xing.user_info_mapping = {first_name: "first_name", last_name: "last_name"}
108
+ #
109
+ #
110
+ # Twitter will not accept any requests nor redirect uri containing localhost,
111
+ # make sure you use 0.0.0.0:3000 to access your app in development
112
+ #
113
+ # config.twitter.key = ""
114
+ # config.twitter.secret = ""
115
+ # config.twitter.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=twitter"
116
+ # config.twitter.user_info_mapping = {:email => "screen_name"}
117
+ #
118
+ # config.facebook.key = ""
119
+ # config.facebook.secret = ""
120
+ # config.facebook.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=facebook"
121
+ # config.facebook.user_info_mapping = {:email => "name"}
122
+ # config.facebook.access_permissions = ["email", "publish_actions"]
123
+ # config.facebook.display = "page"
124
+ # config.facebook.api_version = "v2.2"
125
+ #
126
+ # config.github.key = ""
127
+ # config.github.secret = ""
128
+ # config.github.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=github"
129
+ # config.github.user_info_mapping = {:email => "name"}
130
+ #
131
+ # config.google.key = ""
132
+ # config.google.secret = ""
133
+ # config.google.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=google"
134
+ # config.google.user_info_mapping = {:email => "email", :username => "name"}
135
+ #
136
+ # config.vk.key = ""
137
+ # config.vk.secret = ""
138
+ # config.vk.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=vk"
139
+ # config.vk.user_info_mapping = {:login => "domain", :name => "full_name"}
140
+ #
141
+ # To use liveid in development mode you have to replace mydomain.com with
142
+ # a valid domain even in development. To use a valid domain in development
143
+ # simply add your domain in your /etc/hosts file in front of 127.0.0.1
144
+ #
145
+ # config.liveid.key = ""
146
+ # config.liveid.secret = ""
147
+ # config.liveid.callback_url = "http://mydomain.com:3000/oauth/callback?provider=liveid"
148
+ # config.liveid.user_info_mapping = {:username => "name"}
149
+
150
+ # For information about JIRA API:
151
+ # https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+OAuth+authentication
152
+ # to obtain the consumer key and the public key you can use the jira-ruby gem https://github.com/sumoheavy/jira-ruby
153
+ # or run openssl req -x509 -nodes -newkey rsa:1024 -sha1 -keyout rsakey.pem -out rsacert.pem to obtain the public key
154
+ # Make sure you have configured the application link properly
155
+
156
+ # config.jira.key = "1234567"
157
+ # config.jira.secret = "jiraTest"
158
+ # config.jira.site = "http://localhost:2990/jira/plugins/servlet/oauth"
159
+ # config.jira.signature_method = "RSA-SHA1"
160
+ # config.jira.private_key_file = "rsakey.pem"
161
+
162
+ # For information about Salesforce API:
163
+ # https://developer.salesforce.com/signup &
164
+ # https://www.salesforce.com/us/developer/docs/api_rest/
165
+ # Salesforce callback_url must be https. You can run the following to generate self-signed ssl cert
166
+ # openssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -keyout server.key -out server.crt
167
+ # Make sure you have configured the application link properly
168
+ # config.salesforce.key = '123123'
169
+ # config.salesforce.secret = 'acb123'
170
+ # config.salesforce.callback_url = "https://127.0.0.1:9292/oauth/callback?provider=salesforce"
171
+ # config.salesforce.scope = "full"
172
+ # config.salesforce.user_info_mapping = {:email => "email"}
173
+
174
+ # --- user config ---
175
+ config.user_config do |user|
176
+ # -- core --
177
+ # specify username attributes, for example: [:username, :email].
178
+ # Default: `[:email]`
179
+ #
180
+ # user.username_attribute_names =
181
+
182
+
183
+ # change *virtual* password attribute, the one which is used until an encrypted one is generated.
184
+ # Default: `:password`
185
+ #
186
+ # user.password_attribute_name =
187
+
188
+
189
+ # downcase the username before trying to authenticate, default is false
190
+ # Default: `false`
191
+ #
192
+ # user.downcase_username_before_authenticating =
193
+
194
+
195
+ # change default email attribute.
196
+ # Default: `:email`
197
+ #
198
+ # user.email_attribute_name =
199
+
200
+
201
+ # change default crypted_password attribute.
202
+ # Default: `:crypted_password`
203
+ #
204
+ # user.crypted_password_attribute_name =
205
+
206
+
207
+ # what pattern to use to join the password with the salt
208
+ # Default: `""`
209
+ #
210
+ # user.salt_join_token =
211
+
212
+
213
+ # change default salt attribute.
214
+ # Default: `:salt`
215
+ #
216
+ # user.salt_attribute_name =
217
+
218
+
219
+ # how many times to apply encryption to the password.
220
+ # Default: `nil`
221
+ #
222
+ # user.stretches =
223
+
224
+
225
+ # encryption key used to encrypt reversible encryptions such as AES256.
226
+ # WARNING: If used for users' passwords, changing this key will leave passwords undecryptable!
227
+ # Default: `nil`
228
+ #
229
+ # user.encryption_key =
230
+
231
+
232
+ # use an external encryption class.
233
+ # Default: `nil`
234
+ #
235
+ # user.custom_encryption_provider =
236
+
237
+
238
+ # encryption algorithm name. See 'encryption_algorithm=' for available options.
239
+ # Default: `:bcrypt`
240
+ #
241
+ # user.encryption_algorithm =
242
+
243
+
244
+ # make this configuration inheritable for subclasses. Useful for ActiveRecord's STI.
245
+ # Default: `false`
246
+ #
247
+ # user.subclasses_inherit_config =
248
+
249
+
250
+ # -- remember_me --
251
+ # How long in seconds the session length will be
252
+ # Default: `604800`
253
+ #
254
+ # user.remember_me_for =
255
+
256
+
257
+ # -- user_activation --
258
+ # the attribute name to hold activation state (active/pending).
259
+ # Default: `:activation_state`
260
+ #
261
+ # user.activation_state_attribute_name =
262
+
263
+
264
+ # the attribute name to hold activation code (sent by email).
265
+ # Default: `:activation_token`
266
+ #
267
+ # user.activation_token_attribute_name =
268
+
269
+
270
+ # the attribute name to hold activation code expiration date.
271
+ # Default: `:activation_token_expires_at`
272
+ #
273
+ # user.activation_token_expires_at_attribute_name =
274
+
275
+
276
+ # how many seconds before the activation code expires. nil for never expires.
277
+ # Default: `nil`
278
+ #
279
+ # user.activation_token_expiration_period =
280
+
281
+
282
+ # your mailer class. Required.
283
+ # Default: `nil`
284
+ #
285
+ # user.user_activation_mailer =
286
+
287
+
288
+ # when true sorcery will not automatically
289
+ # email activation details and allow you to
290
+ # manually handle how and when email is sent.
291
+ # Default: `false`
292
+ #
293
+ # user.activation_mailer_disabled =
294
+
295
+
296
+ # activation needed email method on your mailer class.
297
+ # Default: `:activation_needed_email`
298
+ #
299
+ # user.activation_needed_email_method_name =
300
+
301
+
302
+ # activation success email method on your mailer class.
303
+ # Default: `:activation_success_email`
304
+ #
305
+ # user.activation_success_email_method_name =
306
+
307
+
308
+ # do you want to prevent or allow users that did not activate by email to login?
309
+ # Default: `true`
310
+ #
311
+ # user.prevent_non_active_users_to_login =
312
+
313
+
314
+ # -- reset_password --
315
+ # reset password code attribute name.
316
+ # Default: `:reset_password_token`
317
+ #
318
+ # user.reset_password_token_attribute_name =
319
+
320
+
321
+ # expires at attribute name.
322
+ # Default: `:reset_password_token_expires_at`
323
+ #
324
+ # user.reset_password_token_expires_at_attribute_name =
325
+
326
+
327
+ # when was email sent, used for hammering protection.
328
+ # Default: `:reset_password_email_sent_at`
329
+ #
330
+ # user.reset_password_email_sent_at_attribute_name =
331
+
332
+
333
+ # mailer class. Needed.
334
+ # Default: `nil`
335
+ #
336
+ # user.reset_password_mailer =
337
+
338
+
339
+ # reset password email method on your mailer class.
340
+ # Default: `:reset_password_email`
341
+ #
342
+ # user.reset_password_email_method_name =
343
+
344
+
345
+ # when true sorcery will not automatically
346
+ # email password reset details and allow you to
347
+ # manually handle how and when email is sent
348
+ # Default: `false`
349
+ #
350
+ # user.reset_password_mailer_disabled =
351
+
352
+
353
+ # how many seconds before the reset request expires. nil for never expires.
354
+ # Default: `nil`
355
+ #
356
+ # user.reset_password_expiration_period =
357
+
358
+
359
+ # hammering protection, how long in seconds to wait before allowing another email to be sent.
360
+ # Default: `5 * 60`
361
+ #
362
+ # user.reset_password_time_between_emails =
363
+
364
+
365
+ # -- brute_force_protection --
366
+ # Failed logins attribute name.
367
+ # Default: `:failed_logins_count`
368
+ #
369
+ # user.failed_logins_count_attribute_name =
370
+
371
+
372
+ # This field indicates whether user is banned and when it will be active again.
373
+ # Default: `:lock_expires_at`
374
+ #
375
+ # user.lock_expires_at_attribute_name =
376
+
377
+
378
+ # How many failed logins allowed.
379
+ # Default: `50`
380
+ #
381
+ # user.consecutive_login_retries_amount_limit =
382
+
383
+
384
+ # How long the user should be banned. in seconds. 0 for permanent.
385
+ # Default: `60 * 60`
386
+ #
387
+ # user.login_lock_time_period =
388
+
389
+ # Unlock token attribute name
390
+ # Default: `:unlock_token`
391
+ #
392
+ # user.unlock_token_attribute_name =
393
+
394
+ # Unlock token mailer method
395
+ # Default: `:send_unlock_token_email`
396
+ #
397
+ # user.unlock_token_email_method_name =
398
+
399
+ # when true sorcery will not automatically
400
+ # send email with unlock token
401
+ # Default: `false`
402
+ #
403
+ # user.unlock_token_mailer_disabled = true
404
+
405
+ # Unlock token mailer class
406
+ # Default: `nil`
407
+ #
408
+ # user.unlock_token_mailer = UserMailer
409
+
410
+ # -- activity logging --
411
+ # Last login attribute name.
412
+ # Default: `:last_login_at`
413
+ #
414
+ # user.last_login_at_attribute_name =
415
+
416
+
417
+ # Last logout attribute name.
418
+ # Default: `:last_logout_at`
419
+ #
420
+ # user.last_logout_at_attribute_name =
421
+
422
+
423
+ # Last activity attribute name.
424
+ # Default: `:last_activity_at`
425
+ #
426
+ # user.last_activity_at_attribute_name =
427
+
428
+
429
+ # How long since last activity is the user defined logged out?
430
+ # Default: `10 * 60`
431
+ #
432
+ # user.activity_timeout =
433
+
434
+
435
+ # -- external --
436
+ # Class which holds the various external provider data for this user.
437
+ # Default: `nil`
438
+ #
439
+ # user.authentications_class =
440
+
441
+
442
+ # User's identifier in authentications class.
443
+ # Default: `:user_id`
444
+ #
445
+ # user.authentications_user_id_attribute_name =
446
+
447
+
448
+ # Provider's identifier in authentications class.
449
+ # Default: `:provider`
450
+ #
451
+ # user.provider_attribute_name =
452
+
453
+
454
+ # User's external unique identifier in authentications class.
455
+ # Default: `:uid`
456
+ #
457
+ # user.provider_uid_attribute_name =
458
+ end
459
+
460
+ # This line must come after the 'user config' block.
461
+ # Define which model authenticates with sorcery.
462
+ config.user_class = "User"
463
+ end