devise 4.4.3 → 4.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +174 -4
- data/MIT-LICENSE +2 -1
- data/README.md +129 -65
- data/app/controllers/devise/confirmations_controller.rb +1 -0
- data/app/controllers/devise/passwords_controller.rb +3 -2
- data/app/controllers/devise/registrations_controller.rb +27 -9
- data/app/controllers/devise/sessions_controller.rb +2 -2
- data/app/controllers/devise/unlocks_controller.rb +1 -0
- data/app/controllers/devise_controller.rb +17 -3
- data/app/helpers/devise_helper.rb +21 -18
- data/app/mailers/devise/mailer.rb +5 -5
- data/app/views/devise/confirmations/new.html.erb +1 -1
- data/app/views/devise/passwords/edit.html.erb +3 -3
- data/app/views/devise/passwords/new.html.erb +1 -1
- data/app/views/devise/registrations/edit.html.erb +5 -5
- data/app/views/devise/registrations/new.html.erb +3 -3
- data/app/views/devise/sessions/new.html.erb +3 -3
- data/app/views/devise/shared/_error_messages.html.erb +15 -0
- data/app/views/devise/shared/_links.html.erb +8 -8
- data/app/views/devise/unlocks/new.html.erb +1 -1
- data/config/locales/en.yml +3 -2
- data/lib/devise/controllers/helpers.rb +10 -8
- data/lib/devise/controllers/responder.rb +35 -0
- data/lib/devise/controllers/sign_in_out.rb +9 -4
- data/lib/devise/controllers/url_helpers.rb +1 -1
- data/lib/devise/failure_app.rb +41 -8
- data/lib/devise/hooks/csrf_cleaner.rb +6 -1
- data/lib/devise/hooks/lockable.rb +2 -5
- data/lib/devise/hooks/timeoutable.rb +2 -2
- data/lib/devise/mapping.rb +1 -1
- data/lib/devise/models/authenticatable.rb +51 -48
- data/lib/devise/models/confirmable.rb +34 -40
- data/lib/devise/models/database_authenticatable.rb +54 -35
- data/lib/devise/models/lockable.rb +13 -5
- data/lib/devise/models/omniauthable.rb +2 -2
- data/lib/devise/models/recoverable.rb +8 -19
- data/lib/devise/models/registerable.rb +2 -0
- data/lib/devise/models/rememberable.rb +2 -2
- data/lib/devise/models/timeoutable.rb +1 -1
- data/lib/devise/models/trackable.rb +9 -2
- data/lib/devise/models/validatable.rb +4 -9
- data/lib/devise/models.rb +1 -0
- data/lib/devise/omniauth.rb +2 -5
- data/lib/devise/orm.rb +71 -0
- data/lib/devise/parameter_filter.rb +2 -0
- data/lib/devise/parameter_sanitizer.rb +13 -1
- data/lib/devise/rails/deprecated_constant_accessor.rb +39 -0
- data/lib/devise/rails/routes.rb +6 -6
- data/lib/devise/rails.rb +4 -0
- data/lib/devise/secret_key_finder.rb +2 -0
- data/lib/devise/strategies/authenticatable.rb +1 -1
- data/lib/devise/strategies/database_authenticatable.rb +6 -1
- data/lib/devise/test/controller_helpers.rb +5 -3
- data/lib/devise/test/integration_helpers.rb +1 -1
- data/lib/devise/test_helpers.rb +1 -1
- data/lib/devise/version.rb +1 -1
- data/lib/devise.rb +38 -11
- data/lib/generators/active_record/devise_generator.rb +26 -11
- data/lib/generators/devise/controllers_generator.rb +1 -1
- data/lib/generators/devise/devise_generator.rb +1 -1
- data/lib/generators/devise/install_generator.rb +1 -5
- data/lib/generators/devise/orm_helpers.rb +2 -2
- data/lib/generators/devise/views_generator.rb +1 -1
- data/lib/generators/mongoid/devise_generator.rb +5 -5
- data/lib/generators/templates/README +9 -1
- data/lib/generators/templates/controllers/omniauth_callbacks_controller.rb +1 -1
- data/lib/generators/templates/devise.rb +38 -8
- data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +5 -1
- data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +10 -2
- data/lib/generators/templates/simple_form_for/passwords/new.html.erb +4 -1
- data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +12 -4
- data/lib/generators/templates/simple_form_for/registrations/new.html.erb +11 -3
- data/lib/generators/templates/simple_form_for/sessions/new.html.erb +7 -2
- data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +4 -1
- metadata +23 -316
- data/.gitignore +0 -10
- data/.travis.yml +0 -68
- data/.yardopts +0 -9
- data/CODE_OF_CONDUCT.md +0 -22
- data/CONTRIBUTING.md +0 -79
- data/Gemfile +0 -39
- data/Gemfile.lock +0 -193
- data/ISSUE_TEMPLATE.md +0 -19
- data/Rakefile +0 -37
- data/bin/test +0 -13
- data/devise.gemspec +0 -28
- data/devise.png +0 -0
- data/gemfiles/Gemfile.rails-4.1-stable +0 -32
- data/gemfiles/Gemfile.rails-4.1-stable.lock +0 -171
- data/gemfiles/Gemfile.rails-4.2-stable +0 -32
- data/gemfiles/Gemfile.rails-4.2-stable.lock +0 -192
- data/gemfiles/Gemfile.rails-5.0-stable +0 -33
- data/gemfiles/Gemfile.rails-5.0-stable.lock +0 -192
- data/gemfiles/Gemfile.rails-5.2-rc1 +0 -26
- data/gemfiles/Gemfile.rails-5.2-rc1.lock +0 -201
- data/guides/bug_report_templates/integration_test.rb +0 -106
- data/test/controllers/custom_registrations_controller_test.rb +0 -42
- data/test/controllers/custom_strategy_test.rb +0 -66
- data/test/controllers/helper_methods_test.rb +0 -24
- data/test/controllers/helpers_test.rb +0 -318
- data/test/controllers/inherited_controller_i18n_messages_test.rb +0 -53
- data/test/controllers/internal_helpers_test.rb +0 -129
- data/test/controllers/load_hooks_controller_test.rb +0 -21
- data/test/controllers/passwords_controller_test.rb +0 -34
- data/test/controllers/sessions_controller_test.rb +0 -108
- data/test/controllers/url_helpers_test.rb +0 -67
- data/test/delegator_test.rb +0 -21
- data/test/devise_test.rb +0 -109
- data/test/failure_app_test.rb +0 -340
- data/test/generators/active_record_generator_test.rb +0 -130
- data/test/generators/controllers_generator_test.rb +0 -50
- data/test/generators/devise_generator_test.rb +0 -41
- data/test/generators/install_generator_test.rb +0 -26
- data/test/generators/mongoid_generator_test.rb +0 -25
- data/test/generators/views_generator_test.rb +0 -105
- data/test/helpers/devise_helper_test.rb +0 -51
- data/test/integration/authenticatable_test.rb +0 -706
- data/test/integration/confirmable_test.rb +0 -326
- data/test/integration/database_authenticatable_test.rb +0 -97
- data/test/integration/http_authenticatable_test.rb +0 -114
- data/test/integration/lockable_test.rb +0 -242
- data/test/integration/mounted_engine_test.rb +0 -38
- data/test/integration/omniauthable_test.rb +0 -148
- data/test/integration/recoverable_test.rb +0 -349
- data/test/integration/registerable_test.rb +0 -365
- data/test/integration/rememberable_test.rb +0 -219
- data/test/integration/timeoutable_test.rb +0 -186
- data/test/integration/trackable_test.rb +0 -99
- data/test/mailers/confirmation_instructions_test.rb +0 -117
- data/test/mailers/email_changed_test.rb +0 -132
- data/test/mailers/mailer_test.rb +0 -20
- data/test/mailers/reset_password_instructions_test.rb +0 -98
- data/test/mailers/unlock_instructions_test.rb +0 -93
- data/test/mapping_test.rb +0 -136
- data/test/models/authenticatable_test.rb +0 -25
- data/test/models/confirmable_test.rb +0 -549
- data/test/models/database_authenticatable_test.rb +0 -283
- data/test/models/lockable_test.rb +0 -352
- data/test/models/omniauthable_test.rb +0 -9
- data/test/models/recoverable_test.rb +0 -263
- data/test/models/registerable_test.rb +0 -9
- data/test/models/rememberable_test.rb +0 -184
- data/test/models/serializable_test.rb +0 -60
- data/test/models/timeoutable_test.rb +0 -53
- data/test/models/trackable_test.rb +0 -62
- data/test/models/validatable_test.rb +0 -121
- data/test/models_test.rb +0 -155
- data/test/omniauth/config_test.rb +0 -61
- data/test/omniauth/url_helpers_test.rb +0 -53
- data/test/orm/active_record.rb +0 -24
- data/test/orm/mongoid.rb +0 -15
- data/test/parameter_sanitizer_test.rb +0 -77
- data/test/rails_app/Rakefile +0 -6
- data/test/rails_app/app/active_record/admin.rb +0 -8
- data/test/rails_app/app/active_record/shim.rb +0 -4
- data/test/rails_app/app/active_record/user.rb +0 -20
- data/test/rails_app/app/active_record/user_on_engine.rb +0 -9
- data/test/rails_app/app/active_record/user_on_main_app.rb +0 -9
- data/test/rails_app/app/active_record/user_with_validations.rb +0 -12
- data/test/rails_app/app/active_record/user_without_email.rb +0 -10
- data/test/rails_app/app/controllers/admins/sessions_controller.rb +0 -8
- data/test/rails_app/app/controllers/admins_controller.rb +0 -8
- data/test/rails_app/app/controllers/application_controller.rb +0 -13
- data/test/rails_app/app/controllers/application_with_fake_engine.rb +0 -32
- data/test/rails_app/app/controllers/custom/registrations_controller.rb +0 -33
- data/test/rails_app/app/controllers/home_controller.rb +0 -31
- data/test/rails_app/app/controllers/publisher/registrations_controller.rb +0 -4
- data/test/rails_app/app/controllers/publisher/sessions_controller.rb +0 -4
- data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +0 -16
- data/test/rails_app/app/controllers/users_controller.rb +0 -33
- data/test/rails_app/app/helpers/application_helper.rb +0 -5
- data/test/rails_app/app/mailers/users/from_proc_mailer.rb +0 -5
- data/test/rails_app/app/mailers/users/mailer.rb +0 -5
- data/test/rails_app/app/mailers/users/reply_to_mailer.rb +0 -6
- data/test/rails_app/app/mongoid/admin.rb +0 -31
- data/test/rails_app/app/mongoid/shim.rb +0 -25
- data/test/rails_app/app/mongoid/user.rb +0 -50
- data/test/rails_app/app/mongoid/user_on_engine.rb +0 -41
- data/test/rails_app/app/mongoid/user_on_main_app.rb +0 -41
- data/test/rails_app/app/mongoid/user_with_validations.rb +0 -37
- data/test/rails_app/app/mongoid/user_without_email.rb +0 -35
- data/test/rails_app/app/views/admins/index.html.erb +0 -1
- data/test/rails_app/app/views/admins/sessions/new.html.erb +0 -2
- data/test/rails_app/app/views/home/admin_dashboard.html.erb +0 -1
- data/test/rails_app/app/views/home/index.html.erb +0 -1
- data/test/rails_app/app/views/home/join.html.erb +0 -1
- data/test/rails_app/app/views/home/private.html.erb +0 -1
- data/test/rails_app/app/views/home/user_dashboard.html.erb +0 -1
- data/test/rails_app/app/views/layouts/application.html.erb +0 -24
- data/test/rails_app/app/views/users/edit_form.html.erb +0 -1
- data/test/rails_app/app/views/users/index.html.erb +0 -1
- data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +0 -1
- data/test/rails_app/app/views/users/sessions/new.html.erb +0 -1
- data/test/rails_app/bin/bundle +0 -3
- data/test/rails_app/bin/rails +0 -4
- data/test/rails_app/bin/rake +0 -4
- data/test/rails_app/config/application.rb +0 -48
- data/test/rails_app/config/boot.rb +0 -27
- data/test/rails_app/config/database.yml +0 -18
- data/test/rails_app/config/environment.rb +0 -7
- data/test/rails_app/config/environments/development.rb +0 -32
- data/test/rails_app/config/environments/production.rb +0 -88
- data/test/rails_app/config/environments/test.rb +0 -47
- data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -9
- data/test/rails_app/config/initializers/devise.rb +0 -182
- data/test/rails_app/config/initializers/inflections.rb +0 -4
- data/test/rails_app/config/initializers/secret_token.rb +0 -5
- data/test/rails_app/config/initializers/session_store.rb +0 -3
- data/test/rails_app/config/routes.rb +0 -128
- data/test/rails_app/config.ru +0 -4
- data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -77
- data/test/rails_app/db/schema.rb +0 -57
- data/test/rails_app/lib/shared_admin.rb +0 -23
- data/test/rails_app/lib/shared_user.rb +0 -32
- data/test/rails_app/lib/shared_user_without_email.rb +0 -28
- data/test/rails_app/lib/shared_user_without_omniauth.rb +0 -15
- data/test/rails_app/public/404.html +0 -26
- data/test/rails_app/public/422.html +0 -26
- data/test/rails_app/public/500.html +0 -26
- data/test/rails_app/public/favicon.ico +0 -0
- data/test/rails_test.rb +0 -11
- data/test/routes_test.rb +0 -281
- data/test/secret_key_finder_test.rb +0 -97
- data/test/support/action_controller/record_identifier.rb +0 -12
- data/test/support/assertions.rb +0 -30
- data/test/support/helpers.rb +0 -83
- data/test/support/http_method_compatibility.rb +0 -53
- data/test/support/integration.rb +0 -95
- data/test/support/locale/en.yml +0 -8
- data/test/support/mongoid.yml +0 -6
- data/test/support/webrat/integrations/rails.rb +0 -35
- data/test/test/controller_helpers_test.rb +0 -193
- data/test/test/integration_helpers_test.rb +0 -34
- data/test/test_helper.rb +0 -36
- data/test/test_models.rb +0 -35
data/.travis.yml
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
rvm:
|
4
|
-
- 2.1.10
|
5
|
-
- 2.2.8
|
6
|
-
- 2.3.5
|
7
|
-
- 2.4.2
|
8
|
-
- 2.5.0
|
9
|
-
- ruby-head
|
10
|
-
|
11
|
-
gemfile:
|
12
|
-
- Gemfile
|
13
|
-
- gemfiles/Gemfile.rails-5.2-rc1
|
14
|
-
- gemfiles/Gemfile.rails-5.0-stable
|
15
|
-
- gemfiles/Gemfile.rails-4.2-stable
|
16
|
-
- gemfiles/Gemfile.rails-4.1-stable
|
17
|
-
|
18
|
-
matrix:
|
19
|
-
exclude:
|
20
|
-
- rvm: 2.1.10
|
21
|
-
gemfile: Gemfile
|
22
|
-
- rvm: 2.1.10
|
23
|
-
gemfile: gemfiles/Gemfile.rails-5.2-rc1
|
24
|
-
- rvm: 2.5.0
|
25
|
-
gemfile: gemfiles/Gemfile.rails-4.1-stable
|
26
|
-
- rvm: 2.4.2
|
27
|
-
gemfile: gemfiles/Gemfile.rails-4.1-stable
|
28
|
-
- rvm: ruby-head
|
29
|
-
gemfile: gemfiles/Gemfile.rails-4.1-stable
|
30
|
-
- rvm: 2.1.10
|
31
|
-
gemfile: gemfiles/Gemfile.rails-5.0-stable
|
32
|
-
- rvm: 2.1.10
|
33
|
-
gemfile: Gemfile
|
34
|
-
- env: DEVISE_ORM=mongoid
|
35
|
-
gemfile: Gemfile
|
36
|
-
- env: DEVISE_ORM=mongoid
|
37
|
-
gemfile: gemfiles/Gemfile.rails-5.0-stable
|
38
|
-
- env: DEVISE_ORM=mongoid
|
39
|
-
gemfile: gemfiles/Gemfile.rails-5.2-rc1
|
40
|
-
allow_failures:
|
41
|
-
- rvm: ruby-head
|
42
|
-
services:
|
43
|
-
- mongodb
|
44
|
-
|
45
|
-
sudo: false
|
46
|
-
|
47
|
-
cache: bundler
|
48
|
-
|
49
|
-
env:
|
50
|
-
matrix:
|
51
|
-
- DEVISE_ORM=active_record
|
52
|
-
- DEVISE_ORM=mongoid
|
53
|
-
|
54
|
-
before_install:
|
55
|
-
- "rm ${BUNDLE_GEMFILE}.lock"
|
56
|
-
- gem update --system
|
57
|
-
|
58
|
-
before_script: "bundle update"
|
59
|
-
|
60
|
-
script: "bin/test"
|
61
|
-
|
62
|
-
notifications:
|
63
|
-
email: false
|
64
|
-
slack:
|
65
|
-
on_pull_requests: false
|
66
|
-
on_success: change
|
67
|
-
on_failure: always
|
68
|
-
secure: Q3M+kmude3FjisibEeeGe0wSMXgvwLH+vL7Zrx9//q4QtkfnrQ/BBMvY9KXxPEsNF+eys4YopYjTkJ8uRmeboUATW/oQ4Jrv3+u3zkIHK2sFn/Q2cQWpK5w+CbgEnHPjKYnUu34b09njXTgDlr/mqtbPqrKeZ1dLlpKXCB/q4GY=
|
data/.yardopts
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
-
|
5
|
-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
|
6
|
-
|
7
|
-
Examples of unacceptable behavior by participants include:
|
8
|
-
|
9
|
-
* The use of sexualized language or imagery
|
10
|
-
* Personal attacks
|
11
|
-
* Trolling or insulting/derogatory comments
|
12
|
-
* Public or private harassment
|
13
|
-
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
|
14
|
-
* Other unethical or unprofessional conduct.
|
15
|
-
|
16
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
|
17
|
-
|
18
|
-
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
|
19
|
-
|
20
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by sending an email to [conduct@plataformatec.com.br](conduct@plataformatec.com.br) or contacting one or more of the project maintainers.
|
21
|
-
|
22
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
|
data/CONTRIBUTING.md
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
# How to contribute to Devise
|
2
|
-
|
3
|
-
Thanks for your interest on contributing to Devise! Here are a few general
|
4
|
-
guidelines on contributing and reporting bugs to Devise that we ask you to
|
5
|
-
take a look first. Notice that all of your interactions in the project are
|
6
|
-
expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).
|
7
|
-
|
8
|
-
## Reporting Issues
|
9
|
-
|
10
|
-
Before reporting a new issue, please be sure that the issue wasn't already
|
11
|
-
reported or fixed by searching on GitHub through our [issues](https://github.com/plataformatec/devise/issues).
|
12
|
-
|
13
|
-
When creating a new issue, be sure to include a **title and clear description**,
|
14
|
-
as much relevant information as possible, and either a test case example or
|
15
|
-
even better a **sample Rails app that replicates the issue** - Devise has a lot
|
16
|
-
of moving parts and it's functionality can be affected by third party gems, so
|
17
|
-
we need as much context and details as possible to identify what might be broken
|
18
|
-
for you. We have a [test case template](guides/bug_report_templates/integration_test.rb)
|
19
|
-
that can be used to replicate issues with minimal setup.
|
20
|
-
|
21
|
-
Please do not attempt to translate Devise built in views. The views are meant
|
22
|
-
to be a starting point for fresh apps and not production material - eventually
|
23
|
-
all applications will require custom views where you can write your own copy and
|
24
|
-
translate it if the application requires it . For historical references, please look into closed
|
25
|
-
[Issues/Pull Requests](https://github.com/plataformatec/devise/issues?q=i18n) regarding
|
26
|
-
internationalization.
|
27
|
-
|
28
|
-
Avoid opening new issues to ask questions in our issues tracker. Please go through
|
29
|
-
the project wiki, documentation and source code first, or try to ask your question
|
30
|
-
on [Stack Overflow](http://stackoverflow.com/questions/tagged/devise).
|
31
|
-
|
32
|
-
**If you find a security bug, do not report it through GitHub. Please send an
|
33
|
-
e-mail to [opensource@plataformatec.com.br](mailto:opensource@plataformatec.com.br)
|
34
|
-
instead.**
|
35
|
-
|
36
|
-
## Sending Pull Requests
|
37
|
-
|
38
|
-
Before sending a new Pull Request, take a look on existing Pull Requests and Issues
|
39
|
-
to see if the proposed change or fix has been discussed in the past, or if the
|
40
|
-
change was already implemented but not yet released.
|
41
|
-
|
42
|
-
We expect new Pull Requests to include enough tests for new or changed behavior,
|
43
|
-
and we aim to maintain everything as most backwards compatible as possible,
|
44
|
-
reserving breaking changes to be ship in major releases when necessary - you
|
45
|
-
can wrap the new code path with a setting toggle from the `Devise` module defined
|
46
|
-
as `false` by default to require developers to opt-in for the new behavior.
|
47
|
-
|
48
|
-
If your Pull Request includes new or changed behavior, be sure that the changes
|
49
|
-
are beneficial to a wide range of use cases or it's an application specific change
|
50
|
-
that might not be so valuable to other applications. Some changes can be introduced
|
51
|
-
as a new `devise-something` gem instead of belonging to the main codebase.
|
52
|
-
|
53
|
-
When adding new settings, you can take advantage of the [`Devise::Models.config`](https://github.com/plataformatec/devise/blob/245b1f9de0b3386b7913e14b60ea24f43b77feb0/lib/devise/models.rb#L13-L50) method to add class and instance level fallbacks
|
54
|
-
to the new setting.
|
55
|
-
|
56
|
-
We also welcome Pull Requests that improve our existing documentation (both our
|
57
|
-
`README.md` and the RDoc sections in the source code) or improve existing rough
|
58
|
-
edges in our API that might be blocking existing integrations or 3rd party gems.
|
59
|
-
|
60
|
-
## Other ways to contribute
|
61
|
-
|
62
|
-
We welcome anyone that wants to contribute to Devise to triage and reply to
|
63
|
-
open issues to help troubleshoot and fix existing bugs on Devise. Here is what
|
64
|
-
you can do:
|
65
|
-
|
66
|
-
* Help ensure that existing issues follows the recommendations from the
|
67
|
-
_[Reporting Issues](#reporting-issues)_ section, providing feeback to the issue's
|
68
|
-
author on what might be missing.
|
69
|
-
* Review and update the existing content of our [Wiki](https://github.com/plataformatec/devise/wiki)
|
70
|
-
with up to date instructions and code samples - the wiki was grown with several
|
71
|
-
different tutorials and references that we can't keep track of everything, so if
|
72
|
-
there is a page that showcases an integration or customization that you are
|
73
|
-
familiar with feel free to update it as necessary.
|
74
|
-
* Review existing Pull Requests, and testing patches against real existing
|
75
|
-
applications that use Devise.
|
76
|
-
|
77
|
-
Thanks again for your interest on contributing to the project!
|
78
|
-
|
79
|
-
:heart:
|
data/Gemfile
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gemspec
|
6
|
-
|
7
|
-
gem "rails", "~> 5.1"
|
8
|
-
gem "omniauth", "~> 1.3"
|
9
|
-
gem "oauth2"
|
10
|
-
gem "omniauth-oauth2"
|
11
|
-
gem "rdoc"
|
12
|
-
|
13
|
-
gem "activemodel-serializers-xml", github: "rails/activemodel-serializers-xml"
|
14
|
-
|
15
|
-
gem "rails-controller-testing"
|
16
|
-
|
17
|
-
gem "responders", "~> 2.1"
|
18
|
-
|
19
|
-
group :test do
|
20
|
-
gem "omniauth-facebook"
|
21
|
-
gem "omniauth-openid"
|
22
|
-
gem "webrat", "0.7.3", require: false
|
23
|
-
gem "mocha", "~> 1.1", require: false
|
24
|
-
end
|
25
|
-
|
26
|
-
platforms :jruby do
|
27
|
-
gem "activerecord-jdbc-adapter"
|
28
|
-
gem "activerecord-jdbcsqlite3-adapter"
|
29
|
-
gem "jruby-openssl"
|
30
|
-
end
|
31
|
-
|
32
|
-
platforms :ruby do
|
33
|
-
gem "sqlite3"
|
34
|
-
end
|
35
|
-
|
36
|
-
# TODO:
|
37
|
-
# group :mongoid do
|
38
|
-
# gem "mongoid", "~> 4.0.0"
|
39
|
-
# end
|
data/Gemfile.lock
DELETED
@@ -1,193 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: git://github.com/rails/activemodel-serializers-xml.git
|
3
|
-
revision: dd9c0acf26aab111ebc647cd8deb99ebc6946531
|
4
|
-
specs:
|
5
|
-
activemodel-serializers-xml (1.0.1)
|
6
|
-
activemodel (> 5.x)
|
7
|
-
activesupport (> 5.x)
|
8
|
-
builder (~> 3.1)
|
9
|
-
|
10
|
-
PATH
|
11
|
-
remote: .
|
12
|
-
specs:
|
13
|
-
devise (4.4.3)
|
14
|
-
bcrypt (~> 3.0)
|
15
|
-
orm_adapter (~> 0.1)
|
16
|
-
railties (>= 4.1.0, < 6.0)
|
17
|
-
responders
|
18
|
-
warden (~> 1.2.3)
|
19
|
-
|
20
|
-
GEM
|
21
|
-
remote: https://rubygems.org/
|
22
|
-
specs:
|
23
|
-
actioncable (5.1.0)
|
24
|
-
actionpack (= 5.1.0)
|
25
|
-
nio4r (~> 2.0)
|
26
|
-
websocket-driver (~> 0.6.1)
|
27
|
-
actionmailer (5.1.0)
|
28
|
-
actionpack (= 5.1.0)
|
29
|
-
actionview (= 5.1.0)
|
30
|
-
activejob (= 5.1.0)
|
31
|
-
mail (~> 2.5, >= 2.5.4)
|
32
|
-
rails-dom-testing (~> 2.0)
|
33
|
-
actionpack (5.1.0)
|
34
|
-
actionview (= 5.1.0)
|
35
|
-
activesupport (= 5.1.0)
|
36
|
-
rack (~> 2.0)
|
37
|
-
rack-test (~> 0.6.3)
|
38
|
-
rails-dom-testing (~> 2.0)
|
39
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
40
|
-
actionview (5.1.0)
|
41
|
-
activesupport (= 5.1.0)
|
42
|
-
builder (~> 3.1)
|
43
|
-
erubi (~> 1.4)
|
44
|
-
rails-dom-testing (~> 2.0)
|
45
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
46
|
-
activejob (5.1.0)
|
47
|
-
activesupport (= 5.1.0)
|
48
|
-
globalid (>= 0.3.6)
|
49
|
-
activemodel (5.1.0)
|
50
|
-
activesupport (= 5.1.0)
|
51
|
-
activerecord (5.1.0)
|
52
|
-
activemodel (= 5.1.0)
|
53
|
-
activesupport (= 5.1.0)
|
54
|
-
arel (~> 8.0)
|
55
|
-
activesupport (5.1.0)
|
56
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
57
|
-
i18n (~> 0.7)
|
58
|
-
minitest (~> 5.1)
|
59
|
-
tzinfo (~> 1.1)
|
60
|
-
arel (8.0.0)
|
61
|
-
bcrypt (3.1.11)
|
62
|
-
builder (3.2.3)
|
63
|
-
concurrent-ruby (1.0.5)
|
64
|
-
erubi (1.6.0)
|
65
|
-
faraday (0.11.0)
|
66
|
-
multipart-post (>= 1.2, < 3)
|
67
|
-
globalid (0.4.0)
|
68
|
-
activesupport (>= 4.2.0)
|
69
|
-
hashie (3.5.5)
|
70
|
-
i18n (0.8.1)
|
71
|
-
jwt (1.5.6)
|
72
|
-
loofah (2.0.3)
|
73
|
-
nokogiri (>= 1.5.9)
|
74
|
-
mail (2.6.5)
|
75
|
-
mime-types (>= 1.16, < 4)
|
76
|
-
metaclass (0.0.4)
|
77
|
-
method_source (0.8.2)
|
78
|
-
mime-types (3.1)
|
79
|
-
mime-types-data (~> 3.2015)
|
80
|
-
mime-types-data (3.2016.0521)
|
81
|
-
mini_portile2 (2.1.0)
|
82
|
-
minitest (5.10.1)
|
83
|
-
mocha (1.2.1)
|
84
|
-
metaclass (~> 0.0.1)
|
85
|
-
multi_json (1.12.1)
|
86
|
-
multi_xml (0.6.0)
|
87
|
-
multipart-post (2.0.0)
|
88
|
-
nio4r (2.0.0)
|
89
|
-
nokogiri (1.7.1)
|
90
|
-
mini_portile2 (~> 2.1.0)
|
91
|
-
oauth2 (1.3.1)
|
92
|
-
faraday (>= 0.8, < 0.12)
|
93
|
-
jwt (~> 1.0)
|
94
|
-
multi_json (~> 1.3)
|
95
|
-
multi_xml (~> 0.5)
|
96
|
-
rack (>= 1.2, < 3)
|
97
|
-
omniauth (1.6.1)
|
98
|
-
hashie (>= 3.4.6, < 3.6.0)
|
99
|
-
rack (>= 1.6.2, < 3)
|
100
|
-
omniauth-facebook (4.0.0)
|
101
|
-
omniauth-oauth2 (~> 1.2)
|
102
|
-
omniauth-oauth2 (1.4.0)
|
103
|
-
oauth2 (~> 1.0)
|
104
|
-
omniauth (~> 1.2)
|
105
|
-
omniauth-openid (1.0.1)
|
106
|
-
omniauth (~> 1.0)
|
107
|
-
rack-openid (~> 1.3.1)
|
108
|
-
orm_adapter (0.5.0)
|
109
|
-
rack (2.0.1)
|
110
|
-
rack-openid (1.3.1)
|
111
|
-
rack (>= 1.1.0)
|
112
|
-
ruby-openid (>= 2.1.8)
|
113
|
-
rack-test (0.6.3)
|
114
|
-
rack (>= 1.0)
|
115
|
-
rails (5.1.0)
|
116
|
-
actioncable (= 5.1.0)
|
117
|
-
actionmailer (= 5.1.0)
|
118
|
-
actionpack (= 5.1.0)
|
119
|
-
actionview (= 5.1.0)
|
120
|
-
activejob (= 5.1.0)
|
121
|
-
activemodel (= 5.1.0)
|
122
|
-
activerecord (= 5.1.0)
|
123
|
-
activesupport (= 5.1.0)
|
124
|
-
bundler (>= 1.3.0, < 2.0)
|
125
|
-
railties (= 5.1.0)
|
126
|
-
sprockets-rails (>= 2.0.0)
|
127
|
-
rails-controller-testing (1.0.1)
|
128
|
-
actionpack (~> 5.x)
|
129
|
-
actionview (~> 5.x)
|
130
|
-
activesupport (~> 5.x)
|
131
|
-
rails-dom-testing (2.0.2)
|
132
|
-
activesupport (>= 4.2.0, < 6.0)
|
133
|
-
nokogiri (~> 1.6)
|
134
|
-
rails-html-sanitizer (1.0.3)
|
135
|
-
loofah (~> 2.0)
|
136
|
-
railties (5.1.0)
|
137
|
-
actionpack (= 5.1.0)
|
138
|
-
activesupport (= 5.1.0)
|
139
|
-
method_source
|
140
|
-
rake (>= 0.8.7)
|
141
|
-
thor (>= 0.18.1, < 2.0)
|
142
|
-
rake (12.0.0)
|
143
|
-
rdoc (5.1.0)
|
144
|
-
responders (2.4.0)
|
145
|
-
actionpack (>= 4.2.0, < 5.3)
|
146
|
-
railties (>= 4.2.0, < 5.3)
|
147
|
-
ruby-openid (2.7.0)
|
148
|
-
sprockets (3.7.1)
|
149
|
-
concurrent-ruby (~> 1.0)
|
150
|
-
rack (> 1, < 3)
|
151
|
-
sprockets-rails (3.2.0)
|
152
|
-
actionpack (>= 4.0)
|
153
|
-
activesupport (>= 4.0)
|
154
|
-
sprockets (>= 3.0.0)
|
155
|
-
sqlite3 (1.3.13)
|
156
|
-
thor (0.19.4)
|
157
|
-
thread_safe (0.3.6)
|
158
|
-
tzinfo (1.2.3)
|
159
|
-
thread_safe (~> 0.1)
|
160
|
-
warden (1.2.7)
|
161
|
-
rack (>= 1.0)
|
162
|
-
webrat (0.7.3)
|
163
|
-
nokogiri (>= 1.2.0)
|
164
|
-
rack (>= 1.0)
|
165
|
-
rack-test (>= 0.5.3)
|
166
|
-
websocket-driver (0.6.5)
|
167
|
-
websocket-extensions (>= 0.1.0)
|
168
|
-
websocket-extensions (0.1.2)
|
169
|
-
|
170
|
-
PLATFORMS
|
171
|
-
ruby
|
172
|
-
|
173
|
-
DEPENDENCIES
|
174
|
-
activemodel-serializers-xml!
|
175
|
-
activerecord-jdbc-adapter
|
176
|
-
activerecord-jdbcsqlite3-adapter
|
177
|
-
devise!
|
178
|
-
jruby-openssl
|
179
|
-
mocha (~> 1.1)
|
180
|
-
oauth2
|
181
|
-
omniauth (~> 1.3)
|
182
|
-
omniauth-facebook
|
183
|
-
omniauth-oauth2
|
184
|
-
omniauth-openid
|
185
|
-
rails (~> 5.1)
|
186
|
-
rails-controller-testing
|
187
|
-
rdoc
|
188
|
-
responders (~> 2.1)
|
189
|
-
sqlite3
|
190
|
-
webrat (= 0.7.3)
|
191
|
-
|
192
|
-
BUNDLED WITH
|
193
|
-
1.16.1
|
data/ISSUE_TEMPLATE.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
## Precheck
|
2
|
-
|
3
|
-
- Do not use the issues tracker for help or support, try Stack Overflow.
|
4
|
-
- For bugs, do a quick search and make sure the bug has not yet been reported
|
5
|
-
- Finally, be nice and have fun!
|
6
|
-
|
7
|
-
## Environment
|
8
|
-
|
9
|
-
- Ruby **[version]**
|
10
|
-
- Rails **[version]**
|
11
|
-
- Devise **[version]**
|
12
|
-
|
13
|
-
## Current behavior
|
14
|
-
|
15
|
-
Include code samples, errors, steps to reproduce the error and stacktraces if appropriate.
|
16
|
-
|
17
|
-
Will be even more helpful if you provide a sample application or a test case that reproduces the error.
|
18
|
-
|
19
|
-
## Expected behavior
|
data/Rakefile
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/gem_tasks'
|
5
|
-
require 'rake/testtask'
|
6
|
-
require 'rdoc/task'
|
7
|
-
|
8
|
-
desc 'Default: run tests for all ORMs.'
|
9
|
-
task default: :test
|
10
|
-
|
11
|
-
desc 'Run Devise tests for all ORMs.'
|
12
|
-
task :pre_commit do
|
13
|
-
Dir[File.join(File.dirname(__FILE__), 'test', 'orm', '*.rb')].each do |file|
|
14
|
-
orm = File.basename(file).split(".").first
|
15
|
-
# "Some day, my son, rake's inner wisdom will reveal itself. Until then,
|
16
|
-
# take this `system` -- may its brute force protect you well."
|
17
|
-
exit 1 unless system "rake test DEVISE_ORM=#{orm}"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
desc 'Run Devise unit tests.'
|
22
|
-
Rake::TestTask.new(:test) do |t|
|
23
|
-
t.libs << 'lib'
|
24
|
-
t.libs << 'test'
|
25
|
-
t.pattern = 'test/**/*_test.rb'
|
26
|
-
t.verbose = true
|
27
|
-
t.warning = false
|
28
|
-
end
|
29
|
-
|
30
|
-
desc 'Generate documentation for Devise.'
|
31
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
32
|
-
rdoc.rdoc_dir = 'rdoc'
|
33
|
-
rdoc.title = 'Devise'
|
34
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
35
|
-
rdoc.rdoc_files.include('README.md')
|
36
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
37
|
-
end
|
data/bin/test
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
$: << File.expand_path(File.expand_path('../../test', __FILE__))
|
3
|
-
|
4
|
-
require 'bundler/setup'
|
5
|
-
begin
|
6
|
-
require 'rails/test_unit/minitest_plugin'
|
7
|
-
rescue LoadError
|
8
|
-
exec 'rake'
|
9
|
-
end
|
10
|
-
|
11
|
-
Rails::TestUnitReporter.executable = 'bin/test'
|
12
|
-
|
13
|
-
exit Minitest.run(ARGV)
|
data/devise.gemspec
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
$:.push File.expand_path("../lib", __FILE__)
|
5
|
-
require "devise/version"
|
6
|
-
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = "devise"
|
9
|
-
s.version = Devise::VERSION.dup
|
10
|
-
s.platform = Gem::Platform::RUBY
|
11
|
-
s.licenses = ["MIT"]
|
12
|
-
s.summary = "Flexible authentication solution for Rails with Warden"
|
13
|
-
s.email = "contact@plataformatec.com.br"
|
14
|
-
s.homepage = "https://github.com/plataformatec/devise"
|
15
|
-
s.description = "Flexible authentication solution for Rails with Warden"
|
16
|
-
s.authors = ['José Valim', 'Carlos Antônio']
|
17
|
-
|
18
|
-
s.files = `git ls-files`.split("\n")
|
19
|
-
s.test_files = `git ls-files -- test/*`.split("\n")
|
20
|
-
s.require_paths = ["lib"]
|
21
|
-
s.required_ruby_version = '>= 2.1.0'
|
22
|
-
|
23
|
-
s.add_dependency("warden", "~> 1.2.3")
|
24
|
-
s.add_dependency("orm_adapter", "~> 0.1")
|
25
|
-
s.add_dependency("bcrypt", "~> 3.0")
|
26
|
-
s.add_dependency("railties", ">= 4.1.0", "< 6.0")
|
27
|
-
s.add_dependency("responders")
|
28
|
-
end
|
data/devise.png
DELETED
Binary file
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gemspec path: ".."
|
6
|
-
|
7
|
-
gem "rails", github: "rails/rails", branch: "4-1-stable"
|
8
|
-
gem "omniauth"
|
9
|
-
gem "omniauth-oauth2"
|
10
|
-
gem "rdoc", "~> 5.1"
|
11
|
-
|
12
|
-
group :test do
|
13
|
-
gem "omniauth-facebook"
|
14
|
-
gem "omniauth-openid"
|
15
|
-
gem "webrat", "0.7.3", require: false
|
16
|
-
gem "mocha", "~> 1.1", require: false
|
17
|
-
gem 'test_after_commit', require: false
|
18
|
-
end
|
19
|
-
|
20
|
-
platforms :jruby do
|
21
|
-
gem "activerecord-jdbc-adapter"
|
22
|
-
gem "activerecord-jdbcsqlite3-adapter"
|
23
|
-
gem "jruby-openssl"
|
24
|
-
end
|
25
|
-
|
26
|
-
platforms :ruby do
|
27
|
-
gem "sqlite3"
|
28
|
-
end
|
29
|
-
|
30
|
-
group :mongoid do
|
31
|
-
gem "mongoid", "~> 4.0"
|
32
|
-
end
|