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.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +17 -0
- data/.github/workflows/ruby_spec.yml +41 -0
- data/.gitignore +5 -0
- data/.travis.yml +8 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile +1 -2
- data/README.md +9 -9
- data/devise-multi-email.code-workspace +8 -0
- data/devise-multi_email.gemspec +14 -13
- data/examples/{rails5_app → rails7_app}/Gemfile +5 -5
- data/examples/rails7_app/Gemfile.lock +442 -0
- data/examples/rails8_0_app/.gitignore +21 -0
- data/examples/rails8_0_app/Gemfile +55 -0
- data/examples/rails8_0_app/Gemfile.lock +442 -0
- data/examples/rails8_0_app/README.md +24 -0
- data/examples/rails8_0_app/Rakefile +6 -0
- data/examples/rails8_0_app/app/assets/config/manifest.js +3 -0
- data/examples/rails8_0_app/app/assets/images/.keep +0 -0
- data/examples/rails8_0_app/app/assets/javascripts/application.js +16 -0
- data/examples/rails8_0_app/app/assets/javascripts/cable.js +13 -0
- data/examples/rails8_0_app/app/assets/javascripts/channels/.keep +0 -0
- data/examples/rails8_0_app/app/assets/stylesheets/application.css +15 -0
- data/examples/rails8_0_app/app/channels/application_cable/channel.rb +4 -0
- data/examples/rails8_0_app/app/channels/application_cable/connection.rb +4 -0
- data/examples/rails8_0_app/app/controllers/application_controller.rb +3 -0
- data/examples/rails8_0_app/app/controllers/concerns/.keep +0 -0
- data/examples/rails8_0_app/app/helpers/application_helper.rb +2 -0
- data/examples/rails8_0_app/app/jobs/application_job.rb +2 -0
- data/examples/rails8_0_app/app/mailers/application_mailer.rb +4 -0
- data/examples/rails8_0_app/app/models/application_record.rb +3 -0
- data/examples/rails8_0_app/app/models/concerns/.keep +0 -0
- data/examples/rails8_0_app/app/models/email.rb +5 -0
- data/examples/rails8_0_app/app/models/user.rb +9 -0
- data/examples/rails8_0_app/app/views/layouts/application.html.erb +14 -0
- data/examples/rails8_0_app/app/views/layouts/mailer.html.erb +13 -0
- data/examples/rails8_0_app/app/views/layouts/mailer.text.erb +1 -0
- data/examples/rails8_0_app/bin/bundle +3 -0
- data/examples/rails8_0_app/bin/rails +4 -0
- data/examples/rails8_0_app/bin/rake +4 -0
- data/examples/rails8_0_app/bin/setup +34 -0
- data/examples/rails8_0_app/bin/update +29 -0
- data/examples/rails8_0_app/config/application.rb +15 -0
- data/examples/rails8_0_app/config/boot.rb +3 -0
- data/examples/rails8_0_app/config/cable.yml +9 -0
- data/examples/rails8_0_app/config/database.yml +25 -0
- data/examples/rails8_0_app/config/environment.rb +5 -0
- data/examples/rails8_0_app/config/environments/development.rb +56 -0
- data/examples/rails8_0_app/config/environments/production.rb +86 -0
- data/examples/rails8_0_app/config/environments/test.rb +42 -0
- data/examples/rails8_0_app/config/initializers/application_controller_renderer.rb +6 -0
- data/examples/rails8_0_app/config/initializers/assets.rb +11 -0
- data/examples/rails8_0_app/config/initializers/backtrace_silencers.rb +7 -0
- data/examples/rails8_0_app/config/initializers/cookies_serializer.rb +5 -0
- data/examples/rails8_0_app/config/initializers/devise.rb +274 -0
- data/examples/rails8_0_app/config/initializers/filter_parameter_logging.rb +4 -0
- data/examples/rails8_0_app/config/initializers/inflections.rb +16 -0
- data/examples/rails8_0_app/config/initializers/mime_types.rb +4 -0
- data/examples/rails8_0_app/config/initializers/new_framework_defaults.rb +24 -0
- data/examples/rails8_0_app/config/initializers/session_store.rb +3 -0
- data/examples/rails8_0_app/config/initializers/wrap_parameters.rb +14 -0
- data/examples/rails8_0_app/config/locales/devise.en.yml +62 -0
- data/examples/rails8_0_app/config/locales/en.yml +23 -0
- data/examples/rails8_0_app/config/puma.rb +47 -0
- data/examples/rails8_0_app/config/routes.rb +4 -0
- data/examples/rails8_0_app/config/secrets.yml +22 -0
- data/examples/rails8_0_app/config/spring.rb +6 -0
- data/examples/rails8_0_app/config.ru +5 -0
- data/examples/rails8_0_app/db/migrate/20170307140813_devise_create_users.rb +49 -0
- data/examples/rails8_0_app/db/migrate/20170307145547_add_password_salt_to_users.rb +5 -0
- data/examples/rails8_0_app/db/schema.rb +44 -0
- data/examples/rails8_0_app/db/seeds.rb +7 -0
- data/examples/rails8_0_app/lib/assets/.keep +0 -0
- data/examples/rails8_0_app/lib/tasks/.keep +0 -0
- data/examples/rails8_0_app/log/.keep +0 -0
- data/examples/rails8_0_app/public/404.html +67 -0
- data/examples/rails8_0_app/public/422.html +67 -0
- data/examples/rails8_0_app/public/500.html +66 -0
- data/examples/rails8_0_app/public/apple-touch-icon-precomposed.png +0 -0
- data/examples/rails8_0_app/public/apple-touch-icon.png +0 -0
- data/examples/rails8_0_app/public/favicon.ico +0 -0
- data/examples/rails8_0_app/public/robots.txt +5 -0
- data/examples/rails8_0_app/test/controllers/.keep +0 -0
- data/examples/rails8_0_app/test/fixtures/.keep +0 -0
- data/examples/rails8_0_app/test/fixtures/files/.keep +0 -0
- data/examples/rails8_0_app/test/helpers/.keep +0 -0
- data/examples/rails8_0_app/test/integration/.keep +0 -0
- data/examples/rails8_0_app/test/mailers/.keep +0 -0
- data/examples/rails8_0_app/test/models/.keep +0 -0
- data/examples/rails8_0_app/test/test_helper.rb +10 -0
- data/examples/rails8_0_app/tmp/.keep +0 -0
- data/examples/rails8_0_app/vendor/assets/javascripts/.keep +0 -0
- data/examples/rails8_0_app/vendor/assets/stylesheets/.keep +0 -0
- data/examples/rails8_1_app/.gitignore +21 -0
- data/examples/rails8_1_app/Gemfile +55 -0
- data/examples/rails8_1_app/Gemfile.lock +442 -0
- data/examples/rails8_1_app/README.md +24 -0
- data/examples/rails8_1_app/Rakefile +6 -0
- data/examples/rails8_1_app/app/assets/config/manifest.js +3 -0
- data/examples/rails8_1_app/app/assets/images/.keep +0 -0
- data/examples/rails8_1_app/app/assets/javascripts/application.js +16 -0
- data/examples/rails8_1_app/app/assets/javascripts/cable.js +13 -0
- data/examples/rails8_1_app/app/assets/javascripts/channels/.keep +0 -0
- data/examples/rails8_1_app/app/assets/stylesheets/application.css +15 -0
- data/examples/rails8_1_app/app/channels/application_cable/channel.rb +4 -0
- data/examples/rails8_1_app/app/channels/application_cable/connection.rb +4 -0
- data/examples/rails8_1_app/app/controllers/application_controller.rb +3 -0
- data/examples/rails8_1_app/app/controllers/concerns/.keep +0 -0
- data/examples/rails8_1_app/app/helpers/application_helper.rb +2 -0
- data/examples/rails8_1_app/app/jobs/application_job.rb +2 -0
- data/examples/rails8_1_app/app/mailers/application_mailer.rb +4 -0
- data/examples/rails8_1_app/app/models/application_record.rb +3 -0
- data/examples/rails8_1_app/app/models/concerns/.keep +0 -0
- data/examples/rails8_1_app/app/models/email.rb +5 -0
- data/examples/rails8_1_app/app/models/user.rb +9 -0
- data/examples/rails8_1_app/app/views/layouts/application.html.erb +14 -0
- data/examples/rails8_1_app/app/views/layouts/mailer.html.erb +13 -0
- data/examples/rails8_1_app/app/views/layouts/mailer.text.erb +1 -0
- data/examples/rails8_1_app/bin/bundle +3 -0
- data/examples/rails8_1_app/bin/rails +4 -0
- data/examples/rails8_1_app/bin/rake +4 -0
- data/examples/rails8_1_app/bin/setup +34 -0
- data/examples/rails8_1_app/bin/update +29 -0
- data/examples/rails8_1_app/config/application.rb +15 -0
- data/examples/rails8_1_app/config/boot.rb +3 -0
- data/examples/rails8_1_app/config/cable.yml +9 -0
- data/examples/rails8_1_app/config/database.yml +25 -0
- data/examples/rails8_1_app/config/environment.rb +5 -0
- data/examples/rails8_1_app/config/environments/development.rb +56 -0
- data/examples/rails8_1_app/config/environments/production.rb +86 -0
- data/examples/rails8_1_app/config/environments/test.rb +42 -0
- data/examples/rails8_1_app/config/initializers/application_controller_renderer.rb +6 -0
- data/examples/rails8_1_app/config/initializers/assets.rb +11 -0
- data/examples/rails8_1_app/config/initializers/backtrace_silencers.rb +7 -0
- data/examples/rails8_1_app/config/initializers/cookies_serializer.rb +5 -0
- data/examples/rails8_1_app/config/initializers/devise.rb +274 -0
- data/examples/rails8_1_app/config/initializers/filter_parameter_logging.rb +4 -0
- data/examples/rails8_1_app/config/initializers/inflections.rb +16 -0
- data/examples/rails8_1_app/config/initializers/mime_types.rb +4 -0
- data/examples/rails8_1_app/config/initializers/new_framework_defaults.rb +24 -0
- data/examples/rails8_1_app/config/initializers/session_store.rb +3 -0
- data/examples/rails8_1_app/config/initializers/wrap_parameters.rb +14 -0
- data/examples/rails8_1_app/config/locales/devise.en.yml +62 -0
- data/examples/rails8_1_app/config/locales/en.yml +23 -0
- data/examples/rails8_1_app/config/puma.rb +47 -0
- data/examples/rails8_1_app/config/routes.rb +4 -0
- data/examples/rails8_1_app/config/secrets.yml +22 -0
- data/examples/rails8_1_app/config/spring.rb +6 -0
- data/examples/rails8_1_app/config.ru +5 -0
- data/examples/rails8_1_app/db/migrate/20170307140813_devise_create_users.rb +49 -0
- data/examples/rails8_1_app/db/migrate/20170307145547_add_password_salt_to_users.rb +5 -0
- data/examples/rails8_1_app/db/schema.rb +44 -0
- data/examples/rails8_1_app/db/seeds.rb +7 -0
- data/examples/rails8_1_app/lib/assets/.keep +0 -0
- data/examples/rails8_1_app/lib/tasks/.keep +0 -0
- data/examples/rails8_1_app/log/.keep +0 -0
- data/examples/rails8_1_app/public/404.html +67 -0
- data/examples/rails8_1_app/public/422.html +67 -0
- data/examples/rails8_1_app/public/500.html +66 -0
- data/examples/rails8_1_app/public/apple-touch-icon-precomposed.png +0 -0
- data/examples/rails8_1_app/public/apple-touch-icon.png +0 -0
- data/examples/rails8_1_app/public/favicon.ico +0 -0
- data/examples/rails8_1_app/public/robots.txt +5 -0
- data/examples/rails8_1_app/test/controllers/.keep +0 -0
- data/examples/rails8_1_app/test/fixtures/.keep +0 -0
- data/examples/rails8_1_app/test/fixtures/files/.keep +0 -0
- data/examples/rails8_1_app/test/helpers/.keep +0 -0
- data/examples/rails8_1_app/test/integration/.keep +0 -0
- data/examples/rails8_1_app/test/mailers/.keep +0 -0
- data/examples/rails8_1_app/test/models/.keep +0 -0
- data/examples/rails8_1_app/test/test_helper.rb +10 -0
- data/examples/rails8_1_app/tmp/.keep +0 -0
- data/examples/rails8_1_app/vendor/assets/javascripts/.keep +0 -0
- data/examples/rails8_1_app/vendor/assets/stylesheets/.keep +0 -0
- data/gemfiles/{rails_5_1.gemfile → rails_7_0.gemfile} +1 -1
- data/gemfiles/{rails_4_2.gemfile → rails_8_0.gemfile} +1 -1
- data/lib/devise/multi_email/models/confirmable.rb +6 -1
- data/lib/devise/multi_email/models/validatable.rb +7 -8
- data/lib/devise/multi_email/version.rb +1 -1
- data/mise.toml +2 -0
- metadata +288 -126
- data/examples/rails5_app/Gemfile.lock +0 -189
- data/gemfiles/rails_5_0.gemfile +0 -6
- data/gemfiles/rails_5_2.gemfile +0 -5
- /data/examples/{rails5_app → rails7_app}/.gitignore +0 -0
- /data/examples/{rails5_app → rails7_app}/README.md +0 -0
- /data/examples/{rails5_app → rails7_app}/Rakefile +0 -0
- /data/examples/{rails5_app → rails7_app}/app/assets/config/manifest.js +0 -0
- /data/examples/{rails5_app → rails7_app}/app/assets/images/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/app/assets/javascripts/application.js +0 -0
- /data/examples/{rails5_app → rails7_app}/app/assets/javascripts/cable.js +0 -0
- /data/examples/{rails5_app → rails7_app}/app/assets/javascripts/channels/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/app/assets/stylesheets/application.css +0 -0
- /data/examples/{rails5_app → rails7_app}/app/channels/application_cable/channel.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/channels/application_cable/connection.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/controllers/application_controller.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/controllers/concerns/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/app/helpers/application_helper.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/jobs/application_job.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/mailers/application_mailer.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/models/application_record.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/models/concerns/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/app/models/email.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/models/user.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/views/layouts/application.html.erb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/views/layouts/mailer.html.erb +0 -0
- /data/examples/{rails5_app → rails7_app}/app/views/layouts/mailer.text.erb +0 -0
- /data/examples/{rails5_app → rails7_app}/bin/bundle +0 -0
- /data/examples/{rails5_app → rails7_app}/bin/rails +0 -0
- /data/examples/{rails5_app → rails7_app}/bin/rake +0 -0
- /data/examples/{rails5_app → rails7_app}/bin/setup +0 -0
- /data/examples/{rails5_app → rails7_app}/bin/update +0 -0
- /data/examples/{rails5_app → rails7_app}/config/application.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/boot.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/cable.yml +0 -0
- /data/examples/{rails5_app → rails7_app}/config/database.yml +0 -0
- /data/examples/{rails5_app → rails7_app}/config/environment.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/environments/development.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/environments/production.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/environments/test.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/application_controller_renderer.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/assets.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/backtrace_silencers.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/cookies_serializer.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/devise.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/filter_parameter_logging.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/inflections.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/mime_types.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/new_framework_defaults.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/session_store.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/initializers/wrap_parameters.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/locales/devise.en.yml +0 -0
- /data/examples/{rails5_app → rails7_app}/config/locales/en.yml +0 -0
- /data/examples/{rails5_app → rails7_app}/config/puma.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/routes.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config/secrets.yml +0 -0
- /data/examples/{rails5_app → rails7_app}/config/spring.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/config.ru +0 -0
- /data/examples/{rails5_app → rails7_app}/db/migrate/20170307140813_devise_create_users.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/db/migrate/20170307145547_add_password_salt_to_users.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/db/schema.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/db/seeds.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/lib/assets/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/lib/tasks/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/log/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/public/404.html +0 -0
- /data/examples/{rails5_app → rails7_app}/public/422.html +0 -0
- /data/examples/{rails5_app → rails7_app}/public/500.html +0 -0
- /data/examples/{rails5_app → rails7_app}/public/apple-touch-icon-precomposed.png +0 -0
- /data/examples/{rails5_app → rails7_app}/public/apple-touch-icon.png +0 -0
- /data/examples/{rails5_app → rails7_app}/public/favicon.ico +0 -0
- /data/examples/{rails5_app → rails7_app}/public/robots.txt +0 -0
- /data/examples/{rails5_app → rails7_app}/test/controllers/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/test/fixtures/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/test/fixtures/files/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/test/helpers/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/test/integration/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/test/mailers/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/test/models/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/test/test_helper.rb +0 -0
- /data/examples/{rails5_app → rails7_app}/tmp/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/vendor/assets/javascripts/.keep +0 -0
- /data/examples/{rails5_app → rails7_app}/vendor/assets/stylesheets/.keep +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c394efaff65c8f809f5928486d36529350e0c8ce11ade1305713767c540233c5
|
|
4
|
+
data.tar.gz: f9fb103bcd1e175677b2201de90e4c7cd1cff17fa6bdf6b959870fcbe38134a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1292c698e3da57bbd0aad9dbba295853836dbe309e7ce6bb85d043bed1a17aa746cc586d50a692aea705f0027c99539c1c25977f5f0f411597a68b803898451a
|
|
7
|
+
data.tar.gz: 50d699bdd938bea0eb326e25e90beeeeb8e665c7a0b5d7f7c06cab074e93acabea901afa1388898b2dc6809fb97b5e223b5d831c72946c7af11df003048e11d3
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "bundler" # See documentation for possible values
|
|
9
|
+
directories: # Location of package manifests
|
|
10
|
+
- "/examples/rails7_app"
|
|
11
|
+
- "/examples/rails8_0_app"
|
|
12
|
+
- "/examples/rails8_1_app"
|
|
13
|
+
- "/gemfiles/"
|
|
14
|
+
schedule:
|
|
15
|
+
interval: "weekly"
|
|
16
|
+
open-pull-requests-limit: 5
|
|
17
|
+
target-branch: "master"
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
2
|
+
# They are provided by a third-party and are governed by
|
|
3
|
+
# separate terms of service, privacy policy, and support
|
|
4
|
+
# documentation.
|
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
|
7
|
+
|
|
8
|
+
name: rspec tests
|
|
9
|
+
|
|
10
|
+
on:
|
|
11
|
+
push:
|
|
12
|
+
branches: [ "master" ]
|
|
13
|
+
pull_request:
|
|
14
|
+
branches: [ "master" ]
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
test:
|
|
21
|
+
|
|
22
|
+
runs-on: ubuntu-22.04
|
|
23
|
+
strategy:
|
|
24
|
+
matrix:
|
|
25
|
+
ruby-version: ['3.0.6','3.1.4','3.2.2' ]
|
|
26
|
+
|
|
27
|
+
environment: test
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
- name: Set up Ruby
|
|
31
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
|
32
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
|
33
|
+
# uses: ruby/setup-ruby@v1
|
|
34
|
+
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
|
|
35
|
+
with:
|
|
36
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
37
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
38
|
+
- name: Run tests
|
|
39
|
+
run: bundle exec rspec
|
|
40
|
+
env:
|
|
41
|
+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
language: ruby
|
|
2
|
+
|
|
2
3
|
rvm:
|
|
3
4
|
- 2.4
|
|
4
5
|
- 2.5
|
|
@@ -6,4 +7,10 @@ rvm:
|
|
|
6
7
|
gemfile:
|
|
7
8
|
- gemfiles/rails_5_2.gemfile
|
|
8
9
|
- gemfiles/rails_5_1.gemfile
|
|
9
|
-
|
|
10
|
+
- gemfiles/rails_6_0.gemfile
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
exclude:
|
|
14
|
+
- rvm: 2.4
|
|
15
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
|
16
|
+
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Devise::MultiEmail [](https://github.com/mgmodell/devise-multi_email/actions/workflows/ruby_spec.yml) [](https://coveralls.io/github/mgmodell/devise-multi_email?branch=master) [](https://github.com/mgmodell/devise-multi_email/actions/workflows/dependabot/dependabot-updates)
|
|
2
2
|
|
|
3
3
|
Letting [Devise](https://github.com/plataformatec/devise) support multiple emails, allows you to:
|
|
4
4
|
- Login with multiple emails
|
|
@@ -6,14 +6,14 @@ Letting [Devise](https://github.com/plataformatec/devise) support multiple email
|
|
|
6
6
|
- Recover the password with any of the emails
|
|
7
7
|
- Validations for multiple emails
|
|
8
8
|
|
|
9
|
-
`:multi_email_authenticatable`, `:multi_email_confirmable` and `:multi_email_validatable` are provided by _devise-
|
|
9
|
+
`:multi_email_authenticatable`, `:multi_email_confirmable` and `:multi_email_validatable` are provided by _devise-multi-email_.
|
|
10
10
|
|
|
11
11
|
## Getting Started
|
|
12
12
|
|
|
13
|
-
Add this line to your application's `Gemfile
|
|
13
|
+
Add this line to your application's `Gemfile`:
|
|
14
14
|
|
|
15
15
|
```ruby
|
|
16
|
-
gem 'devise-multi_email
|
|
16
|
+
gem 'devise-multi_email`
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Suppose you have already setup Devise, your `User` model might look like this:
|
|
@@ -24,7 +24,7 @@ class User < ActiveRecord::Base
|
|
|
24
24
|
end
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
In order to let your `User` support multiple emails, with _devise-
|
|
27
|
+
In order to let your `User` support multiple emails, with _devise-multi-email_ what you need to do is just:
|
|
28
28
|
|
|
29
29
|
```ruby
|
|
30
30
|
class User < ActiveRecord::Base
|
|
@@ -176,17 +176,17 @@ You can do `email.send_confirmation_instructions` for each email individually, b
|
|
|
176
176
|
|
|
177
177
|
## Wiki
|
|
178
178
|
|
|
179
|
-
[Migrating
|
|
179
|
+
[Migrating existing user records](https://github.com/allenwq/devise-multi_email/wiki/Migrating-existing-user-records)
|
|
180
180
|
|
|
181
181
|
## Development
|
|
182
182
|
|
|
183
|
-
After checking out the repo, run `
|
|
183
|
+
After checking out the repo, run `bundle install` to install dependencies.
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
Then, run `bundle exec rake` to run the RSpec test suite.
|
|
186
186
|
|
|
187
187
|
## Contributing
|
|
188
188
|
|
|
189
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
189
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/allenwq/devise-multi_email. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
|
190
190
|
|
|
191
191
|
|
|
192
192
|
## License
|
data/devise-multi_email.gemspec
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
3
|
require 'devise/multi_email/version'
|
|
5
4
|
|
|
6
5
|
Gem::Specification.new do |spec|
|
|
7
6
|
spec.name = 'devise-multi_email'
|
|
8
7
|
spec.version = Devise::MultiEmail::VERSION
|
|
9
|
-
spec.authors = ['ALLEN WANG QIANG', 'Joel Van Horn']
|
|
10
|
-
spec.email = ['rovingbreeze@gmail.com', 'joel@joelvanhorn.com']
|
|
8
|
+
spec.authors = ['ALLEN WANG QIANG', 'Joel Van Horn', 'Micah Gideon Modell']
|
|
9
|
+
spec.email = ['rovingbreeze@gmail.com', 'joel@joelvanhorn.com', 'micah.modell@gmail.com']
|
|
11
10
|
|
|
12
|
-
spec.summary =
|
|
13
|
-
spec.description =
|
|
11
|
+
spec.summary = 'Let devise support multiple emails.'
|
|
12
|
+
spec.description = 'Devise authenticatable, confirmable and validatable with multiple emails.'
|
|
14
13
|
spec.homepage = 'https://github.com/allenwq/devise-multi_email.git'
|
|
15
14
|
spec.license = 'MIT'
|
|
16
15
|
|
|
@@ -19,12 +18,14 @@ Gem::Specification.new do |spec|
|
|
|
19
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
20
19
|
spec.require_paths = ['lib']
|
|
21
20
|
|
|
22
|
-
spec.
|
|
21
|
+
spec.required_ruby_version = '>= 3.0'
|
|
23
22
|
|
|
24
|
-
spec.
|
|
25
|
-
|
|
26
|
-
spec.add_development_dependency '
|
|
27
|
-
spec.add_development_dependency '
|
|
28
|
-
spec.add_development_dependency '
|
|
29
|
-
spec.add_development_dependency '
|
|
23
|
+
spec.add_runtime_dependency 'devise', '<6.0'
|
|
24
|
+
|
|
25
|
+
spec.add_development_dependency 'bundler', '<5.0'
|
|
26
|
+
spec.add_development_dependency 'capybara', '<4.0'
|
|
27
|
+
spec.add_development_dependency 'coveralls_reborn', '<=0.29.0'
|
|
28
|
+
spec.add_development_dependency 'rake', '<14.0'
|
|
29
|
+
spec.add_development_dependency 'rspec', '<4.0'
|
|
30
|
+
spec.add_development_dependency 'sqlite3', '<=2.9.0'
|
|
30
31
|
end
|
|
@@ -7,13 +7,13 @@ end
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
|
10
|
-
gem 'rails', '~>
|
|
10
|
+
gem 'rails', '~> 8.1'
|
|
11
11
|
# Use sqlite3 as the database for Active Record
|
|
12
12
|
gem 'sqlite3'
|
|
13
13
|
# Use Puma as the app server
|
|
14
|
-
gem 'puma', '~>
|
|
14
|
+
gem 'puma', '~> 7.2'
|
|
15
15
|
# Use SCSS for stylesheets
|
|
16
|
-
gem 'sass-rails', '~>
|
|
16
|
+
gem 'sass-rails', '~> 6.0'
|
|
17
17
|
# Use Uglifier as compressor for JavaScript assets
|
|
18
18
|
gem 'uglifier', '>= 1.3.0'
|
|
19
19
|
# See https://github.com/rails/execjs#readme for more supported runtimes
|
|
@@ -41,10 +41,10 @@ end
|
|
|
41
41
|
group :development do
|
|
42
42
|
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
|
43
43
|
gem 'web-console', '>= 3.3.0'
|
|
44
|
-
gem 'listen', '~> 3.0
|
|
44
|
+
gem 'listen', '~> 3.10.0'
|
|
45
45
|
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
|
46
46
|
gem 'spring'
|
|
47
|
-
gem 'spring-watcher-listen', '~> 2.
|
|
47
|
+
gem 'spring-watcher-listen', '~> 2.1.0'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|