devise-multi_email 3.0.0 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +17 -0
  3. data/.github/workflows/ruby_spec.yml +41 -0
  4. data/.gitignore +5 -0
  5. data/.travis.yml +8 -1
  6. data/CHANGELOG.md +3 -0
  7. data/Gemfile +1 -2
  8. data/README.md +9 -9
  9. data/devise-multi-email.code-workspace +8 -0
  10. data/devise-multi_email.gemspec +14 -13
  11. data/examples/{rails5_app → rails7_app}/Gemfile +5 -5
  12. data/examples/rails7_app/Gemfile.lock +442 -0
  13. data/examples/rails8_0_app/.gitignore +21 -0
  14. data/examples/rails8_0_app/Gemfile +55 -0
  15. data/examples/rails8_0_app/Gemfile.lock +442 -0
  16. data/examples/rails8_0_app/README.md +24 -0
  17. data/examples/rails8_0_app/Rakefile +6 -0
  18. data/examples/rails8_0_app/app/assets/config/manifest.js +3 -0
  19. data/examples/rails8_0_app/app/assets/images/.keep +0 -0
  20. data/examples/rails8_0_app/app/assets/javascripts/application.js +16 -0
  21. data/examples/rails8_0_app/app/assets/javascripts/cable.js +13 -0
  22. data/examples/rails8_0_app/app/assets/javascripts/channels/.keep +0 -0
  23. data/examples/rails8_0_app/app/assets/stylesheets/application.css +15 -0
  24. data/examples/rails8_0_app/app/channels/application_cable/channel.rb +4 -0
  25. data/examples/rails8_0_app/app/channels/application_cable/connection.rb +4 -0
  26. data/examples/rails8_0_app/app/controllers/application_controller.rb +3 -0
  27. data/examples/rails8_0_app/app/controllers/concerns/.keep +0 -0
  28. data/examples/rails8_0_app/app/helpers/application_helper.rb +2 -0
  29. data/examples/rails8_0_app/app/jobs/application_job.rb +2 -0
  30. data/examples/rails8_0_app/app/mailers/application_mailer.rb +4 -0
  31. data/examples/rails8_0_app/app/models/application_record.rb +3 -0
  32. data/examples/rails8_0_app/app/models/concerns/.keep +0 -0
  33. data/examples/rails8_0_app/app/models/email.rb +5 -0
  34. data/examples/rails8_0_app/app/models/user.rb +9 -0
  35. data/examples/rails8_0_app/app/views/layouts/application.html.erb +14 -0
  36. data/examples/rails8_0_app/app/views/layouts/mailer.html.erb +13 -0
  37. data/examples/rails8_0_app/app/views/layouts/mailer.text.erb +1 -0
  38. data/examples/rails8_0_app/bin/bundle +3 -0
  39. data/examples/rails8_0_app/bin/rails +4 -0
  40. data/examples/rails8_0_app/bin/rake +4 -0
  41. data/examples/rails8_0_app/bin/setup +34 -0
  42. data/examples/rails8_0_app/bin/update +29 -0
  43. data/examples/rails8_0_app/config/application.rb +15 -0
  44. data/examples/rails8_0_app/config/boot.rb +3 -0
  45. data/examples/rails8_0_app/config/cable.yml +9 -0
  46. data/examples/rails8_0_app/config/database.yml +25 -0
  47. data/examples/rails8_0_app/config/environment.rb +5 -0
  48. data/examples/rails8_0_app/config/environments/development.rb +56 -0
  49. data/examples/rails8_0_app/config/environments/production.rb +86 -0
  50. data/examples/rails8_0_app/config/environments/test.rb +42 -0
  51. data/examples/rails8_0_app/config/initializers/application_controller_renderer.rb +6 -0
  52. data/examples/rails8_0_app/config/initializers/assets.rb +11 -0
  53. data/examples/rails8_0_app/config/initializers/backtrace_silencers.rb +7 -0
  54. data/examples/rails8_0_app/config/initializers/cookies_serializer.rb +5 -0
  55. data/examples/rails8_0_app/config/initializers/devise.rb +274 -0
  56. data/examples/rails8_0_app/config/initializers/filter_parameter_logging.rb +4 -0
  57. data/examples/rails8_0_app/config/initializers/inflections.rb +16 -0
  58. data/examples/rails8_0_app/config/initializers/mime_types.rb +4 -0
  59. data/examples/rails8_0_app/config/initializers/new_framework_defaults.rb +24 -0
  60. data/examples/rails8_0_app/config/initializers/session_store.rb +3 -0
  61. data/examples/rails8_0_app/config/initializers/wrap_parameters.rb +14 -0
  62. data/examples/rails8_0_app/config/locales/devise.en.yml +62 -0
  63. data/examples/rails8_0_app/config/locales/en.yml +23 -0
  64. data/examples/rails8_0_app/config/puma.rb +47 -0
  65. data/examples/rails8_0_app/config/routes.rb +4 -0
  66. data/examples/rails8_0_app/config/secrets.yml +22 -0
  67. data/examples/rails8_0_app/config/spring.rb +6 -0
  68. data/examples/rails8_0_app/config.ru +5 -0
  69. data/examples/rails8_0_app/db/migrate/20170307140813_devise_create_users.rb +49 -0
  70. data/examples/rails8_0_app/db/migrate/20170307145547_add_password_salt_to_users.rb +5 -0
  71. data/examples/rails8_0_app/db/schema.rb +44 -0
  72. data/examples/rails8_0_app/db/seeds.rb +7 -0
  73. data/examples/rails8_0_app/lib/assets/.keep +0 -0
  74. data/examples/rails8_0_app/lib/tasks/.keep +0 -0
  75. data/examples/rails8_0_app/log/.keep +0 -0
  76. data/examples/rails8_0_app/public/404.html +67 -0
  77. data/examples/rails8_0_app/public/422.html +67 -0
  78. data/examples/rails8_0_app/public/500.html +66 -0
  79. data/examples/rails8_0_app/public/apple-touch-icon-precomposed.png +0 -0
  80. data/examples/rails8_0_app/public/apple-touch-icon.png +0 -0
  81. data/examples/rails8_0_app/public/favicon.ico +0 -0
  82. data/examples/rails8_0_app/public/robots.txt +5 -0
  83. data/examples/rails8_0_app/test/controllers/.keep +0 -0
  84. data/examples/rails8_0_app/test/fixtures/.keep +0 -0
  85. data/examples/rails8_0_app/test/fixtures/files/.keep +0 -0
  86. data/examples/rails8_0_app/test/helpers/.keep +0 -0
  87. data/examples/rails8_0_app/test/integration/.keep +0 -0
  88. data/examples/rails8_0_app/test/mailers/.keep +0 -0
  89. data/examples/rails8_0_app/test/models/.keep +0 -0
  90. data/examples/rails8_0_app/test/test_helper.rb +10 -0
  91. data/examples/rails8_0_app/tmp/.keep +0 -0
  92. data/examples/rails8_0_app/vendor/assets/javascripts/.keep +0 -0
  93. data/examples/rails8_0_app/vendor/assets/stylesheets/.keep +0 -0
  94. data/examples/rails8_1_app/.gitignore +21 -0
  95. data/examples/rails8_1_app/Gemfile +55 -0
  96. data/examples/rails8_1_app/Gemfile.lock +442 -0
  97. data/examples/rails8_1_app/README.md +24 -0
  98. data/examples/rails8_1_app/Rakefile +6 -0
  99. data/examples/rails8_1_app/app/assets/config/manifest.js +3 -0
  100. data/examples/rails8_1_app/app/assets/images/.keep +0 -0
  101. data/examples/rails8_1_app/app/assets/javascripts/application.js +16 -0
  102. data/examples/rails8_1_app/app/assets/javascripts/cable.js +13 -0
  103. data/examples/rails8_1_app/app/assets/javascripts/channels/.keep +0 -0
  104. data/examples/rails8_1_app/app/assets/stylesheets/application.css +15 -0
  105. data/examples/rails8_1_app/app/channels/application_cable/channel.rb +4 -0
  106. data/examples/rails8_1_app/app/channels/application_cable/connection.rb +4 -0
  107. data/examples/rails8_1_app/app/controllers/application_controller.rb +3 -0
  108. data/examples/rails8_1_app/app/controllers/concerns/.keep +0 -0
  109. data/examples/rails8_1_app/app/helpers/application_helper.rb +2 -0
  110. data/examples/rails8_1_app/app/jobs/application_job.rb +2 -0
  111. data/examples/rails8_1_app/app/mailers/application_mailer.rb +4 -0
  112. data/examples/rails8_1_app/app/models/application_record.rb +3 -0
  113. data/examples/rails8_1_app/app/models/concerns/.keep +0 -0
  114. data/examples/rails8_1_app/app/models/email.rb +5 -0
  115. data/examples/rails8_1_app/app/models/user.rb +9 -0
  116. data/examples/rails8_1_app/app/views/layouts/application.html.erb +14 -0
  117. data/examples/rails8_1_app/app/views/layouts/mailer.html.erb +13 -0
  118. data/examples/rails8_1_app/app/views/layouts/mailer.text.erb +1 -0
  119. data/examples/rails8_1_app/bin/bundle +3 -0
  120. data/examples/rails8_1_app/bin/rails +4 -0
  121. data/examples/rails8_1_app/bin/rake +4 -0
  122. data/examples/rails8_1_app/bin/setup +34 -0
  123. data/examples/rails8_1_app/bin/update +29 -0
  124. data/examples/rails8_1_app/config/application.rb +15 -0
  125. data/examples/rails8_1_app/config/boot.rb +3 -0
  126. data/examples/rails8_1_app/config/cable.yml +9 -0
  127. data/examples/rails8_1_app/config/database.yml +25 -0
  128. data/examples/rails8_1_app/config/environment.rb +5 -0
  129. data/examples/rails8_1_app/config/environments/development.rb +56 -0
  130. data/examples/rails8_1_app/config/environments/production.rb +86 -0
  131. data/examples/rails8_1_app/config/environments/test.rb +42 -0
  132. data/examples/rails8_1_app/config/initializers/application_controller_renderer.rb +6 -0
  133. data/examples/rails8_1_app/config/initializers/assets.rb +11 -0
  134. data/examples/rails8_1_app/config/initializers/backtrace_silencers.rb +7 -0
  135. data/examples/rails8_1_app/config/initializers/cookies_serializer.rb +5 -0
  136. data/examples/rails8_1_app/config/initializers/devise.rb +274 -0
  137. data/examples/rails8_1_app/config/initializers/filter_parameter_logging.rb +4 -0
  138. data/examples/rails8_1_app/config/initializers/inflections.rb +16 -0
  139. data/examples/rails8_1_app/config/initializers/mime_types.rb +4 -0
  140. data/examples/rails8_1_app/config/initializers/new_framework_defaults.rb +24 -0
  141. data/examples/rails8_1_app/config/initializers/session_store.rb +3 -0
  142. data/examples/rails8_1_app/config/initializers/wrap_parameters.rb +14 -0
  143. data/examples/rails8_1_app/config/locales/devise.en.yml +62 -0
  144. data/examples/rails8_1_app/config/locales/en.yml +23 -0
  145. data/examples/rails8_1_app/config/puma.rb +47 -0
  146. data/examples/rails8_1_app/config/routes.rb +4 -0
  147. data/examples/rails8_1_app/config/secrets.yml +22 -0
  148. data/examples/rails8_1_app/config/spring.rb +6 -0
  149. data/examples/rails8_1_app/config.ru +5 -0
  150. data/examples/rails8_1_app/db/migrate/20170307140813_devise_create_users.rb +49 -0
  151. data/examples/rails8_1_app/db/migrate/20170307145547_add_password_salt_to_users.rb +5 -0
  152. data/examples/rails8_1_app/db/schema.rb +44 -0
  153. data/examples/rails8_1_app/db/seeds.rb +7 -0
  154. data/examples/rails8_1_app/lib/assets/.keep +0 -0
  155. data/examples/rails8_1_app/lib/tasks/.keep +0 -0
  156. data/examples/rails8_1_app/log/.keep +0 -0
  157. data/examples/rails8_1_app/public/404.html +67 -0
  158. data/examples/rails8_1_app/public/422.html +67 -0
  159. data/examples/rails8_1_app/public/500.html +66 -0
  160. data/examples/rails8_1_app/public/apple-touch-icon-precomposed.png +0 -0
  161. data/examples/rails8_1_app/public/apple-touch-icon.png +0 -0
  162. data/examples/rails8_1_app/public/favicon.ico +0 -0
  163. data/examples/rails8_1_app/public/robots.txt +5 -0
  164. data/examples/rails8_1_app/test/controllers/.keep +0 -0
  165. data/examples/rails8_1_app/test/fixtures/.keep +0 -0
  166. data/examples/rails8_1_app/test/fixtures/files/.keep +0 -0
  167. data/examples/rails8_1_app/test/helpers/.keep +0 -0
  168. data/examples/rails8_1_app/test/integration/.keep +0 -0
  169. data/examples/rails8_1_app/test/mailers/.keep +0 -0
  170. data/examples/rails8_1_app/test/models/.keep +0 -0
  171. data/examples/rails8_1_app/test/test_helper.rb +10 -0
  172. data/examples/rails8_1_app/tmp/.keep +0 -0
  173. data/examples/rails8_1_app/vendor/assets/javascripts/.keep +0 -0
  174. data/examples/rails8_1_app/vendor/assets/stylesheets/.keep +0 -0
  175. data/gemfiles/{rails_5_1.gemfile → rails_7_0.gemfile} +1 -1
  176. data/gemfiles/{rails_4_2.gemfile → rails_8_0.gemfile} +1 -1
  177. data/lib/devise/multi_email/models/confirmable.rb +6 -1
  178. data/lib/devise/multi_email/models/validatable.rb +7 -8
  179. data/lib/devise/multi_email/version.rb +1 -1
  180. data/mise.toml +2 -0
  181. metadata +288 -126
  182. data/examples/rails5_app/Gemfile.lock +0 -189
  183. data/gemfiles/rails_5_0.gemfile +0 -6
  184. data/gemfiles/rails_5_2.gemfile +0 -5
  185. /data/examples/{rails5_app → rails7_app}/.gitignore +0 -0
  186. /data/examples/{rails5_app → rails7_app}/README.md +0 -0
  187. /data/examples/{rails5_app → rails7_app}/Rakefile +0 -0
  188. /data/examples/{rails5_app → rails7_app}/app/assets/config/manifest.js +0 -0
  189. /data/examples/{rails5_app → rails7_app}/app/assets/images/.keep +0 -0
  190. /data/examples/{rails5_app → rails7_app}/app/assets/javascripts/application.js +0 -0
  191. /data/examples/{rails5_app → rails7_app}/app/assets/javascripts/cable.js +0 -0
  192. /data/examples/{rails5_app → rails7_app}/app/assets/javascripts/channels/.keep +0 -0
  193. /data/examples/{rails5_app → rails7_app}/app/assets/stylesheets/application.css +0 -0
  194. /data/examples/{rails5_app → rails7_app}/app/channels/application_cable/channel.rb +0 -0
  195. /data/examples/{rails5_app → rails7_app}/app/channels/application_cable/connection.rb +0 -0
  196. /data/examples/{rails5_app → rails7_app}/app/controllers/application_controller.rb +0 -0
  197. /data/examples/{rails5_app → rails7_app}/app/controllers/concerns/.keep +0 -0
  198. /data/examples/{rails5_app → rails7_app}/app/helpers/application_helper.rb +0 -0
  199. /data/examples/{rails5_app → rails7_app}/app/jobs/application_job.rb +0 -0
  200. /data/examples/{rails5_app → rails7_app}/app/mailers/application_mailer.rb +0 -0
  201. /data/examples/{rails5_app → rails7_app}/app/models/application_record.rb +0 -0
  202. /data/examples/{rails5_app → rails7_app}/app/models/concerns/.keep +0 -0
  203. /data/examples/{rails5_app → rails7_app}/app/models/email.rb +0 -0
  204. /data/examples/{rails5_app → rails7_app}/app/models/user.rb +0 -0
  205. /data/examples/{rails5_app → rails7_app}/app/views/layouts/application.html.erb +0 -0
  206. /data/examples/{rails5_app → rails7_app}/app/views/layouts/mailer.html.erb +0 -0
  207. /data/examples/{rails5_app → rails7_app}/app/views/layouts/mailer.text.erb +0 -0
  208. /data/examples/{rails5_app → rails7_app}/bin/bundle +0 -0
  209. /data/examples/{rails5_app → rails7_app}/bin/rails +0 -0
  210. /data/examples/{rails5_app → rails7_app}/bin/rake +0 -0
  211. /data/examples/{rails5_app → rails7_app}/bin/setup +0 -0
  212. /data/examples/{rails5_app → rails7_app}/bin/update +0 -0
  213. /data/examples/{rails5_app → rails7_app}/config/application.rb +0 -0
  214. /data/examples/{rails5_app → rails7_app}/config/boot.rb +0 -0
  215. /data/examples/{rails5_app → rails7_app}/config/cable.yml +0 -0
  216. /data/examples/{rails5_app → rails7_app}/config/database.yml +0 -0
  217. /data/examples/{rails5_app → rails7_app}/config/environment.rb +0 -0
  218. /data/examples/{rails5_app → rails7_app}/config/environments/development.rb +0 -0
  219. /data/examples/{rails5_app → rails7_app}/config/environments/production.rb +0 -0
  220. /data/examples/{rails5_app → rails7_app}/config/environments/test.rb +0 -0
  221. /data/examples/{rails5_app → rails7_app}/config/initializers/application_controller_renderer.rb +0 -0
  222. /data/examples/{rails5_app → rails7_app}/config/initializers/assets.rb +0 -0
  223. /data/examples/{rails5_app → rails7_app}/config/initializers/backtrace_silencers.rb +0 -0
  224. /data/examples/{rails5_app → rails7_app}/config/initializers/cookies_serializer.rb +0 -0
  225. /data/examples/{rails5_app → rails7_app}/config/initializers/devise.rb +0 -0
  226. /data/examples/{rails5_app → rails7_app}/config/initializers/filter_parameter_logging.rb +0 -0
  227. /data/examples/{rails5_app → rails7_app}/config/initializers/inflections.rb +0 -0
  228. /data/examples/{rails5_app → rails7_app}/config/initializers/mime_types.rb +0 -0
  229. /data/examples/{rails5_app → rails7_app}/config/initializers/new_framework_defaults.rb +0 -0
  230. /data/examples/{rails5_app → rails7_app}/config/initializers/session_store.rb +0 -0
  231. /data/examples/{rails5_app → rails7_app}/config/initializers/wrap_parameters.rb +0 -0
  232. /data/examples/{rails5_app → rails7_app}/config/locales/devise.en.yml +0 -0
  233. /data/examples/{rails5_app → rails7_app}/config/locales/en.yml +0 -0
  234. /data/examples/{rails5_app → rails7_app}/config/puma.rb +0 -0
  235. /data/examples/{rails5_app → rails7_app}/config/routes.rb +0 -0
  236. /data/examples/{rails5_app → rails7_app}/config/secrets.yml +0 -0
  237. /data/examples/{rails5_app → rails7_app}/config/spring.rb +0 -0
  238. /data/examples/{rails5_app → rails7_app}/config.ru +0 -0
  239. /data/examples/{rails5_app → rails7_app}/db/migrate/20170307140813_devise_create_users.rb +0 -0
  240. /data/examples/{rails5_app → rails7_app}/db/migrate/20170307145547_add_password_salt_to_users.rb +0 -0
  241. /data/examples/{rails5_app → rails7_app}/db/schema.rb +0 -0
  242. /data/examples/{rails5_app → rails7_app}/db/seeds.rb +0 -0
  243. /data/examples/{rails5_app → rails7_app}/lib/assets/.keep +0 -0
  244. /data/examples/{rails5_app → rails7_app}/lib/tasks/.keep +0 -0
  245. /data/examples/{rails5_app → rails7_app}/log/.keep +0 -0
  246. /data/examples/{rails5_app → rails7_app}/public/404.html +0 -0
  247. /data/examples/{rails5_app → rails7_app}/public/422.html +0 -0
  248. /data/examples/{rails5_app → rails7_app}/public/500.html +0 -0
  249. /data/examples/{rails5_app → rails7_app}/public/apple-touch-icon-precomposed.png +0 -0
  250. /data/examples/{rails5_app → rails7_app}/public/apple-touch-icon.png +0 -0
  251. /data/examples/{rails5_app → rails7_app}/public/favicon.ico +0 -0
  252. /data/examples/{rails5_app → rails7_app}/public/robots.txt +0 -0
  253. /data/examples/{rails5_app → rails7_app}/test/controllers/.keep +0 -0
  254. /data/examples/{rails5_app → rails7_app}/test/fixtures/.keep +0 -0
  255. /data/examples/{rails5_app → rails7_app}/test/fixtures/files/.keep +0 -0
  256. /data/examples/{rails5_app → rails7_app}/test/helpers/.keep +0 -0
  257. /data/examples/{rails5_app → rails7_app}/test/integration/.keep +0 -0
  258. /data/examples/{rails5_app → rails7_app}/test/mailers/.keep +0 -0
  259. /data/examples/{rails5_app → rails7_app}/test/models/.keep +0 -0
  260. /data/examples/{rails5_app → rails7_app}/test/test_helper.rb +0 -0
  261. /data/examples/{rails5_app → rails7_app}/tmp/.keep +0 -0
  262. /data/examples/{rails5_app → rails7_app}/vendor/assets/javascripts/.keep +0 -0
  263. /data/examples/{rails5_app → rails7_app}/vendor/assets/stylesheets/.keep +0 -0
@@ -0,0 +1,24 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains migration options to ease your Rails 5.0 upgrade.
4
+ #
5
+ # Read the Guide for Upgrading Ruby on Rails for more info on each option.
6
+
7
+ # Enable per-form CSRF tokens. Previous versions had false.
8
+ Rails.application.config.action_controller.per_form_csrf_tokens = true
9
+
10
+ # Enable origin-checking CSRF mitigation. Previous versions had false.
11
+ Rails.application.config.action_controller.forgery_protection_origin_check = true
12
+
13
+ # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
14
+ # Previous versions had false.
15
+ ActiveSupport.to_time_preserves_timezone = true
16
+
17
+ # Require `belongs_to` associations by default. Previous versions had false.
18
+ Rails.application.config.active_record.belongs_to_required_by_default = true
19
+
20
+ # Do not halt callback chains when a callback returns false. Previous versions had true.
21
+ ActiveSupport.halt_callback_chains_on_return_false = false
22
+
23
+ # Configure SSL options to enable HSTS with subdomains. Previous versions had false.
24
+ Rails.application.config.ssl_options = { hsts: { subdomains: true } }
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_rails5_app_session'
@@ -0,0 +1,14 @@
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]
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
@@ -0,0 +1,62 @@
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
+ password_change:
27
+ subject: "Password Changed"
28
+ omniauth_callbacks:
29
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
30
+ success: "Successfully authenticated from %{kind} account."
31
+ passwords:
32
+ 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."
33
+ send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
34
+ 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."
35
+ updated: "Your password has been changed successfully. You are now signed in."
36
+ updated_not_active: "Your password has been changed successfully."
37
+ registrations:
38
+ destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
39
+ signed_up: "Welcome! You have signed up successfully."
40
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
41
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
42
+ 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."
43
+ 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."
44
+ updated: "Your account has been updated successfully."
45
+ sessions:
46
+ signed_in: "Signed in successfully."
47
+ signed_out: "Signed out successfully."
48
+ already_signed_out: "Signed out successfully."
49
+ unlocks:
50
+ send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
51
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
52
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
53
+ errors:
54
+ messages:
55
+ already_confirmed: "was already confirmed, please try signing in"
56
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
57
+ expired: "has expired, please request a new one"
58
+ not_found: "not found"
59
+ not_locked: "was not locked"
60
+ not_saved:
61
+ one: "1 error prohibited this %{resource} from being saved:"
62
+ other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,47 @@
1
+ # Puma can serve each request in a thread from an internal thread pool.
2
+ # The `threads` method setting takes two numbers a minimum and maximum.
3
+ # Any libraries that use thread pools should be configured to match
4
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
+ # and maximum, this matches the default thread size of Active Record.
6
+ #
7
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
8
+ threads threads_count, threads_count
9
+
10
+ # Specifies the `port` that Puma will listen on to receive requests, default is 3000.
11
+ #
12
+ port ENV.fetch("PORT") { 3000 }
13
+
14
+ # Specifies the `environment` that Puma will run in.
15
+ #
16
+ environment ENV.fetch("RAILS_ENV") { "development" }
17
+
18
+ # Specifies the number of `workers` to boot in clustered mode.
19
+ # Workers are forked webserver processes. If using threads and workers together
20
+ # the concurrency of the application would be max `threads` * `workers`.
21
+ # Workers do not work on JRuby or Windows (both of which do not support
22
+ # processes).
23
+ #
24
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25
+
26
+ # Use the `preload_app!` method when specifying a `workers` number.
27
+ # This directive tells Puma to first boot the application and load code
28
+ # before forking the application. This takes advantage of Copy On Write
29
+ # process behavior so workers use less memory. If you use this option
30
+ # you need to make sure to reconnect any threads in the `on_worker_boot`
31
+ # block.
32
+ #
33
+ # preload_app!
34
+
35
+ # The code in the `on_worker_boot` will be called if you are using
36
+ # clustered mode by specifying a number of `workers`. After each worker
37
+ # process is booted this block will be run, if you are using `preload_app!`
38
+ # option you will want to use this block to reconnect to any threads
39
+ # or connections that may have been created at application boot, Ruby
40
+ # cannot share connections between processes.
41
+ #
42
+ # on_worker_boot do
43
+ # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
44
+ # end
45
+
46
+ # Allow puma to be restarted by `rails restart` command.
47
+ plugin :tmp_restart
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ devise_for :users
3
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
4
+ end
@@ -0,0 +1,22 @@
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 `rails 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: e12d93ce7de5aafe0eb35ef3b91171d8879174c7ee582e725d2c5793ae675978ec395a7285157b0a669b529b15eb333adf4cc088f7e4831dd5a9dbe5ae58ddd9
15
+
16
+ test:
17
+ secret_key_base: df1df12152839d4a1e777add2cf15954fd80f7116eeb777cce98edeffadaea22136a0cdc8f3a6a4aad847d601ae1ac0dda120f62d74c01338a9ca17cb90e1d4b
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"] %>
@@ -0,0 +1,6 @@
1
+ %w(
2
+ .ruby-version
3
+ .rbenv-vars
4
+ tmp/restart.txt
5
+ tmp/caching-dev.txt
6
+ ).each { |path| Spring.watch(path) }
@@ -0,0 +1,5 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require_relative 'config/environment'
4
+
5
+ run Rails.application
@@ -0,0 +1,49 @@
1
+ class DeviseCreateUsers < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :users do |t|
4
+ ## Database authenticatable
5
+ t.string :encrypted_password, null: false, default: ""
6
+
7
+ ## Recoverable
8
+ t.string :reset_password_token
9
+ t.datetime :reset_password_sent_at
10
+
11
+ ## Rememberable
12
+ t.datetime :remember_created_at
13
+
14
+ ## Trackable
15
+ t.integer :sign_in_count, default: 0, null: false
16
+ t.datetime :current_sign_in_at
17
+ t.datetime :last_sign_in_at
18
+ t.string :current_sign_in_ip
19
+ t.string :last_sign_in_ip
20
+
21
+ ## Lockable
22
+ # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
23
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
24
+ # t.datetime :locked_at
25
+
26
+
27
+ t.timestamps null: false
28
+ end
29
+
30
+ add_index :users, :reset_password_token, unique: true
31
+ # add_index :users, :unlock_token, unique: true
32
+
33
+ create_table :user_emails do |t|
34
+ t.integer :user_id, null: false
35
+ t.string :email, null: false
36
+ t.string :unconfirmed_email
37
+ t.boolean :primary, default: false
38
+
39
+ ## Confirmable
40
+ t.string :confirmation_token
41
+ t.datetime :confirmed_at
42
+ t.datetime :confirmation_sent_at
43
+
44
+ t.timestamps null: false
45
+ end
46
+
47
+ add_index :user_emails, :confirmation_token, unique: true
48
+ end
49
+ end
@@ -0,0 +1,5 @@
1
+ class AddPasswordSaltToUsers < ActiveRecord::Migration[5.0]
2
+ def change
3
+ add_column :users, :password_salt, :string
4
+ end
5
+ end
@@ -0,0 +1,44 @@
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
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 20170307145547) do
14
+
15
+ create_table "user_emails", force: :cascade do |t|
16
+ t.integer "user_id", null: false
17
+ t.string "email", null: false
18
+ t.string "unconfirmed_email"
19
+ t.boolean "primary", default: false
20
+ t.string "confirmation_token"
21
+ t.datetime "confirmed_at"
22
+ t.datetime "confirmation_sent_at"
23
+ t.datetime "created_at", null: false
24
+ t.datetime "updated_at", null: false
25
+ t.index ["confirmation_token"], name: "index_emails_on_confirmation_token", unique: true
26
+ end
27
+
28
+ create_table "users", force: :cascade do |t|
29
+ t.string "encrypted_password", default: "", null: false
30
+ t.string "reset_password_token"
31
+ t.datetime "reset_password_sent_at"
32
+ t.datetime "remember_created_at"
33
+ t.integer "sign_in_count", default: 0, null: false
34
+ t.datetime "current_sign_in_at"
35
+ t.datetime "last_sign_in_at"
36
+ t.string "current_sign_in_ip"
37
+ t.string "last_sign_in_ip"
38
+ t.datetime "created_at", null: false
39
+ t.datetime "updated_at", null: false
40
+ t.string "password_salt"
41
+ t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
42
+ end
43
+
44
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
7
+ # Character.create(name: 'Luke', movie: movies.first)
File without changes
File without changes
File without changes
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
File without changes
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-agent: *
5
+ # Disallow: /
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,10 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7
+ fixtures :all
8
+
9
+ # Add more helper methods to be used by all tests here...
10
+ end
File without changes
@@ -0,0 +1,21 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+ /db/*.sqlite3-journal
13
+
14
+ # Ignore all logfiles and tempfiles.
15
+ /log/*
16
+ /tmp/*
17
+ !/log/.keep
18
+ !/tmp/.keep
19
+
20
+ # Ignore Byebug command history file.
21
+ .byebug_history