any_login 1.4.4 → 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 -2
  4. data/lib/any_login/engine.rb +19 -22
  5. data/lib/any_login/helpers.rb +2 -2
  6. data/lib/any_login/providers/authlogic.rb +0 -2
  7. data/lib/any_login/providers/clearance.rb +0 -4
  8. data/lib/any_login/providers/devise.rb +0 -2
  9. data/lib/any_login/providers/sorcery.rb +0 -2
  10. data/lib/any_login/version.rb +1 -1
  11. data/test/authlogic/integration/navigation_test.rb +25 -0
  12. data/test/authlogic/test_helper_authlogic.rb +5 -0
  13. data/test/clearance/integration/navigation_test.rb +24 -0
  14. data/test/clearance/test_helper_clearance.rb +5 -0
  15. data/test/devise/integration/navigation_test.rb +26 -0
  16. data/test/devise/test_helper_devise.rb +5 -0
  17. data/test/{any_login_test.rb → devise/unit/any_login_test.rb} +1 -1
  18. data/test/{any_login → devise/unit}/collection_test.rb +1 -1
  19. data/test/{dummy-sorcery → rails_apps/authlogic}/Rakefile +1 -1
  20. data/test/rails_apps/authlogic/app/assets/config/manifest.js +1 -0
  21. data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/application_controller.rb +0 -0
  22. data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/home_controller.rb +1 -1
  23. data/test/{dummy-authlogic → rails_apps/authlogic}/app/controllers/user_sessions_controller.rb +0 -0
  24. data/test/{dummy-authlogic → rails_apps/authlogic}/app/models/user.rb +0 -0
  25. data/test/{dummy-authlogic → rails_apps/authlogic}/app/models/user_session.rb +0 -0
  26. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/home/about.html.erb +0 -0
  27. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/home/index.html.erb +0 -0
  28. data/test/rails_apps/authlogic/app/views/layouts/application.html.erb +29 -0
  29. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/shared/_footer.html.erb +0 -0
  30. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/shared/_header.html.erb +0 -0
  31. data/test/{dummy-authlogic → rails_apps/authlogic}/app/views/user_sessions/new.html.erb +0 -0
  32. data/test/rails_apps/authlogic/bin/rails +4 -0
  33. data/test/rails_apps/authlogic/bin/rake +4 -0
  34. data/test/rails_apps/authlogic/bin/setup +33 -0
  35. data/test/rails_apps/authlogic/config/application.rb +25 -0
  36. data/test/rails_apps/authlogic/config/boot.rb +5 -0
  37. data/test/{dummy-sorcery → rails_apps/authlogic}/config/database.yml +3 -3
  38. data/test/{dummy-clearance → rails_apps/authlogic}/config/environment.rb +1 -1
  39. data/test/rails_apps/authlogic/config/environments/development.rb +70 -0
  40. data/test/{dummy → rails_apps/authlogic}/config/environments/production.rb +40 -26
  41. data/test/rails_apps/authlogic/config/environments/test.rb +60 -0
  42. data/test/{dummy-authlogic → rails_apps/authlogic}/config/initializers/any_login.rb +1 -0
  43. data/test/rails_apps/authlogic/config/initializers/assets.rb +12 -0
  44. data/test/rails_apps/authlogic/config/initializers/filter_parameter_logging.rb +8 -0
  45. data/test/{dummy-clearance → rails_apps/authlogic}/config/initializers/inflections.rb +4 -4
  46. data/test/{dummy-sorcery → rails_apps/authlogic}/config/initializers/sorcery.rb +0 -0
  47. data/test/{dummy-sorcery → rails_apps/authlogic}/config/locales/en.yml +13 -3
  48. data/test/{dummy-authlogic → rails_apps/authlogic}/config/routes.rb +0 -0
  49. data/test/rails_apps/authlogic/config/storage.yml +34 -0
  50. data/test/{dummy-clearance → rails_apps/authlogic}/config.ru +3 -1
  51. data/test/{dummy-clearance → rails_apps/authlogic}/db/migrate/20150907190739_create_users.rb +1 -1
  52. data/test/{dummy → rails_apps/authlogic}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  53. data/test/{dummy-clearance → rails_apps/authlogic}/db/migrate/20150928123254_change_users.rb +1 -1
  54. data/test/rails_apps/authlogic/db/migrate/20220825195914_populate_test_users.rb +21 -0
  55. data/test/rails_apps/authlogic/db/schema.rb +46 -0
  56. data/test/{dummy-authlogic → rails_apps/authlogic}/public/404.html +6 -6
  57. data/test/{dummy-clearance → rails_apps/authlogic}/public/422.html +6 -6
  58. data/test/{dummy-clearance → rails_apps/authlogic}/public/500.html +6 -6
  59. data/test/{dummy-authlogic → rails_apps/authlogic}/public/favicon.ico +0 -0
  60. data/test/{dummy-clearance → rails_apps/clearance}/Rakefile +1 -1
  61. data/test/rails_apps/clearance/app/assets/config/manifest.js +1 -0
  62. data/test/{dummy-clearance → rails_apps/clearance}/app/controllers/application_controller.rb +0 -0
  63. data/test/{dummy-clearance → rails_apps/clearance}/app/controllers/home_controller.rb +0 -0
  64. data/test/{dummy-clearance → rails_apps/clearance}/app/models/user.rb +0 -0
  65. data/test/{dummy-clearance → rails_apps/clearance}/app/models/user_session.rb +0 -0
  66. data/test/{dummy-clearance → rails_apps/clearance}/app/views/home/about.html.erb +0 -0
  67. data/test/{dummy-clearance → rails_apps/clearance}/app/views/home/index.html.erb +0 -0
  68. data/test/rails_apps/clearance/app/views/layouts/application.html.erb +29 -0
  69. data/test/{dummy-clearance → rails_apps/clearance}/app/views/shared/_footer.html.erb +0 -0
  70. data/test/{dummy-clearance → rails_apps/clearance}/app/views/shared/_header.html.erb +0 -0
  71. data/test/rails_apps/clearance/bin/rails +4 -0
  72. data/test/rails_apps/clearance/bin/rake +4 -0
  73. data/test/rails_apps/clearance/bin/setup +33 -0
  74. data/test/rails_apps/clearance/config/application.rb +25 -0
  75. data/test/rails_apps/clearance/config/boot.rb +5 -0
  76. data/test/{dummy-authlogic → rails_apps/clearance}/config/database.yml +3 -3
  77. data/test/{dummy → rails_apps/clearance}/config/environment.rb +1 -1
  78. data/test/rails_apps/clearance/config/environments/development.rb +70 -0
  79. data/test/{dummy-authlogic → rails_apps/clearance}/config/environments/production.rb +40 -26
  80. data/test/rails_apps/clearance/config/environments/test.rb +60 -0
  81. data/test/{dummy-clearance → rails_apps/clearance}/config/initializers/any_login.rb +1 -0
  82. data/test/rails_apps/clearance/config/initializers/assets.rb +12 -0
  83. data/test/{dummy-clearance → rails_apps/clearance}/config/initializers/clearance.rb +0 -0
  84. data/test/rails_apps/clearance/config/initializers/filter_parameter_logging.rb +8 -0
  85. data/test/{dummy-sorcery → rails_apps/clearance}/config/initializers/inflections.rb +4 -4
  86. data/test/{dummy-authlogic → rails_apps/clearance}/config/locales/en.yml +13 -3
  87. data/test/{dummy-clearance → rails_apps/clearance}/config/routes.rb +0 -0
  88. data/test/rails_apps/clearance/config/storage.yml +34 -0
  89. data/test/{dummy-sorcery → rails_apps/clearance}/config.ru +3 -1
  90. data/test/{dummy-sorcery → rails_apps/clearance}/db/migrate/20150907190739_create_users.rb +1 -1
  91. data/test/{dummy-sorcery → rails_apps/clearance}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  92. data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20150909210357_populate_test_users.rb +6 -6
  93. data/test/{dummy-authlogic → rails_apps/clearance}/db/migrate/20150928123254_change_users.rb +1 -1
  94. data/test/{dummy-clearance → rails_apps/clearance}/db/migrate/20151007170422_add_clearance_to_users.rb +1 -1
  95. data/test/rails_apps/clearance/db/schema.rb +49 -0
  96. data/test/{dummy-sorcery → rails_apps/clearance}/public/404.html +6 -6
  97. data/test/{dummy-sorcery → rails_apps/clearance}/public/422.html +6 -6
  98. data/test/{dummy-sorcery → rails_apps/clearance}/public/500.html +6 -6
  99. data/test/{dummy-clearance → rails_apps/clearance}/public/favicon.ico +0 -0
  100. data/test/{dummy → rails_apps/devise}/Rakefile +1 -1
  101. data/test/rails_apps/devise/app/assets/config/manifest.js +1 -0
  102. data/test/rails_apps/devise/app/controllers/application_controller.rb +2 -0
  103. data/test/{dummy → rails_apps/devise}/app/controllers/home_controller.rb +0 -0
  104. data/test/{dummy → rails_apps/devise}/app/models/user.rb +0 -0
  105. data/test/{dummy-sorcery → rails_apps/devise}/app/views/home/about.html.erb +0 -0
  106. data/test/{dummy → rails_apps/devise}/app/views/home/index.html.erb +0 -0
  107. data/test/rails_apps/devise/app/views/layouts/application.html.erb +29 -0
  108. data/test/{dummy → rails_apps/devise}/app/views/shared/_footer.html.erb +0 -1
  109. data/test/{dummy-sorcery → rails_apps/devise}/app/views/shared/_header.html.erb +0 -0
  110. data/test/rails_apps/devise/bin/rails +4 -0
  111. data/test/rails_apps/devise/bin/rake +4 -0
  112. data/test/rails_apps/devise/bin/setup +33 -0
  113. data/test/rails_apps/devise/config/application.rb +25 -0
  114. data/test/rails_apps/devise/config/boot.rb +5 -0
  115. data/test/{dummy → rails_apps/devise}/config/database.yml +3 -3
  116. data/test/{dummy-sorcery → rails_apps/devise}/config/environment.rb +1 -1
  117. data/test/rails_apps/devise/config/environments/development.rb +67 -0
  118. data/test/{dummy-clearance → rails_apps/devise}/config/environments/production.rb +40 -26
  119. data/test/rails_apps/devise/config/environments/test.rb +60 -0
  120. data/test/{dummy → rails_apps/devise}/config/initializers/any_login.rb +1 -0
  121. data/test/rails_apps/devise/config/initializers/assets.rb +12 -0
  122. data/test/{dummy → rails_apps/devise}/config/initializers/devise.rb +0 -0
  123. data/test/rails_apps/devise/config/initializers/filter_parameter_logging.rb +8 -0
  124. data/test/{dummy-authlogic → rails_apps/devise}/config/initializers/inflections.rb +4 -4
  125. data/test/{dummy → rails_apps/devise}/config/locales/en.yml +13 -3
  126. data/test/{dummy → rails_apps/devise}/config/routes.rb +0 -0
  127. data/test/rails_apps/devise/config/storage.yml +34 -0
  128. data/test/{dummy-authlogic → rails_apps/devise}/config.ru +3 -1
  129. data/test/{dummy → rails_apps/devise}/db/migrate/20150907190739_create_users.rb +1 -1
  130. data/test/{dummy-clearance → rails_apps/devise}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  131. data/test/rails_apps/devise/db/migrate/20150909210357_populate_test_users.rb +21 -0
  132. data/test/rails_apps/devise/db/schema.rb +35 -0
  133. data/test/{dummy-clearance → rails_apps/devise}/public/404.html +6 -6
  134. data/test/{dummy → rails_apps/devise}/public/422.html +6 -6
  135. data/test/{dummy → rails_apps/devise}/public/500.html +6 -6
  136. data/test/{dummy-sorcery → rails_apps/devise}/public/favicon.ico +0 -0
  137. data/test/{dummy-authlogic → rails_apps/sorcery}/Rakefile +1 -1
  138. data/test/rails_apps/sorcery/app/assets/config/manifest.js +1 -0
  139. data/test/rails_apps/sorcery/app/controllers/application_controller.rb +2 -0
  140. data/test/{dummy-sorcery → rails_apps/sorcery}/app/controllers/home_controller.rb +0 -0
  141. data/test/{dummy-sorcery → rails_apps/sorcery}/app/models/user.rb +0 -0
  142. data/test/{dummy → rails_apps/sorcery}/app/views/home/about.html.erb +0 -0
  143. data/test/{dummy-sorcery → rails_apps/sorcery}/app/views/home/index.html.erb +0 -0
  144. data/test/rails_apps/sorcery/app/views/layouts/application.html.erb +29 -0
  145. data/test/{dummy-sorcery → rails_apps/sorcery}/app/views/shared/_footer.html.erb +0 -0
  146. data/test/{dummy → rails_apps/sorcery}/app/views/shared/_header.html.erb +0 -0
  147. data/test/rails_apps/sorcery/bin/rails +4 -0
  148. data/test/rails_apps/sorcery/bin/rake +4 -0
  149. data/test/rails_apps/sorcery/bin/setup +33 -0
  150. data/test/rails_apps/sorcery/config/application.rb +25 -0
  151. data/test/rails_apps/sorcery/config/boot.rb +5 -0
  152. data/test/{dummy-clearance → rails_apps/sorcery}/config/database.yml +3 -3
  153. data/test/{dummy-authlogic → rails_apps/sorcery}/config/environment.rb +1 -1
  154. data/test/rails_apps/sorcery/config/environments/development.rb +70 -0
  155. data/test/{dummy-sorcery → rails_apps/sorcery}/config/environments/production.rb +40 -26
  156. data/test/rails_apps/sorcery/config/environments/test.rb +60 -0
  157. data/test/{dummy-sorcery → rails_apps/sorcery}/config/initializers/any_login.rb +1 -0
  158. data/test/rails_apps/sorcery/config/initializers/assets.rb +12 -0
  159. data/test/rails_apps/sorcery/config/initializers/filter_parameter_logging.rb +8 -0
  160. data/test/{dummy → rails_apps/sorcery}/config/initializers/inflections.rb +4 -4
  161. data/test/rails_apps/sorcery/config/initializers/sorcery.rb +463 -0
  162. data/test/{dummy-clearance → rails_apps/sorcery}/config/locales/en.yml +13 -3
  163. data/test/{dummy-sorcery → rails_apps/sorcery}/config/routes.rb +0 -0
  164. data/test/rails_apps/sorcery/config/storage.yml +34 -0
  165. data/test/{dummy → rails_apps/sorcery}/config.ru +3 -1
  166. data/test/{dummy-authlogic → rails_apps/sorcery}/db/migrate/20150907190739_create_users.rb +1 -1
  167. data/test/{dummy-authlogic → rails_apps/sorcery}/db/migrate/20150907190846_add_devise_to_users.rb +1 -1
  168. data/test/rails_apps/sorcery/db/migrate/20150909210357_add_role_to_users.rb +6 -0
  169. data/test/{dummy-sorcery → rails_apps/sorcery}/db/migrate/20151019154558_sorcery_core.rb +2 -2
  170. data/test/rails_apps/sorcery/db/migrate/20220827040518_populate_test_users.rb +20 -0
  171. data/test/rails_apps/sorcery/db/schema.rb +37 -0
  172. data/test/{dummy → rails_apps/sorcery}/public/404.html +6 -6
  173. data/test/{dummy-authlogic → rails_apps/sorcery}/public/422.html +6 -6
  174. data/test/{dummy-authlogic → rails_apps/sorcery}/public/500.html +6 -6
  175. data/test/{dummy → rails_apps/sorcery}/public/favicon.ico +0 -0
  176. data/test/sorcery/integration/navigation_test.rb +24 -0
  177. data/test/sorcery/test_helper_sorcery.rb +5 -0
  178. data/test/test_helper_common.rb +25 -0
  179. metadata +346 -632
  180. data/test/dummy/README.rdoc +0 -28
  181. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  182. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.svg +0 -288
  183. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  184. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  185. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  186. data/test/dummy/app/assets/javascripts/application.js +0 -15
  187. data/test/dummy/app/assets/javascripts/bootstrap.min.js +0 -7
  188. data/test/dummy/app/assets/javascripts/home.js +0 -2
  189. data/test/dummy/app/assets/stylesheets/application.css +0 -22
  190. data/test/dummy/app/assets/stylesheets/bootstrap-theme.min.css +0 -5
  191. data/test/dummy/app/assets/stylesheets/bootstrap.min.css +0 -5
  192. data/test/dummy/app/assets/stylesheets/home.css +0 -4
  193. data/test/dummy/app/controllers/application_controller.rb +0 -5
  194. data/test/dummy/app/helpers/application_helper.rb +0 -2
  195. data/test/dummy/app/helpers/home_helper.rb +0 -2
  196. data/test/dummy/app/views/layouts/application.html.erb +0 -22
  197. data/test/dummy/bin/bundle +0 -3
  198. data/test/dummy/bin/rails +0 -4
  199. data/test/dummy/bin/rake +0 -4
  200. data/test/dummy/bin/setup +0 -29
  201. data/test/dummy/config/application.rb +0 -26
  202. data/test/dummy/config/boot.rb +0 -5
  203. data/test/dummy/config/environments/development.rb +0 -42
  204. data/test/dummy/config/environments/test.rb +0 -42
  205. data/test/dummy/config/initializers/assets.rb +0 -11
  206. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  207. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  208. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  209. data/test/dummy/config/initializers/mime_types.rb +0 -4
  210. data/test/dummy/config/initializers/session_store.rb +0 -3
  211. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  212. data/test/dummy/config/locales/devise.en.yml +0 -60
  213. data/test/dummy/config/secrets.yml +0 -22
  214. data/test/dummy/db/development.sqlite3 +0 -0
  215. data/test/dummy/db/migrate/20150909210357_populate_test_users.rb +0 -21
  216. data/test/dummy/db/schema.rb +0 -37
  217. data/test/dummy/db/test.sqlite3 +0 -0
  218. data/test/dummy/log/test.log +0 -25
  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
@@ -1,26 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups)
6
- require "any_login"
7
-
8
- module Dummy
9
- class Application < Rails::Application
10
- # Settings in config/environments/* take precedence over those specified here.
11
- # Application configuration should go into files in config/initializers
12
- # -- all .rb files in that directory are automatically loaded.
13
-
14
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
15
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
16
- # config.time_zone = 'Central Time (US & Canada)'
17
-
18
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
- # config.i18n.default_locale = :de
21
-
22
- # Do not swallow errors in after_commit/after_rollback callbacks.
23
- config.active_record.raise_in_transactional_callbacks = true
24
- end
25
- end
26
-
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,42 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send.
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger.
20
- config.active_support.deprecation = :log
21
-
22
- # Raise an error on page load if there are pending migrations.
23
- config.active_record.migration_error = :page_load
24
-
25
- # Debug mode disables concatenation and preprocessing of assets.
26
- # This option may cause significant delays in view rendering with a large
27
- # number of complex assets.
28
- config.assets.debug = true
29
-
30
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
- # yet still be able to expire them through the digest params.
32
- config.assets.digest = true
33
-
34
- # Adds additional error checking when serving assets at runtime.
35
- # Checks for improperly declared sprockets dependencies.
36
- # Raises helpful error messages.
37
- config.assets.raise_runtime_errors = true
38
-
39
- # Raises error for missing translations
40
- # config.action_view.raise_on_missing_translations = true
41
- config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
42
- end
@@ -1,42 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static file server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = 'public, max-age=3600'
18
-
19
- # Show full error reports and disable caching.
20
- config.consider_all_requests_local = true
21
- config.action_controller.perform_caching = false
22
-
23
- # Raise exceptions instead of rendering exception templates.
24
- config.action_dispatch.show_exceptions = false
25
-
26
- # Disable request forgery protection in test environment.
27
- config.action_controller.allow_forgery_protection = false
28
-
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
- # Randomize the order test cases are executed.
35
- config.active_support.test_order = :random
36
-
37
- # Print deprecation notices to the stderr.
38
- config.active_support.deprecation = :stderr
39
-
40
- # Raises error for missing translations
41
- # config.action_view.raise_on_missing_translations = true
42
- end
@@ -1,11 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
5
-
6
- # Add additional assets to the asset load path
7
- # Rails.application.config.assets.paths << Emoji.images_path
8
-
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,60 +0,0 @@
1
- # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
-
3
- en:
4
- devise:
5
- confirmations:
6
- confirmed: "Your email address has been successfully confirmed."
7
- send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
8
- send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
9
- failure:
10
- already_authenticated: "You are already signed in."
11
- inactive: "Your account is not activated yet."
12
- invalid: "Invalid %{authentication_keys} or password."
13
- locked: "Your account is locked."
14
- last_attempt: "You have one more attempt before your account is locked."
15
- not_found_in_database: "Invalid %{authentication_keys} or password."
16
- timeout: "Your session expired. Please sign in again to continue."
17
- unauthenticated: "You need to sign in or sign up before continuing."
18
- unconfirmed: "You have to confirm your email address before continuing."
19
- mailer:
20
- confirmation_instructions:
21
- subject: "Confirmation instructions"
22
- reset_password_instructions:
23
- subject: "Reset password instructions"
24
- unlock_instructions:
25
- subject: "Unlock instructions"
26
- omniauth_callbacks:
27
- failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
28
- success: "Successfully authenticated from %{kind} account."
29
- passwords:
30
- no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
31
- send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
32
- send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
33
- updated: "Your password has been changed successfully. You are now signed in."
34
- updated_not_active: "Your password has been changed successfully."
35
- registrations:
36
- destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
37
- signed_up: "Welcome! You have signed up successfully."
38
- signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
39
- signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
40
- signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
41
- update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
42
- updated: "Your account has been updated successfully."
43
- sessions:
44
- signed_in: "Signed in successfully."
45
- signed_out: "Signed out successfully."
46
- already_signed_out: "Signed out successfully."
47
- unlocks:
48
- send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
49
- send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
50
- unlocked: "Your account has been unlocked successfully. Please sign in to continue."
51
- errors:
52
- messages:
53
- already_confirmed: "was already confirmed, please try signing in"
54
- confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
55
- expired: "has expired, please request a new one"
56
- not_found: "not found"
57
- not_locked: "was not locked"
58
- not_saved:
59
- one: "1 error prohibited this %{resource} from being saved:"
60
- other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: 0185a39cbc94e0e4efe2efcb693619031ea34cc67a1a94cef1fb0fee74c5fcbfb4fbb3acff192e2dd0d2f2960f8b403a1f5ed0fa46972963b33e33d599ce5e9b
15
-
16
- test:
17
- secret_key_base: ea13d47b7f6469e9bf1053b6a45629dc8c27f962351fd07ebf5dea75e514a297a762b168a3b0156be83ba9086b20790d83458a3579e5c67d1d1eb1068fe72f04
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,21 +0,0 @@
1
- class PopulateTestUsers < ActiveRecord::Migration
2
- def change
3
- add_column :users, :role, :string
4
- 100.times { User.create(name: gen_name, age: rand(100), email: gen_email, role: gen_role, password: '12345678', password_confirmation: '12345678') }
5
- end
6
-
7
- private
8
-
9
- def gen_name
10
- ['Igor', 'Michael' 'John', 'Stan', 'Bob', 'Kris', 'Alan'].sample + ' ' + rand(100).to_s
11
- end
12
-
13
- def gen_email
14
- email = ['Igor', 'Michael' 'John', 'Stan', 'Bob', 'Kris', 'Alan'].sample + rand(100).to_s + '@gmail.com'
15
- email.downcase
16
- end
17
-
18
- def gen_role
19
- ['admin', 'user', 'moderator'].sample
20
- end
21
- end
@@ -1,48 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20150928123254) do
15
-
16
- create_table "users", force: :cascade do |t|
17
- t.string "name"
18
- t.integer "age"
19
- t.datetime "created_at", null: false
20
- t.datetime "updated_at", null: false
21
- t.string "email", default: "", null: false
22
- t.string "encrypted_password", default: "", null: false
23
- t.string "reset_password_token"
24
- t.datetime "reset_password_sent_at"
25
- t.datetime "remember_created_at"
26
- t.integer "sign_in_count", default: 0, null: false
27
- t.datetime "current_sign_in_at"
28
- t.datetime "last_sign_in_at"
29
- t.string "current_sign_in_ip"
30
- t.string "last_sign_in_ip"
31
- t.string "role"
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
- end
44
-
45
- add_index "users", ["email"], name: "index_users_on_email", unique: true
46
- add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
47
-
48
- end
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.