any_login 1.4.2 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (327) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +22 -7
  3. data/app/controllers/any_login/application_controller.rb +3 -1
  4. data/lib/any_login/engine.rb +20 -25
  5. data/{app/helpers/any_login/application_helper.rb → lib/any_login/helpers.rb} +4 -6
  6. data/lib/any_login/providers/authlogic.rb +1 -3
  7. data/lib/any_login/providers/clearance.rb +1 -5
  8. data/lib/any_login/providers/devise.rb +2 -4
  9. data/lib/any_login/providers/sorcery.rb +1 -3
  10. data/lib/any_login/version.rb +1 -1
  11. data/lib/any_login.rb +3 -0
  12. data/test/authlogic/integration/navigation_test.rb +25 -0
  13. data/test/authlogic/test_helper_authlogic.rb +5 -0
  14. data/test/clearance/integration/navigation_test.rb +24 -0
  15. data/test/clearance/test_helper_clearance.rb +5 -0
  16. data/test/devise/integration/navigation_test.rb +26 -0
  17. data/test/devise/test_helper_devise.rb +5 -0
  18. data/test/{any_login_test.rb → devise/unit/any_login_test.rb} +1 -1
  19. data/test/{any_login → devise/unit}/collection_test.rb +1 -1
  20. data/test/{dummy-authlogic → rails_apps/authlogic}/Rakefile +1 -1
  21. data/test/rails_apps/authlogic/app/assets/config/manifest.js +1 -0
  22. data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/application_controller.rb +0 -0
  23. data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/home_controller.rb +1 -1
  24. data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/user_sessions_controller.rb +0 -0
  25. data/test/{dummy-authlogic → rails_apps/authlogic}/app/models/user.rb +0 -0
  26. data/test/{dummy-authlogic → rails_apps/authlogic}/app/models/user_session.rb +0 -0
  27. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/home/about.html.erb +0 -0
  28. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/home/index.html.erb +0 -0
  29. data/test/rails_apps/authlogic/app/views/layouts/application.html.erb +29 -0
  30. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/shared/_footer.html.erb +0 -0
  31. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/shared/_header.html.erb +0 -0
  32. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/user_sessions/new.html.erb +0 -0
  33. data/test/rails_apps/authlogic/bin/rails +4 -0
  34. data/test/rails_apps/authlogic/bin/rake +4 -0
  35. data/test/rails_apps/authlogic/bin/setup +33 -0
  36. data/test/rails_apps/authlogic/config/application.rb +25 -0
  37. data/test/rails_apps/authlogic/config/boot.rb +5 -0
  38. data/test/{dummy-sorcery → rails_apps/authlogic}/config/database.yml +3 -3
  39. data/test/{dummy-authlogic → rails_apps/authlogic}/config/environment.rb +1 -1
  40. data/test/rails_apps/authlogic/config/environments/development.rb +70 -0
  41. data/test/{dummy → rails_apps/authlogic}/config/environments/production.rb +40 -26
  42. data/test/rails_apps/authlogic/config/environments/test.rb +60 -0
  43. data/test/{dummy-authlogic → rails_apps/authlogic}/config/initializers/any_login.rb +1 -0
  44. data/test/rails_apps/authlogic/config/initializers/assets.rb +12 -0
  45. data/test/rails_apps/authlogic/config/initializers/filter_parameter_logging.rb +8 -0
  46. data/test/{dummy-clearance → rails_apps/authlogic}/config/initializers/inflections.rb +4 -4
  47. data/test/{dummy-sorcery → rails_apps/authlogic}/config/initializers/sorcery.rb +0 -0
  48. data/test/{dummy-sorcery → rails_apps/authlogic}/config/locales/en.yml +13 -3
  49. data/test/{dummy-authlogic → rails_apps/authlogic}/config/routes.rb +0 -0
  50. data/test/rails_apps/authlogic/config/storage.yml +34 -0
  51. data/test/{dummy-clearance → rails_apps/authlogic}/config.ru +3 -1
  52. data/test/{dummy-clearance → rails_apps/authlogic}/db/migrate/20150907190739_create_users.rb +1 -1
  53. data/test/{dummy-authlogic → rails_apps/authlogic}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  54. data/test/{dummy-clearance → rails_apps/authlogic}/db/migrate/20150928123254_change_users.rb +1 -1
  55. data/test/rails_apps/authlogic/db/migrate/20220825195914_populate_test_users.rb +21 -0
  56. data/test/rails_apps/authlogic/db/schema.rb +46 -0
  57. data/test/{dummy-authlogic → rails_apps/authlogic}/public/404.html +6 -6
  58. data/test/{dummy-clearance → rails_apps/authlogic}/public/422.html +6 -6
  59. data/test/{dummy-clearance → rails_apps/authlogic}/public/500.html +6 -6
  60. data/test/{dummy-authlogic → rails_apps/authlogic}/public/favicon.ico +0 -0
  61. data/test/{dummy-sorcery → rails_apps/clearance}/Rakefile +1 -1
  62. data/test/rails_apps/clearance/app/assets/config/manifest.js +1 -0
  63. data/test/{dummy-clearance → rails_apps/clearance}/app/controllers/application_controller.rb +0 -0
  64. data/test/{dummy-clearance → rails_apps/clearance}/app/controllers/home_controller.rb +0 -0
  65. data/test/{dummy-clearance → rails_apps/clearance}/app/models/user.rb +0 -0
  66. data/test/{dummy-clearance → rails_apps/clearance}/app/models/user_session.rb +0 -0
  67. data/test/{dummy-clearance → rails_apps/clearance}/app/views/home/about.html.erb +0 -0
  68. data/test/{dummy-clearance → rails_apps/clearance}/app/views/home/index.html.erb +0 -0
  69. data/test/rails_apps/clearance/app/views/layouts/application.html.erb +29 -0
  70. data/test/{dummy-clearance → rails_apps/clearance}/app/views/shared/_footer.html.erb +0 -0
  71. data/test/{dummy-clearance → rails_apps/clearance}/app/views/shared/_header.html.erb +0 -0
  72. data/test/rails_apps/clearance/bin/rails +4 -0
  73. data/test/rails_apps/clearance/bin/rake +4 -0
  74. data/test/rails_apps/clearance/bin/setup +33 -0
  75. data/test/rails_apps/clearance/config/application.rb +25 -0
  76. data/test/rails_apps/clearance/config/boot.rb +5 -0
  77. data/test/{dummy-authlogic → rails_apps/clearance}/config/database.yml +3 -3
  78. data/test/{dummy-clearance → rails_apps/clearance}/config/environment.rb +1 -1
  79. data/test/rails_apps/clearance/config/environments/development.rb +70 -0
  80. data/test/{dummy-sorcery → rails_apps/clearance}/config/environments/production.rb +40 -26
  81. data/test/rails_apps/clearance/config/environments/test.rb +60 -0
  82. data/test/{dummy-clearance → rails_apps/clearance}/config/initializers/any_login.rb +1 -0
  83. data/test/rails_apps/clearance/config/initializers/assets.rb +12 -0
  84. data/test/{dummy-clearance → rails_apps/clearance}/config/initializers/clearance.rb +0 -0
  85. data/test/rails_apps/clearance/config/initializers/filter_parameter_logging.rb +8 -0
  86. data/test/{dummy-sorcery → rails_apps/clearance}/config/initializers/inflections.rb +4 -4
  87. data/test/{dummy-authlogic → rails_apps/clearance}/config/locales/en.yml +13 -3
  88. data/test/{dummy-clearance → rails_apps/clearance}/config/routes.rb +0 -0
  89. data/test/rails_apps/clearance/config/storage.yml +34 -0
  90. data/test/{dummy-sorcery → rails_apps/clearance}/config.ru +3 -1
  91. data/test/{dummy-sorcery → rails_apps/clearance}/db/migrate/20150907190739_create_users.rb +1 -1
  92. data/test/{dummy → rails_apps/clearance}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  93. data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20150909210357_populate_test_users.rb +6 -6
  94. data/test/{dummy-authlogic → rails_apps/clearance}/db/migrate/20150928123254_change_users.rb +1 -1
  95. data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20151007170422_add_clearance_to_users.rb +1 -1
  96. data/test/rails_apps/clearance/db/schema.rb +49 -0
  97. data/test/{dummy-sorcery → rails_apps/clearance}/public/404.html +6 -6
  98. data/test/{dummy-sorcery → rails_apps/clearance}/public/422.html +6 -6
  99. data/test/{dummy-sorcery → rails_apps/clearance}/public/500.html +6 -6
  100. data/test/{dummy-clearance → rails_apps/clearance}/public/favicon.ico +0 -0
  101. data/test/{dummy-clearance → rails_apps/devise}/Rakefile +1 -1
  102. data/test/rails_apps/devise/app/assets/config/manifest.js +1 -0
  103. data/test/rails_apps/devise/app/controllers/application_controller.rb +2 -0
  104. data/test/{dummy → rails_apps/devise}/app/controllers/home_controller.rb +0 -0
  105. data/test/{dummy → rails_apps/devise}/app/models/user.rb +0 -0
  106. data/test/{dummy-sorcery → rails_apps/devise}/app/views/home/about.html.erb +0 -0
  107. data/test/{dummy → rails_apps/devise}/app/views/home/index.html.erb +0 -0
  108. data/test/rails_apps/devise/app/views/layouts/application.html.erb +29 -0
  109. data/test/{dummy → rails_apps/devise}/app/views/shared/_footer.html.erb +0 -1
  110. data/test/{dummy-sorcery → rails_apps/devise}/app/views/shared/_header.html.erb +0 -0
  111. data/test/rails_apps/devise/bin/rails +4 -0
  112. data/test/rails_apps/devise/bin/rake +4 -0
  113. data/test/rails_apps/devise/bin/setup +33 -0
  114. data/test/rails_apps/devise/config/application.rb +25 -0
  115. data/test/rails_apps/devise/config/boot.rb +5 -0
  116. data/test/{dummy → rails_apps/devise}/config/database.yml +3 -3
  117. data/test/{dummy → rails_apps/devise}/config/environment.rb +1 -1
  118. data/test/rails_apps/devise/config/environments/development.rb +67 -0
  119. data/test/{dummy-authlogic → rails_apps/devise}/config/environments/production.rb +40 -26
  120. data/test/rails_apps/devise/config/environments/test.rb +60 -0
  121. data/test/{dummy → rails_apps/devise}/config/initializers/any_login.rb +1 -0
  122. data/test/rails_apps/devise/config/initializers/assets.rb +12 -0
  123. data/test/{dummy → rails_apps/devise}/config/initializers/devise.rb +0 -0
  124. data/test/rails_apps/devise/config/initializers/filter_parameter_logging.rb +8 -0
  125. data/test/{dummy-authlogic → rails_apps/devise}/config/initializers/inflections.rb +4 -4
  126. data/test/{dummy → rails_apps/devise}/config/locales/en.yml +13 -3
  127. data/test/{dummy → rails_apps/devise}/config/routes.rb +0 -0
  128. data/test/rails_apps/devise/config/storage.yml +34 -0
  129. data/test/{dummy → rails_apps/devise}/config.ru +3 -1
  130. data/test/{dummy → rails_apps/devise}/db/migrate/20150907190739_create_users.rb +1 -1
  131. data/test/{dummy-sorcery → rails_apps/devise}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  132. data/test/rails_apps/devise/db/migrate/20150909210357_populate_test_users.rb +21 -0
  133. data/test/rails_apps/devise/db/schema.rb +35 -0
  134. data/test/{dummy → rails_apps/devise}/public/404.html +6 -6
  135. data/test/{dummy-authlogic → rails_apps/devise}/public/422.html +6 -6
  136. data/test/{dummy-authlogic → rails_apps/devise}/public/500.html +6 -6
  137. data/test/{dummy-sorcery → rails_apps/devise}/public/favicon.ico +0 -0
  138. data/test/{dummy → rails_apps/sorcery}/Rakefile +1 -1
  139. data/test/rails_apps/sorcery/app/assets/config/manifest.js +1 -0
  140. data/test/rails_apps/sorcery/app/controllers/application_controller.rb +2 -0
  141. data/test/{dummy-sorcery → rails_apps/sorcery}/app/controllers/home_controller.rb +0 -0
  142. data/test/{dummy-sorcery → rails_apps/sorcery}/app/models/user.rb +0 -0
  143. data/test/{dummy → rails_apps/sorcery}/app/views/home/about.html.erb +0 -0
  144. data/test/{dummy-sorcery → rails_apps/sorcery}/app/views/home/index.html.erb +0 -0
  145. data/test/rails_apps/sorcery/app/views/layouts/application.html.erb +29 -0
  146. data/test/{dummy-sorcery → rails_apps/sorcery}/app/views/shared/_footer.html.erb +0 -0
  147. data/test/{dummy → rails_apps/sorcery}/app/views/shared/_header.html.erb +0 -0
  148. data/test/rails_apps/sorcery/bin/rails +4 -0
  149. data/test/rails_apps/sorcery/bin/rake +4 -0
  150. data/test/rails_apps/sorcery/bin/setup +33 -0
  151. data/test/rails_apps/sorcery/config/application.rb +25 -0
  152. data/test/rails_apps/sorcery/config/boot.rb +5 -0
  153. data/test/{dummy-clearance → rails_apps/sorcery}/config/database.yml +3 -3
  154. data/test/{dummy-sorcery → rails_apps/sorcery}/config/environment.rb +1 -1
  155. data/test/rails_apps/sorcery/config/environments/development.rb +70 -0
  156. data/test/{dummy-clearance → rails_apps/sorcery}/config/environments/production.rb +40 -26
  157. data/test/rails_apps/sorcery/config/environments/test.rb +60 -0
  158. data/test/{dummy-sorcery → rails_apps/sorcery}/config/initializers/any_login.rb +1 -0
  159. data/test/rails_apps/sorcery/config/initializers/assets.rb +12 -0
  160. data/test/rails_apps/sorcery/config/initializers/filter_parameter_logging.rb +8 -0
  161. data/test/{dummy → rails_apps/sorcery}/config/initializers/inflections.rb +4 -4
  162. data/test/rails_apps/sorcery/config/initializers/sorcery.rb +463 -0
  163. data/test/{dummy-clearance → rails_apps/sorcery}/config/locales/en.yml +13 -3
  164. data/test/{dummy-sorcery → rails_apps/sorcery}/config/routes.rb +0 -0
  165. data/test/rails_apps/sorcery/config/storage.yml +34 -0
  166. data/test/{dummy-authlogic → rails_apps/sorcery}/config.ru +3 -1
  167. data/test/{dummy-authlogic → rails_apps/sorcery}/db/migrate/20150907190739_create_users.rb +1 -1
  168. data/test/{dummy-clearance → rails_apps/sorcery}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  169. data/test/rails_apps/sorcery/db/migrate/20150909210357_add_role_to_users.rb +6 -0
  170. data/test/{dummy-sorcery → rails_apps/sorcery}/db/migrate/20151019154558_sorcery_core.rb +2 -2
  171. data/test/rails_apps/sorcery/db/migrate/20220827040518_populate_test_users.rb +20 -0
  172. data/test/rails_apps/sorcery/db/schema.rb +37 -0
  173. data/test/{dummy-clearance → rails_apps/sorcery}/public/404.html +6 -6
  174. data/test/{dummy → rails_apps/sorcery}/public/422.html +6 -6
  175. data/test/{dummy → rails_apps/sorcery}/public/500.html +6 -6
  176. data/test/{dummy → rails_apps/sorcery}/public/favicon.ico +0 -0
  177. data/test/sorcery/integration/navigation_test.rb +24 -0
  178. data/test/sorcery/test_helper_sorcery.rb +5 -0
  179. data/test/test_helper_common.rb +25 -0
  180. metadata +347 -631
  181. data/test/dummy/README.rdoc +0 -28
  182. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  183. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
  184. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  185. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  186. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  187. data/test/dummy/app/assets/javascripts/application.js +0 -15
  188. data/test/dummy/app/assets/javascripts/bootstrap.min.js +0 -7
  189. data/test/dummy/app/assets/javascripts/home.js +0 -2
  190. data/test/dummy/app/assets/stylesheets/application.css +0 -22
  191. data/test/dummy/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
  192. data/test/dummy/app/assets/stylesheets/bootstrap.min.css +0 -5
  193. data/test/dummy/app/assets/stylesheets/home.css +0 -4
  194. data/test/dummy/app/controllers/application_controller.rb +0 -5
  195. data/test/dummy/app/helpers/application_helper.rb +0 -2
  196. data/test/dummy/app/helpers/home_helper.rb +0 -2
  197. data/test/dummy/app/views/layouts/application.html.erb +0 -22
  198. data/test/dummy/bin/bundle +0 -3
  199. data/test/dummy/bin/rails +0 -4
  200. data/test/dummy/bin/rake +0 -4
  201. data/test/dummy/bin/setup +0 -29
  202. data/test/dummy/config/application.rb +0 -26
  203. data/test/dummy/config/boot.rb +0 -5
  204. data/test/dummy/config/environments/development.rb +0 -42
  205. data/test/dummy/config/environments/test.rb +0 -42
  206. data/test/dummy/config/initializers/assets.rb +0 -11
  207. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  208. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  209. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  210. data/test/dummy/config/initializers/mime_types.rb +0 -4
  211. data/test/dummy/config/initializers/session_store.rb +0 -3
  212. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  213. data/test/dummy/config/locales/devise.en.yml +0 -60
  214. data/test/dummy/config/secrets.yml +0 -22
  215. data/test/dummy/db/development.sqlite3 +0 -0
  216. data/test/dummy/db/migrate/20150909210357_populate_test_users.rb +0 -21
  217. data/test/dummy/db/schema.rb +0 -37
  218. data/test/dummy/db/test.sqlite3 +0 -0
  219. data/test/dummy-authlogic/README.rdoc +0 -28
  220. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  221. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
  222. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  223. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  224. data/test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  225. data/test/dummy-authlogic/app/assets/javascripts/application.js +0 -15
  226. data/test/dummy-authlogic/app/assets/javascripts/bootstrap.min.js +0 -7
  227. data/test/dummy-authlogic/app/assets/javascripts/home.js +0 -2
  228. data/test/dummy-authlogic/app/assets/stylesheets/application.css +0 -15
  229. data/test/dummy-authlogic/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
  230. data/test/dummy-authlogic/app/assets/stylesheets/bootstrap.min.css +0 -5
  231. data/test/dummy-authlogic/app/assets/stylesheets/home.css +0 -4
  232. data/test/dummy-authlogic/app/helpers/application_helper.rb +0 -2
  233. data/test/dummy-authlogic/app/helpers/home_helper.rb +0 -2
  234. data/test/dummy-authlogic/app/views/layouts/application.html.erb +0 -22
  235. data/test/dummy-authlogic/bin/bundle +0 -3
  236. data/test/dummy-authlogic/bin/rails +0 -4
  237. data/test/dummy-authlogic/bin/rake +0 -4
  238. data/test/dummy-authlogic/bin/setup +0 -29
  239. data/test/dummy-authlogic/config/application.rb +0 -26
  240. data/test/dummy-authlogic/config/boot.rb +0 -5
  241. data/test/dummy-authlogic/config/environments/development.rb +0 -42
  242. data/test/dummy-authlogic/config/environments/test.rb +0 -42
  243. data/test/dummy-authlogic/config/initializers/assets.rb +0 -11
  244. data/test/dummy-authlogic/config/initializers/backtrace_silencers.rb +0 -7
  245. data/test/dummy-authlogic/config/initializers/cookies_serializer.rb +0 -3
  246. data/test/dummy-authlogic/config/initializers/filter_parameter_logging.rb +0 -4
  247. data/test/dummy-authlogic/config/initializers/mime_types.rb +0 -4
  248. data/test/dummy-authlogic/config/initializers/session_store.rb +0 -3
  249. data/test/dummy-authlogic/config/initializers/wrap_parameters.rb +0 -14
  250. data/test/dummy-authlogic/config/locales/devise.en.yml +0 -60
  251. data/test/dummy-authlogic/config/secrets.yml +0 -22
  252. data/test/dummy-authlogic/db/development.sqlite3 +0 -0
  253. data/test/dummy-authlogic/db/migrate/20150909210357_populate_test_users.rb +0 -21
  254. data/test/dummy-authlogic/db/schema.rb +0 -48
  255. data/test/dummy-clearance/README.rdoc +0 -28
  256. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  257. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
  258. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  259. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  260. data/test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  261. data/test/dummy-clearance/app/assets/javascripts/application.js +0 -15
  262. data/test/dummy-clearance/app/assets/javascripts/bootstrap.min.js +0 -7
  263. data/test/dummy-clearance/app/assets/javascripts/home.js +0 -2
  264. data/test/dummy-clearance/app/assets/stylesheets/application.css +0 -15
  265. data/test/dummy-clearance/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
  266. data/test/dummy-clearance/app/assets/stylesheets/bootstrap.min.css +0 -5
  267. data/test/dummy-clearance/app/assets/stylesheets/home.css +0 -4
  268. data/test/dummy-clearance/app/helpers/application_helper.rb +0 -2
  269. data/test/dummy-clearance/app/helpers/home_helper.rb +0 -2
  270. data/test/dummy-clearance/app/views/layouts/application.html.erb +0 -22
  271. data/test/dummy-clearance/app/views/user_sessions/new.html.erb +0 -11
  272. data/test/dummy-clearance/bin/bundle +0 -3
  273. data/test/dummy-clearance/bin/rails +0 -4
  274. data/test/dummy-clearance/bin/rake +0 -4
  275. data/test/dummy-clearance/bin/setup +0 -29
  276. data/test/dummy-clearance/config/application.rb +0 -26
  277. data/test/dummy-clearance/config/boot.rb +0 -5
  278. data/test/dummy-clearance/config/environments/development.rb +0 -42
  279. data/test/dummy-clearance/config/environments/test.rb +0 -42
  280. data/test/dummy-clearance/config/initializers/assets.rb +0 -11
  281. data/test/dummy-clearance/config/initializers/backtrace_silencers.rb +0 -7
  282. data/test/dummy-clearance/config/initializers/cookies_serializer.rb +0 -3
  283. data/test/dummy-clearance/config/initializers/filter_parameter_logging.rb +0 -4
  284. data/test/dummy-clearance/config/initializers/mime_types.rb +0 -4
  285. data/test/dummy-clearance/config/initializers/session_store.rb +0 -3
  286. data/test/dummy-clearance/config/initializers/wrap_parameters.rb +0 -14
  287. data/test/dummy-clearance/config/locales/devise.en.yml +0 -60
  288. data/test/dummy-clearance/config/secrets.yml +0 -22
  289. data/test/dummy-clearance/db/schema.rb +0 -51
  290. data/test/dummy-sorcery/README.rdoc +0 -28
  291. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  292. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
  293. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  294. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  295. data/test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  296. data/test/dummy-sorcery/app/assets/javascripts/application.js +0 -15
  297. data/test/dummy-sorcery/app/assets/javascripts/bootstrap.min.js +0 -7
  298. data/test/dummy-sorcery/app/assets/javascripts/home.js +0 -2
  299. data/test/dummy-sorcery/app/assets/stylesheets/application.css +0 -15
  300. data/test/dummy-sorcery/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
  301. data/test/dummy-sorcery/app/assets/stylesheets/bootstrap.min.css +0 -5
  302. data/test/dummy-sorcery/app/assets/stylesheets/home.css +0 -4
  303. data/test/dummy-sorcery/app/controllers/application_controller.rb +0 -5
  304. data/test/dummy-sorcery/app/helpers/application_helper.rb +0 -2
  305. data/test/dummy-sorcery/app/helpers/home_helper.rb +0 -2
  306. data/test/dummy-sorcery/app/views/layouts/application.html.erb +0 -22
  307. data/test/dummy-sorcery/bin/bundle +0 -3
  308. data/test/dummy-sorcery/bin/rails +0 -4
  309. data/test/dummy-sorcery/bin/rake +0 -4
  310. data/test/dummy-sorcery/bin/setup +0 -29
  311. data/test/dummy-sorcery/config/application.rb +0 -26
  312. data/test/dummy-sorcery/config/boot.rb +0 -5
  313. data/test/dummy-sorcery/config/environments/development.rb +0 -42
  314. data/test/dummy-sorcery/config/environments/test.rb +0 -42
  315. data/test/dummy-sorcery/config/initializers/assets.rb +0 -11
  316. data/test/dummy-sorcery/config/initializers/backtrace_silencers.rb +0 -7
  317. data/test/dummy-sorcery/config/initializers/cookies_serializer.rb +0 -3
  318. data/test/dummy-sorcery/config/initializers/filter_parameter_logging.rb +0 -4
  319. data/test/dummy-sorcery/config/initializers/mime_types.rb +0 -4
  320. data/test/dummy-sorcery/config/initializers/session_store.rb +0 -3
  321. data/test/dummy-sorcery/config/initializers/wrap_parameters.rb +0 -14
  322. data/test/dummy-sorcery/config/locales/devise.en.yml +0 -60
  323. data/test/dummy-sorcery/config/secrets.yml +0 -22
  324. data/test/dummy-sorcery/db/migrate/20150909210357_populate_test_users.rb +0 -21
  325. data/test/dummy-sorcery/db/schema.rb +0 -39
  326. data/test/integration/navigation_test.rb +0 -8
  327. data/test/test_helper.rb +0 -17
@@ -0,0 +1,25 @@
1
+ require_relative "boot"
2
+
3
+ require "rails/all"
4
+
5
+ # Require the gems listed in Gemfile, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(*Rails.groups)
8
+ require "any_login"
9
+
10
+ module DummyClearance
11
+ class Application < Rails::Application
12
+ config.load_defaults Rails::VERSION::STRING.to_f
13
+
14
+ # For compatibility with applications that use this config
15
+ config.action_controller.include_all_helpers = false
16
+
17
+ # Configuration for the application, engines, and railties goes here.
18
+ #
19
+ # These settings can be overridden in specific environments using the files
20
+ # in config/environments, which are processed later.
21
+ #
22
+ # config.time_zone = "Central Time (US & Canada)"
23
+ # config.eager_load_paths << Rails.root.join("extras")
24
+ end
25
+ end
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__)
3
+
4
+ require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
5
+ $LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)
@@ -1,12 +1,12 @@
1
- # SQLite version 3.x
1
+ # SQLite. Versions 3.8.0 and up are supported.
2
2
  # gem install sqlite3
3
3
  #
4
4
  # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
5
+ # gem "sqlite3"
6
6
  #
7
7
  default: &default
8
8
  adapter: sqlite3
9
- pool: 5
9
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
10
  timeout: 5000
11
11
 
12
12
  development:
@@ -1,5 +1,5 @@
1
1
  # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
2
+ require_relative "application"
3
3
 
4
4
  # Initialize the Rails application.
5
5
  Rails.application.initialize!
@@ -0,0 +1,70 @@
1
+ require "active_support/core_ext/integer/time"
2
+
3
+ Rails.application.configure do
4
+ # Settings specified here will take precedence over those in config/application.rb.
5
+
6
+ # In the development environment your application's code is reloaded any time
7
+ # it changes. This slows down response time but is perfect for development
8
+ # since you don't have to restart the web server when you make code changes.
9
+ config.cache_classes = false
10
+
11
+ # Do not eager load code on boot.
12
+ config.eager_load = false
13
+
14
+ # Show full error reports.
15
+ config.consider_all_requests_local = true
16
+
17
+ # Enable server timing
18
+ config.server_timing = true
19
+
20
+ # Enable/disable caching. By default caching is disabled.
21
+ # Run rails dev:cache to toggle caching.
22
+ if Rails.root.join("tmp/caching-dev.txt").exist?
23
+ config.action_controller.perform_caching = true
24
+ config.action_controller.enable_fragment_cache_logging = true
25
+
26
+ config.cache_store = :memory_store
27
+ config.public_file_server.headers = {
28
+ "Cache-Control" => "public, max-age=#{2.days.to_i}"
29
+ }
30
+ else
31
+ config.action_controller.perform_caching = false
32
+
33
+ config.cache_store = :null_store
34
+ end
35
+
36
+ # Store uploaded files on the local file system (see config/storage.yml for options).
37
+ config.active_storage.service = :local
38
+
39
+ # Don't care if the mailer can't send.
40
+ config.action_mailer.raise_delivery_errors = false
41
+
42
+ config.action_mailer.perform_caching = false
43
+
44
+ # Print deprecation notices to the Rails logger.
45
+ config.active_support.deprecation = :log
46
+
47
+ # Raise exceptions for disallowed deprecations.
48
+ config.active_support.disallowed_deprecation = :raise
49
+
50
+ # Tell Active Support which deprecation messages to disallow.
51
+ config.active_support.disallowed_deprecation_warnings = []
52
+
53
+ # Raise an error on page load if there are pending migrations.
54
+ config.active_record.migration_error = :page_load
55
+
56
+ # Highlight code that triggered database queries in logs.
57
+ config.active_record.verbose_query_logs = true
58
+
59
+ # Suppress logger output for asset requests.
60
+ config.assets.quiet = true
61
+
62
+ # Raises error for missing translations.
63
+ # config.i18n.raise_on_missing_translations = true
64
+
65
+ # Annotate rendered view with file names.
66
+ # config.action_view.annotate_rendered_view_with_filenames = true
67
+
68
+ # Uncomment if you wish to allow Action Cable access from any origin.
69
+ # config.action_cable.disable_request_forgery_protection = true
70
+ end
@@ -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 = :clearance
3
4
  config.login_button_label = 'Sign in with Clearance'
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
@@ -4,11 +4,11 @@
4
4
  #
5
5
  # To use the locales, use `I18n.t`:
6
6
  #
7
- # I18n.t 'hello'
7
+ # I18n.t "hello"
8
8
  #
9
9
  # In views, this is aliased to just `t`:
10
10
  #
11
- # <%= t('hello') %>
11
+ # <%= t("hello") %>
12
12
  #
13
13
  # To use a different locale, set it with `I18n.locale`:
14
14
  #
@@ -16,8 +16,18 @@
16
16
  #
17
17
  # This would use the information in config/locales/es.yml.
18
18
  #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # "true": "foo"
28
+ #
19
29
  # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
30
+ # available at https://guides.rubyonrails.org/i18n.html.
21
31
 
22
32
  en:
23
33
  hello: "Hello world"
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket-<%= Rails.env %>
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket-<%= Rails.env %>
23
+
24
+ # Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name-<%= Rails.env %>
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
@@ -1,4 +1,6 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
- require ::File.expand_path('../config/environment', __FILE__)
3
+ require_relative "config/environment"
4
+
4
5
  run Rails.application
6
+ Rails.application.load_server
@@ -1,4 +1,4 @@
1
- class CreateUsers < ActiveRecord::Migration
1
+ class CreateUsers < ActiveRecord::Migration[6.0]
2
2
  def change
3
3
  create_table :users do |t|
4
4
  t.string :name
@@ -1,4 +1,4 @@
1
- class AddDeviseToUsers < ActiveRecord::Migration
1
+ class AddDeviseToUsers < ActiveRecord::Migration[6.0]
2
2
  def self.up
3
3
  change_table(:users) do |t|
4
4
  ## Database authenticatable
@@ -1,18 +1,18 @@
1
- class PopulateTestUsers < ActiveRecord::Migration
1
+ class PopulateTestUsers < ActiveRecord::Migration[6.0]
2
2
  def change
3
3
  add_column :users, :role, :string
4
4
  add_column :users, :remember_token, :string, limit: 128
5
- 100.times { User.create(name: gen_name, age: rand(100), email: gen_email, role: gen_role, password: '12345678') }
5
+ 100.times { |t| User.create(name: gen_name(t), age: rand(100), email: gen_email(t), role: gen_role, password: '12345678') }
6
6
  end
7
7
 
8
8
  private
9
9
 
10
- def gen_name
11
- ['Igor', 'Michael' 'John', 'Stan', 'Bob', 'Kris', 'Alan'].sample + ' ' + rand(100).to_s
10
+ def gen_name(number)
11
+ ['Igor', 'Michael' 'John', 'Stan', 'Bob', 'Kris', 'Alan'].sample + ' ' + number.to_s
12
12
  end
13
13
 
14
- def gen_email
15
- email = ['Igor', 'Michael' 'John', 'Stan', 'Bob', 'Kris', 'Alan'].sample + rand(100).to_s + '@gmail.com'
14
+ def gen_email(number)
15
+ email = ['Igor', 'Michael' 'John', 'Stan', 'Bob', 'Kris', 'Alan'].sample + number.to_s + '@gmail.com'
16
16
  email.downcase
17
17
  end
18
18
 
@@ -1,4 +1,4 @@
1
- class ChangeUsers < ActiveRecord::Migration
1
+ class ChangeUsers < ActiveRecord::Migration[6.0]
2
2
  def change
3
3
  change_table :users do |t|
4
4
  t.string :login
@@ -1,4 +1,4 @@
1
- class AddClearanceToUsers < ActiveRecord::Migration
1
+ class AddClearanceToUsers < ActiveRecord::Migration[6.0]
2
2
  def self.up
3
3
  change_table :users do |t|
4
4
  t.string :confirmation_token, limit: 128
@@ -0,0 +1,49 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # This file is the source Rails uses to define your schema when running `bin/rails
6
+ # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7
+ # be faster and is potentially less error prone than running all of your
8
+ # migrations from scratch. Old migrations may fail to apply correctly if those
9
+ # migrations use external dependencies or application code.
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 2015_10_07_170422) do
14
+
15
+ create_table "users", force: :cascade do |t|
16
+ t.string "name"
17
+ t.integer "age"
18
+ t.datetime "created_at", precision: 6, null: false
19
+ t.datetime "updated_at", precision: 6, null: false
20
+ t.string "email", default: "", null: false
21
+ t.string "encrypted_password", default: "", null: false
22
+ t.string "reset_password_token"
23
+ t.datetime "reset_password_sent_at"
24
+ t.datetime "remember_created_at"
25
+ t.integer "sign_in_count", default: 0, null: false
26
+ t.datetime "current_sign_in_at"
27
+ t.datetime "last_sign_in_at"
28
+ t.string "current_sign_in_ip"
29
+ t.string "last_sign_in_ip"
30
+ t.string "role"
31
+ t.string "remember_token", limit: 128
32
+ t.string "login"
33
+ t.string "crypted_password"
34
+ t.string "password_salt"
35
+ t.string "persistence_token"
36
+ t.integer "login_count"
37
+ t.integer "failed_login_count"
38
+ t.datetime "last_request_at"
39
+ t.datetime "current_login_at"
40
+ t.datetime "last_login_at"
41
+ t.string "current_login_ip"
42
+ t.string "last_login_ip"
43
+ t.string "confirmation_token", limit: 128
44
+ t.index ["email"], name: "index_users_on_email", unique: true
45
+ t.index ["remember_token"], name: "index_users_on_remember_token"
46
+ t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
47
+ end
48
+
49
+ end
@@ -4,7 +4,7 @@
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
7
+ .rails-default-error-page {
8
8
  background-color: #EFEFEF;
9
9
  color: #2E2F30;
10
10
  text-align: center;
@@ -12,13 +12,13 @@
12
12
  margin: 0;
13
13
  }
14
14
 
15
- div.dialog {
15
+ .rails-default-error-page div.dialog {
16
16
  width: 95%;
17
17
  max-width: 33em;
18
18
  margin: 4em auto 0;
19
19
  }
20
20
 
21
- div.dialog > div {
21
+ .rails-default-error-page div.dialog > div {
22
22
  border: 1px solid #CCC;
23
23
  border-right-color: #999;
24
24
  border-left-color: #999;
@@ -31,13 +31,13 @@
31
31
  box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
32
  }
33
33
 
34
- h1 {
34
+ .rails-default-error-page h1 {
35
35
  font-size: 100%;
36
36
  color: #730E15;
37
37
  line-height: 1.5em;
38
38
  }
39
39
 
40
- div.dialog > p {
40
+ .rails-default-error-page div.dialog > p {
41
41
  margin: 0 0 1em;
42
42
  padding: 1em;
43
43
  background-color: #F7F7F7;
@@ -54,7 +54,7 @@
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
57
+ <body class="rails-default-error-page">
58
58
  <!-- This file lives in public/404.html -->
59
59
  <div class="dialog">
60
60
  <div>
@@ -4,7 +4,7 @@
4
4
  <title>The change you wanted was rejected (422)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
7
+ .rails-default-error-page {
8
8
  background-color: #EFEFEF;
9
9
  color: #2E2F30;
10
10
  text-align: center;
@@ -12,13 +12,13 @@
12
12
  margin: 0;
13
13
  }
14
14
 
15
- div.dialog {
15
+ .rails-default-error-page div.dialog {
16
16
  width: 95%;
17
17
  max-width: 33em;
18
18
  margin: 4em auto 0;
19
19
  }
20
20
 
21
- div.dialog > div {
21
+ .rails-default-error-page div.dialog > div {
22
22
  border: 1px solid #CCC;
23
23
  border-right-color: #999;
24
24
  border-left-color: #999;
@@ -31,13 +31,13 @@
31
31
  box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
32
  }
33
33
 
34
- h1 {
34
+ .rails-default-error-page h1 {
35
35
  font-size: 100%;
36
36
  color: #730E15;
37
37
  line-height: 1.5em;
38
38
  }
39
39
 
40
- div.dialog > p {
40
+ .rails-default-error-page div.dialog > p {
41
41
  margin: 0 0 1em;
42
42
  padding: 1em;
43
43
  background-color: #F7F7F7;
@@ -54,7 +54,7 @@
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
57
+ <body class="rails-default-error-page">
58
58
  <!-- This file lives in public/422.html -->
59
59
  <div class="dialog">
60
60
  <div>