devise 2.1.2 → 3.5.10
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of devise might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.travis.yml +39 -10
- data/.yardopts +9 -0
- data/{CHANGELOG.rdoc → CHANGELOG.md} +445 -112
- data/CODE_OF_CONDUCT.md +22 -0
- data/CONTRIBUTING.md +16 -0
- data/Gemfile +10 -15
- data/Gemfile.lock +151 -129
- data/MIT-LICENSE +1 -1
- data/README.md +256 -96
- data/Rakefile +4 -2
- data/app/controllers/devise/confirmations_controller.rb +15 -7
- data/app/controllers/devise/omniauth_callbacks_controller.rb +6 -2
- data/app/controllers/devise/passwords_controller.rb +33 -9
- data/app/controllers/devise/registrations_controller.rb +66 -26
- data/app/controllers/devise/sessions_controller.rb +52 -21
- data/app/controllers/devise/unlocks_controller.rb +11 -6
- data/app/controllers/devise_controller.rb +65 -58
- data/app/helpers/devise_helper.rb +2 -2
- data/app/mailers/devise/mailer.rb +19 -10
- data/app/views/devise/confirmations/new.html.erb +8 -4
- data/app/views/devise/mailer/confirmation_instructions.html.erb +2 -2
- data/app/views/devise/mailer/password_change.html.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +2 -2
- data/app/views/devise/mailer/unlock_instructions.html.erb +2 -2
- data/app/views/devise/passwords/edit.html.erb +15 -6
- data/app/views/devise/passwords/new.html.erb +8 -4
- data/app/views/devise/registrations/edit.html.erb +29 -15
- data/app/views/devise/registrations/new.html.erb +19 -8
- data/app/views/devise/sessions/new.html.erb +17 -8
- data/app/views/devise/shared/{_links.erb → _links.html.erb} +4 -4
- data/app/views/devise/unlocks/new.html.erb +8 -4
- data/config/locales/en.yml +51 -47
- data/devise.gemspec +8 -6
- data/devise.png +0 -0
- data/gemfiles/Gemfile.rails-3.2-stable +29 -0
- data/gemfiles/Gemfile.rails-3.2-stable.lock +172 -0
- data/gemfiles/Gemfile.rails-4.0-stable +30 -0
- data/gemfiles/Gemfile.rails-4.0-stable.lock +166 -0
- data/gemfiles/Gemfile.rails-4.1-stable +30 -0
- data/gemfiles/Gemfile.rails-4.1-stable.lock +171 -0
- data/gemfiles/Gemfile.rails-4.2-stable +30 -0
- data/gemfiles/Gemfile.rails-4.2-stable.lock +193 -0
- data/lib/devise/controllers/helpers.rb +126 -108
- data/lib/devise/controllers/rememberable.rb +19 -17
- data/lib/devise/controllers/scoped_views.rb +1 -1
- data/lib/devise/controllers/sign_in_out.rb +96 -0
- data/lib/devise/controllers/store_location.rb +58 -0
- data/lib/devise/controllers/url_helpers.rb +7 -7
- data/lib/devise/encryptor.rb +22 -0
- data/lib/devise/failure_app.rb +85 -25
- data/lib/devise/hooks/activatable.rb +5 -6
- data/lib/devise/hooks/csrf_cleaner.rb +7 -0
- data/lib/devise/hooks/forgetable.rb +1 -1
- data/lib/devise/hooks/lockable.rb +2 -2
- data/lib/devise/hooks/proxy.rb +21 -0
- data/lib/devise/hooks/rememberable.rb +5 -4
- data/lib/devise/hooks/timeoutable.rb +16 -8
- data/lib/devise/hooks/trackable.rb +1 -1
- data/lib/devise/mailers/helpers.rb +27 -23
- data/lib/devise/mapping.rb +11 -7
- data/lib/devise/models/authenticatable.rb +82 -66
- data/lib/devise/models/confirmable.rb +142 -55
- data/lib/devise/models/database_authenticatable.rb +59 -15
- data/lib/devise/models/lockable.rb +41 -30
- data/lib/devise/models/omniauthable.rb +3 -3
- data/lib/devise/models/recoverable.rb +56 -41
- data/lib/devise/models/rememberable.rb +65 -27
- data/lib/devise/models/timeoutable.rb +2 -8
- data/lib/devise/models/trackable.rb +6 -4
- data/lib/devise/models/validatable.rb +9 -9
- data/lib/devise/models.rb +4 -13
- data/lib/devise/modules.rb +10 -11
- data/lib/devise/omniauth/url_helpers.rb +2 -2
- data/lib/devise/orm/active_record.rb +1 -1
- data/lib/devise/orm/mongoid.rb +1 -1
- data/lib/devise/{param_filter.rb → parameter_filter.rb} +10 -11
- data/lib/devise/parameter_sanitizer.rb +99 -0
- data/lib/devise/rails/routes.rb +173 -115
- data/lib/devise/rails/warden_compat.rb +10 -31
- data/lib/devise/rails.rb +14 -12
- data/lib/devise/strategies/authenticatable.rb +26 -26
- data/lib/devise/strategies/base.rb +1 -1
- data/lib/devise/strategies/database_authenticatable.rb +8 -4
- data/lib/devise/strategies/rememberable.rb +15 -5
- data/lib/devise/test_helpers.rb +7 -5
- data/lib/devise/time_inflector.rb +14 -0
- data/lib/devise/token_generator.rb +70 -0
- data/lib/devise/version.rb +1 -1
- data/lib/devise.rb +110 -52
- data/lib/generators/active_record/devise_generator.rb +34 -18
- data/lib/generators/active_record/templates/migration.rb +5 -6
- data/lib/generators/active_record/templates/migration_existing.rb +5 -6
- data/lib/generators/devise/controllers_generator.rb +44 -0
- data/lib/generators/devise/devise_generator.rb +5 -3
- data/lib/generators/devise/install_generator.rb +5 -0
- data/lib/generators/devise/orm_helpers.rb +25 -6
- data/lib/generators/devise/views_generator.rb +52 -22
- data/lib/generators/mongoid/devise_generator.rb +21 -26
- data/lib/generators/templates/README +9 -5
- data/lib/generators/templates/controllers/README +14 -0
- data/lib/generators/templates/controllers/confirmations_controller.rb +28 -0
- data/lib/generators/templates/controllers/omniauth_callbacks_controller.rb +28 -0
- data/lib/generators/templates/controllers/passwords_controller.rb +32 -0
- data/lib/generators/templates/controllers/registrations_controller.rb +60 -0
- data/lib/generators/templates/controllers/sessions_controller.rb +25 -0
- data/lib/generators/templates/controllers/unlocks_controller.rb +28 -0
- data/lib/generators/templates/devise.rb +80 -43
- data/lib/generators/templates/markerb/confirmation_instructions.markerb +2 -2
- data/lib/generators/templates/markerb/password_change.markerb +3 -0
- data/lib/generators/templates/markerb/reset_password_instructions.markerb +1 -1
- data/lib/generators/templates/markerb/unlock_instructions.markerb +2 -2
- data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +3 -2
- data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +4 -4
- data/lib/generators/templates/simple_form_for/passwords/new.html.erb +2 -2
- data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +11 -6
- data/lib/generators/templates/simple_form_for/registrations/new.html.erb +4 -4
- data/lib/generators/templates/simple_form_for/sessions/new.html.erb +6 -6
- data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +3 -2
- data/script/cached-bundle +49 -0
- data/script/s3-put +71 -0
- data/test/controllers/custom_registrations_controller_test.rb +40 -0
- data/test/controllers/helper_methods_test.rb +21 -0
- data/test/controllers/helpers_test.rb +95 -32
- data/test/controllers/inherited_controller_i18n_messages_test.rb +51 -0
- data/test/controllers/internal_helpers_test.rb +39 -14
- data/test/controllers/load_hooks_controller_test.rb +19 -0
- data/test/controllers/passwords_controller_test.rb +31 -0
- data/test/controllers/sessions_controller_test.rb +66 -6
- data/test/controllers/url_helpers_test.rb +10 -4
- data/test/delegator_test.rb +1 -1
- data/test/devise_test.rb +45 -10
- data/test/failure_app_test.rb +121 -27
- data/test/generators/active_record_generator_test.rb +48 -8
- data/test/generators/controllers_generator_test.rb +48 -0
- data/test/generators/devise_generator_test.rb +2 -2
- data/test/generators/mongoid_generator_test.rb +3 -3
- data/test/generators/views_generator_test.rb +54 -3
- data/test/helpers/devise_helper_test.rb +18 -20
- data/test/integration/authenticatable_test.rb +161 -65
- data/test/integration/confirmable_test.rb +146 -77
- data/test/integration/database_authenticatable_test.rb +43 -30
- data/test/integration/http_authenticatable_test.rb +30 -22
- data/test/integration/lockable_test.rb +64 -49
- data/test/integration/omniauthable_test.rb +17 -15
- data/test/integration/recoverable_test.rb +111 -70
- data/test/integration/registerable_test.rb +114 -79
- data/test/integration/rememberable_test.rb +87 -31
- data/test/integration/timeoutable_test.rb +77 -33
- data/test/integration/trackable_test.rb +5 -5
- data/test/mailers/confirmation_instructions_test.rb +28 -8
- data/test/mailers/reset_password_instructions_test.rb +21 -8
- data/test/mailers/unlock_instructions_test.rb +20 -6
- data/test/mapping_test.rb +12 -5
- data/test/models/authenticatable_test.rb +17 -1
- data/test/models/confirmable_test.rb +216 -62
- data/test/models/database_authenticatable_test.rb +129 -49
- data/test/models/lockable_test.rb +132 -45
- data/test/models/recoverable_test.rb +100 -54
- data/test/models/rememberable_test.rb +89 -94
- data/test/models/serializable_test.rb +12 -11
- data/test/models/timeoutable_test.rb +6 -1
- data/test/models/trackable_test.rb +28 -0
- data/test/models/validatable_test.rb +31 -21
- data/test/models_test.rb +22 -48
- data/test/omniauth/config_test.rb +4 -4
- data/test/omniauth/url_helpers_test.rb +7 -4
- data/test/orm/active_record.rb +1 -0
- data/test/orm/mongoid.rb +2 -3
- data/test/parameter_sanitizer_test.rb +81 -0
- data/test/rails_app/Rakefile +0 -4
- data/test/rails_app/app/active_record/shim.rb +1 -1
- data/test/rails_app/app/active_record/user_on_engine.rb +7 -0
- data/test/rails_app/app/active_record/user_on_main_app.rb +7 -0
- data/test/rails_app/app/active_record/user_without_email.rb +8 -0
- data/test/rails_app/app/controllers/admins/sessions_controller.rb +1 -1
- data/test/rails_app/app/controllers/admins_controller.rb +0 -5
- data/test/rails_app/app/controllers/application_controller.rb +6 -2
- data/test/rails_app/app/controllers/application_with_fake_engine.rb +30 -0
- data/test/rails_app/app/controllers/custom/registrations_controller.rb +31 -0
- data/test/rails_app/app/controllers/home_controller.rb +1 -1
- data/test/rails_app/app/controllers/publisher/registrations_controller.rb +1 -1
- data/test/rails_app/app/controllers/publisher/sessions_controller.rb +1 -1
- data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +4 -4
- data/test/rails_app/app/controllers/users_controller.rb +12 -4
- data/test/rails_app/app/mailers/users/from_proc_mailer.rb +3 -0
- data/test/rails_app/app/mailers/users/mailer.rb +1 -1
- data/test/rails_app/app/mailers/users/reply_to_mailer.rb +4 -0
- data/test/rails_app/app/mongoid/admin.rb +12 -10
- data/test/rails_app/app/mongoid/shim.rb +4 -5
- data/test/rails_app/app/mongoid/user.rb +19 -22
- data/test/rails_app/app/mongoid/user_on_engine.rb +39 -0
- data/test/rails_app/app/mongoid/user_on_main_app.rb +39 -0
- data/test/rails_app/app/mongoid/user_without_email.rb +33 -0
- data/test/rails_app/app/views/admins/sessions/new.html.erb +1 -1
- data/test/rails_app/app/views/home/admin_dashboard.html.erb +1 -1
- data/test/rails_app/app/views/home/index.html.erb +1 -1
- data/test/rails_app/app/views/home/join.html.erb +1 -1
- data/test/rails_app/app/views/home/user_dashboard.html.erb +1 -1
- data/test/rails_app/app/views/layouts/application.html.erb +1 -1
- data/test/rails_app/app/views/users/edit_form.html.erb +1 -0
- data/test/rails_app/bin/bundle +3 -0
- data/test/rails_app/bin/rails +4 -0
- data/test/rails_app/bin/rake +4 -0
- data/test/rails_app/config/application.rb +4 -5
- data/test/rails_app/config/boot.rb +9 -3
- data/test/rails_app/config/environment.rb +2 -2
- data/test/rails_app/config/environments/development.rb +19 -7
- data/test/rails_app/config/environments/production.rb +68 -17
- data/test/rails_app/config/environments/test.rb +24 -16
- data/test/rails_app/config/initializers/devise.rb +22 -20
- data/test/rails_app/config/initializers/secret_token.rb +8 -2
- data/test/rails_app/config/initializers/session_store.rb +1 -0
- data/test/rails_app/config/routes.rb +71 -46
- data/test/rails_app/db/migrate/20100401102949_create_tables.rb +9 -12
- data/test/rails_app/db/schema.rb +21 -18
- data/test/rails_app/lib/shared_admin.rb +7 -4
- data/test/rails_app/lib/shared_user.rb +6 -3
- data/test/rails_app/lib/shared_user_without_email.rb +26 -0
- data/test/rails_app/lib/shared_user_without_omniauth.rb +13 -0
- data/test/rails_test.rb +9 -0
- data/test/routes_test.rb +94 -78
- data/test/support/action_controller/record_identifier.rb +10 -0
- data/test/support/assertions.rb +2 -3
- data/test/support/helpers.rb +18 -32
- data/test/support/integration.rb +17 -16
- data/test/support/locale/en.yml +4 -0
- data/test/support/mongoid.yml +6 -0
- data/test/test_helper.rb +8 -1
- data/test/test_helpers_test.rb +64 -20
- data/test/test_models.rb +33 -0
- data/test/time_helpers.rb +137 -0
- metadata +172 -51
- data/app/views/devise/_links.erb +0 -3
- data/gemfiles/Gemfile.rails-3.1.x +0 -35
- data/gemfiles/Gemfile.rails-3.1.x.lock +0 -167
- data/lib/devise/models/token_authenticatable.rb +0 -77
- data/lib/devise/strategies/token_authenticatable.rb +0 -56
- data/test/indifferent_hash.rb +0 -33
- data/test/integration/token_authenticatable_test.rb +0 -161
- data/test/models/token_authenticatable_test.rb +0 -55
- data/test/rails_app/script/rails +0 -10
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 3.5.10
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- José Valim
|
@@ -10,61 +9,110 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2016-05-15 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: warden
|
17
|
-
requirement:
|
18
|
-
none: false
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
requirements:
|
20
|
-
- - ~>
|
18
|
+
- - "~>"
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.2.
|
20
|
+
version: 1.2.3
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
|
-
version_requirements:
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 1.2.3
|
26
28
|
- !ruby/object:Gem::Dependency
|
27
29
|
name: orm_adapter
|
28
|
-
requirement:
|
29
|
-
none: false
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- - ~>
|
32
|
+
- - "~>"
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: '0.1'
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0.1'
|
37
42
|
- !ruby/object:Gem::Dependency
|
38
|
-
name: bcrypt
|
39
|
-
requirement:
|
40
|
-
none: false
|
43
|
+
name: bcrypt
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
41
45
|
requirements:
|
42
|
-
- - ~>
|
46
|
+
- - "~>"
|
43
47
|
- !ruby/object:Gem::Version
|
44
48
|
version: '3.0'
|
45
49
|
type: :runtime
|
46
50
|
prerelease: false
|
47
|
-
version_requirements:
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '3.0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: thread_safe
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.1'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.1'
|
48
70
|
- !ruby/object:Gem::Dependency
|
49
71
|
name: railties
|
50
|
-
requirement:
|
51
|
-
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 3.2.6
|
77
|
+
- - "<"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '5'
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
83
|
requirements:
|
53
|
-
- -
|
84
|
+
- - ">="
|
54
85
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
86
|
+
version: 3.2.6
|
87
|
+
- - "<"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5'
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: responders
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
56
97
|
type: :runtime
|
57
98
|
prerelease: false
|
58
|
-
version_requirements:
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
59
104
|
description: Flexible authentication solution for Rails with Warden
|
60
105
|
email: contact@plataformatec.com.br
|
61
106
|
executables: []
|
62
107
|
extensions: []
|
63
108
|
extra_rdoc_files: []
|
64
109
|
files:
|
65
|
-
- .gitignore
|
66
|
-
- .travis.yml
|
67
|
-
-
|
110
|
+
- ".gitignore"
|
111
|
+
- ".travis.yml"
|
112
|
+
- ".yardopts"
|
113
|
+
- CHANGELOG.md
|
114
|
+
- CODE_OF_CONDUCT.md
|
115
|
+
- CONTRIBUTING.md
|
68
116
|
- Gemfile
|
69
117
|
- Gemfile.lock
|
70
118
|
- MIT-LICENSE
|
@@ -79,9 +127,9 @@ files:
|
|
79
127
|
- app/controllers/devise_controller.rb
|
80
128
|
- app/helpers/devise_helper.rb
|
81
129
|
- app/mailers/devise/mailer.rb
|
82
|
-
- app/views/devise/_links.erb
|
83
130
|
- app/views/devise/confirmations/new.html.erb
|
84
131
|
- app/views/devise/mailer/confirmation_instructions.html.erb
|
132
|
+
- app/views/devise/mailer/password_change.html.erb
|
85
133
|
- app/views/devise/mailer/reset_password_instructions.html.erb
|
86
134
|
- app/views/devise/mailer/unlock_instructions.html.erb
|
87
135
|
- app/views/devise/passwords/edit.html.erb
|
@@ -89,22 +137,34 @@ files:
|
|
89
137
|
- app/views/devise/registrations/edit.html.erb
|
90
138
|
- app/views/devise/registrations/new.html.erb
|
91
139
|
- app/views/devise/sessions/new.html.erb
|
92
|
-
- app/views/devise/shared/_links.erb
|
140
|
+
- app/views/devise/shared/_links.html.erb
|
93
141
|
- app/views/devise/unlocks/new.html.erb
|
94
142
|
- config/locales/en.yml
|
95
143
|
- devise.gemspec
|
96
|
-
-
|
97
|
-
- gemfiles/Gemfile.rails-3.
|
144
|
+
- devise.png
|
145
|
+
- gemfiles/Gemfile.rails-3.2-stable
|
146
|
+
- gemfiles/Gemfile.rails-3.2-stable.lock
|
147
|
+
- gemfiles/Gemfile.rails-4.0-stable
|
148
|
+
- gemfiles/Gemfile.rails-4.0-stable.lock
|
149
|
+
- gemfiles/Gemfile.rails-4.1-stable
|
150
|
+
- gemfiles/Gemfile.rails-4.1-stable.lock
|
151
|
+
- gemfiles/Gemfile.rails-4.2-stable
|
152
|
+
- gemfiles/Gemfile.rails-4.2-stable.lock
|
98
153
|
- lib/devise.rb
|
99
154
|
- lib/devise/controllers/helpers.rb
|
100
155
|
- lib/devise/controllers/rememberable.rb
|
101
156
|
- lib/devise/controllers/scoped_views.rb
|
157
|
+
- lib/devise/controllers/sign_in_out.rb
|
158
|
+
- lib/devise/controllers/store_location.rb
|
102
159
|
- lib/devise/controllers/url_helpers.rb
|
103
160
|
- lib/devise/delegator.rb
|
161
|
+
- lib/devise/encryptor.rb
|
104
162
|
- lib/devise/failure_app.rb
|
105
163
|
- lib/devise/hooks/activatable.rb
|
164
|
+
- lib/devise/hooks/csrf_cleaner.rb
|
106
165
|
- lib/devise/hooks/forgetable.rb
|
107
166
|
- lib/devise/hooks/lockable.rb
|
167
|
+
- lib/devise/hooks/proxy.rb
|
108
168
|
- lib/devise/hooks/rememberable.rb
|
109
169
|
- lib/devise/hooks/timeoutable.rb
|
110
170
|
- lib/devise/hooks/trackable.rb
|
@@ -120,7 +180,6 @@ files:
|
|
120
180
|
- lib/devise/models/registerable.rb
|
121
181
|
- lib/devise/models/rememberable.rb
|
122
182
|
- lib/devise/models/timeoutable.rb
|
123
|
-
- lib/devise/models/token_authenticatable.rb
|
124
183
|
- lib/devise/models/trackable.rb
|
125
184
|
- lib/devise/models/validatable.rb
|
126
185
|
- lib/devise/modules.rb
|
@@ -129,7 +188,8 @@ files:
|
|
129
188
|
- lib/devise/omniauth/url_helpers.rb
|
130
189
|
- lib/devise/orm/active_record.rb
|
131
190
|
- lib/devise/orm/mongoid.rb
|
132
|
-
- lib/devise/
|
191
|
+
- lib/devise/parameter_filter.rb
|
192
|
+
- lib/devise/parameter_sanitizer.rb
|
133
193
|
- lib/devise/rails.rb
|
134
194
|
- lib/devise/rails/routes.rb
|
135
195
|
- lib/devise/rails/warden_compat.rb
|
@@ -137,20 +197,30 @@ files:
|
|
137
197
|
- lib/devise/strategies/base.rb
|
138
198
|
- lib/devise/strategies/database_authenticatable.rb
|
139
199
|
- lib/devise/strategies/rememberable.rb
|
140
|
-
- lib/devise/strategies/token_authenticatable.rb
|
141
200
|
- lib/devise/test_helpers.rb
|
201
|
+
- lib/devise/time_inflector.rb
|
202
|
+
- lib/devise/token_generator.rb
|
142
203
|
- lib/devise/version.rb
|
143
204
|
- lib/generators/active_record/devise_generator.rb
|
144
205
|
- lib/generators/active_record/templates/migration.rb
|
145
206
|
- lib/generators/active_record/templates/migration_existing.rb
|
207
|
+
- lib/generators/devise/controllers_generator.rb
|
146
208
|
- lib/generators/devise/devise_generator.rb
|
147
209
|
- lib/generators/devise/install_generator.rb
|
148
210
|
- lib/generators/devise/orm_helpers.rb
|
149
211
|
- lib/generators/devise/views_generator.rb
|
150
212
|
- lib/generators/mongoid/devise_generator.rb
|
151
213
|
- lib/generators/templates/README
|
214
|
+
- lib/generators/templates/controllers/README
|
215
|
+
- lib/generators/templates/controllers/confirmations_controller.rb
|
216
|
+
- lib/generators/templates/controllers/omniauth_callbacks_controller.rb
|
217
|
+
- lib/generators/templates/controllers/passwords_controller.rb
|
218
|
+
- lib/generators/templates/controllers/registrations_controller.rb
|
219
|
+
- lib/generators/templates/controllers/sessions_controller.rb
|
220
|
+
- lib/generators/templates/controllers/unlocks_controller.rb
|
152
221
|
- lib/generators/templates/devise.rb
|
153
222
|
- lib/generators/templates/markerb/confirmation_instructions.markerb
|
223
|
+
- lib/generators/templates/markerb/password_change.markerb
|
154
224
|
- lib/generators/templates/markerb/reset_password_instructions.markerb
|
155
225
|
- lib/generators/templates/markerb/unlock_instructions.markerb
|
156
226
|
- lib/generators/templates/simple_form_for/confirmations/new.html.erb
|
@@ -160,21 +230,28 @@ files:
|
|
160
230
|
- lib/generators/templates/simple_form_for/registrations/new.html.erb
|
161
231
|
- lib/generators/templates/simple_form_for/sessions/new.html.erb
|
162
232
|
- lib/generators/templates/simple_form_for/unlocks/new.html.erb
|
233
|
+
- script/cached-bundle
|
234
|
+
- script/s3-put
|
235
|
+
- test/controllers/custom_registrations_controller_test.rb
|
163
236
|
- test/controllers/custom_strategy_test.rb
|
237
|
+
- test/controllers/helper_methods_test.rb
|
164
238
|
- test/controllers/helpers_test.rb
|
239
|
+
- test/controllers/inherited_controller_i18n_messages_test.rb
|
165
240
|
- test/controllers/internal_helpers_test.rb
|
241
|
+
- test/controllers/load_hooks_controller_test.rb
|
242
|
+
- test/controllers/passwords_controller_test.rb
|
166
243
|
- test/controllers/sessions_controller_test.rb
|
167
244
|
- test/controllers/url_helpers_test.rb
|
168
245
|
- test/delegator_test.rb
|
169
246
|
- test/devise_test.rb
|
170
247
|
- test/failure_app_test.rb
|
171
248
|
- test/generators/active_record_generator_test.rb
|
249
|
+
- test/generators/controllers_generator_test.rb
|
172
250
|
- test/generators/devise_generator_test.rb
|
173
251
|
- test/generators/install_generator_test.rb
|
174
252
|
- test/generators/mongoid_generator_test.rb
|
175
253
|
- test/generators/views_generator_test.rb
|
176
254
|
- test/helpers/devise_helper_test.rb
|
177
|
-
- test/indifferent_hash.rb
|
178
255
|
- test/integration/authenticatable_test.rb
|
179
256
|
- test/integration/confirmable_test.rb
|
180
257
|
- test/integration/database_authenticatable_test.rb
|
@@ -185,7 +262,6 @@ files:
|
|
185
262
|
- test/integration/registerable_test.rb
|
186
263
|
- test/integration/rememberable_test.rb
|
187
264
|
- test/integration/timeoutable_test.rb
|
188
|
-
- test/integration/token_authenticatable_test.rb
|
189
265
|
- test/integration/trackable_test.rb
|
190
266
|
- test/mailers/confirmation_instructions_test.rb
|
191
267
|
- test/mailers/reset_password_instructions_test.rb
|
@@ -201,7 +277,6 @@ files:
|
|
201
277
|
- test/models/rememberable_test.rb
|
202
278
|
- test/models/serializable_test.rb
|
203
279
|
- test/models/timeoutable_test.rb
|
204
|
-
- test/models/token_authenticatable_test.rb
|
205
280
|
- test/models/trackable_test.rb
|
206
281
|
- test/models/validatable_test.rb
|
207
282
|
- test/models_test.rb
|
@@ -209,23 +284,34 @@ files:
|
|
209
284
|
- test/omniauth/url_helpers_test.rb
|
210
285
|
- test/orm/active_record.rb
|
211
286
|
- test/orm/mongoid.rb
|
287
|
+
- test/parameter_sanitizer_test.rb
|
212
288
|
- test/rails_app/Rakefile
|
213
289
|
- test/rails_app/app/active_record/admin.rb
|
214
290
|
- test/rails_app/app/active_record/shim.rb
|
215
291
|
- test/rails_app/app/active_record/user.rb
|
292
|
+
- test/rails_app/app/active_record/user_on_engine.rb
|
293
|
+
- test/rails_app/app/active_record/user_on_main_app.rb
|
294
|
+
- test/rails_app/app/active_record/user_without_email.rb
|
216
295
|
- test/rails_app/app/controllers/admins/sessions_controller.rb
|
217
296
|
- test/rails_app/app/controllers/admins_controller.rb
|
218
297
|
- test/rails_app/app/controllers/application_controller.rb
|
298
|
+
- test/rails_app/app/controllers/application_with_fake_engine.rb
|
299
|
+
- test/rails_app/app/controllers/custom/registrations_controller.rb
|
219
300
|
- test/rails_app/app/controllers/home_controller.rb
|
220
301
|
- test/rails_app/app/controllers/publisher/registrations_controller.rb
|
221
302
|
- test/rails_app/app/controllers/publisher/sessions_controller.rb
|
222
303
|
- test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
|
223
304
|
- test/rails_app/app/controllers/users_controller.rb
|
224
305
|
- test/rails_app/app/helpers/application_helper.rb
|
306
|
+
- test/rails_app/app/mailers/users/from_proc_mailer.rb
|
225
307
|
- test/rails_app/app/mailers/users/mailer.rb
|
308
|
+
- test/rails_app/app/mailers/users/reply_to_mailer.rb
|
226
309
|
- test/rails_app/app/mongoid/admin.rb
|
227
310
|
- test/rails_app/app/mongoid/shim.rb
|
228
311
|
- test/rails_app/app/mongoid/user.rb
|
312
|
+
- test/rails_app/app/mongoid/user_on_engine.rb
|
313
|
+
- test/rails_app/app/mongoid/user_on_main_app.rb
|
314
|
+
- test/rails_app/app/mongoid/user_without_email.rb
|
229
315
|
- test/rails_app/app/views/admins/index.html.erb
|
230
316
|
- test/rails_app/app/views/admins/sessions/new.html.erb
|
231
317
|
- test/rails_app/app/views/home/admin_dashboard.html.erb
|
@@ -234,9 +320,13 @@ files:
|
|
234
320
|
- test/rails_app/app/views/home/private.html.erb
|
235
321
|
- test/rails_app/app/views/home/user_dashboard.html.erb
|
236
322
|
- test/rails_app/app/views/layouts/application.html.erb
|
323
|
+
- test/rails_app/app/views/users/edit_form.html.erb
|
237
324
|
- test/rails_app/app/views/users/index.html.erb
|
238
325
|
- test/rails_app/app/views/users/mailer/confirmation_instructions.erb
|
239
326
|
- test/rails_app/app/views/users/sessions/new.html.erb
|
327
|
+
- test/rails_app/bin/bundle
|
328
|
+
- test/rails_app/bin/rails
|
329
|
+
- test/rails_app/bin/rake
|
240
330
|
- test/rails_app/config.ru
|
241
331
|
- test/rails_app/config/application.rb
|
242
332
|
- test/rails_app/config/boot.rb
|
@@ -249,64 +339,76 @@ files:
|
|
249
339
|
- test/rails_app/config/initializers/devise.rb
|
250
340
|
- test/rails_app/config/initializers/inflections.rb
|
251
341
|
- test/rails_app/config/initializers/secret_token.rb
|
342
|
+
- test/rails_app/config/initializers/session_store.rb
|
252
343
|
- test/rails_app/config/routes.rb
|
253
344
|
- test/rails_app/db/migrate/20100401102949_create_tables.rb
|
254
345
|
- test/rails_app/db/schema.rb
|
255
346
|
- test/rails_app/lib/shared_admin.rb
|
256
347
|
- test/rails_app/lib/shared_user.rb
|
348
|
+
- test/rails_app/lib/shared_user_without_email.rb
|
349
|
+
- test/rails_app/lib/shared_user_without_omniauth.rb
|
257
350
|
- test/rails_app/public/404.html
|
258
351
|
- test/rails_app/public/422.html
|
259
352
|
- test/rails_app/public/500.html
|
260
353
|
- test/rails_app/public/favicon.ico
|
261
|
-
- test/
|
354
|
+
- test/rails_test.rb
|
262
355
|
- test/routes_test.rb
|
356
|
+
- test/support/action_controller/record_identifier.rb
|
263
357
|
- test/support/assertions.rb
|
264
358
|
- test/support/helpers.rb
|
265
359
|
- test/support/integration.rb
|
266
360
|
- test/support/locale/en.yml
|
361
|
+
- test/support/mongoid.yml
|
267
362
|
- test/support/webrat/integrations/rails.rb
|
268
363
|
- test/test_helper.rb
|
269
364
|
- test/test_helpers_test.rb
|
270
|
-
|
271
|
-
|
365
|
+
- test/test_models.rb
|
366
|
+
- test/time_helpers.rb
|
367
|
+
homepage: https://github.com/plataformatec/devise
|
368
|
+
licenses:
|
369
|
+
- MIT
|
370
|
+
metadata: {}
|
272
371
|
post_install_message:
|
273
372
|
rdoc_options: []
|
274
373
|
require_paths:
|
275
374
|
- lib
|
276
375
|
required_ruby_version: !ruby/object:Gem::Requirement
|
277
|
-
none: false
|
278
376
|
requirements:
|
279
|
-
- -
|
377
|
+
- - ">="
|
280
378
|
- !ruby/object:Gem::Version
|
281
|
-
version:
|
379
|
+
version: 1.9.3
|
282
380
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
283
|
-
none: false
|
284
381
|
requirements:
|
285
|
-
- -
|
382
|
+
- - ">="
|
286
383
|
- !ruby/object:Gem::Version
|
287
384
|
version: '0'
|
288
385
|
requirements: []
|
289
|
-
rubyforge_project:
|
290
|
-
rubygems_version:
|
386
|
+
rubyforge_project:
|
387
|
+
rubygems_version: 2.5.1
|
291
388
|
signing_key:
|
292
|
-
specification_version:
|
389
|
+
specification_version: 4
|
293
390
|
summary: Flexible authentication solution for Rails with Warden
|
294
391
|
test_files:
|
392
|
+
- test/controllers/custom_registrations_controller_test.rb
|
295
393
|
- test/controllers/custom_strategy_test.rb
|
394
|
+
- test/controllers/helper_methods_test.rb
|
296
395
|
- test/controllers/helpers_test.rb
|
396
|
+
- test/controllers/inherited_controller_i18n_messages_test.rb
|
297
397
|
- test/controllers/internal_helpers_test.rb
|
398
|
+
- test/controllers/load_hooks_controller_test.rb
|
399
|
+
- test/controllers/passwords_controller_test.rb
|
298
400
|
- test/controllers/sessions_controller_test.rb
|
299
401
|
- test/controllers/url_helpers_test.rb
|
300
402
|
- test/delegator_test.rb
|
301
403
|
- test/devise_test.rb
|
302
404
|
- test/failure_app_test.rb
|
303
405
|
- test/generators/active_record_generator_test.rb
|
406
|
+
- test/generators/controllers_generator_test.rb
|
304
407
|
- test/generators/devise_generator_test.rb
|
305
408
|
- test/generators/install_generator_test.rb
|
306
409
|
- test/generators/mongoid_generator_test.rb
|
307
410
|
- test/generators/views_generator_test.rb
|
308
411
|
- test/helpers/devise_helper_test.rb
|
309
|
-
- test/indifferent_hash.rb
|
310
412
|
- test/integration/authenticatable_test.rb
|
311
413
|
- test/integration/confirmable_test.rb
|
312
414
|
- test/integration/database_authenticatable_test.rb
|
@@ -317,7 +419,6 @@ test_files:
|
|
317
419
|
- test/integration/registerable_test.rb
|
318
420
|
- test/integration/rememberable_test.rb
|
319
421
|
- test/integration/timeoutable_test.rb
|
320
|
-
- test/integration/token_authenticatable_test.rb
|
321
422
|
- test/integration/trackable_test.rb
|
322
423
|
- test/mailers/confirmation_instructions_test.rb
|
323
424
|
- test/mailers/reset_password_instructions_test.rb
|
@@ -333,7 +434,6 @@ test_files:
|
|
333
434
|
- test/models/rememberable_test.rb
|
334
435
|
- test/models/serializable_test.rb
|
335
436
|
- test/models/timeoutable_test.rb
|
336
|
-
- test/models/token_authenticatable_test.rb
|
337
437
|
- test/models/trackable_test.rb
|
338
438
|
- test/models/validatable_test.rb
|
339
439
|
- test/models_test.rb
|
@@ -341,23 +441,34 @@ test_files:
|
|
341
441
|
- test/omniauth/url_helpers_test.rb
|
342
442
|
- test/orm/active_record.rb
|
343
443
|
- test/orm/mongoid.rb
|
444
|
+
- test/parameter_sanitizer_test.rb
|
344
445
|
- test/rails_app/Rakefile
|
345
446
|
- test/rails_app/app/active_record/admin.rb
|
346
447
|
- test/rails_app/app/active_record/shim.rb
|
347
448
|
- test/rails_app/app/active_record/user.rb
|
449
|
+
- test/rails_app/app/active_record/user_on_engine.rb
|
450
|
+
- test/rails_app/app/active_record/user_on_main_app.rb
|
451
|
+
- test/rails_app/app/active_record/user_without_email.rb
|
348
452
|
- test/rails_app/app/controllers/admins/sessions_controller.rb
|
349
453
|
- test/rails_app/app/controllers/admins_controller.rb
|
350
454
|
- test/rails_app/app/controllers/application_controller.rb
|
455
|
+
- test/rails_app/app/controllers/application_with_fake_engine.rb
|
456
|
+
- test/rails_app/app/controllers/custom/registrations_controller.rb
|
351
457
|
- test/rails_app/app/controllers/home_controller.rb
|
352
458
|
- test/rails_app/app/controllers/publisher/registrations_controller.rb
|
353
459
|
- test/rails_app/app/controllers/publisher/sessions_controller.rb
|
354
460
|
- test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
|
355
461
|
- test/rails_app/app/controllers/users_controller.rb
|
356
462
|
- test/rails_app/app/helpers/application_helper.rb
|
463
|
+
- test/rails_app/app/mailers/users/from_proc_mailer.rb
|
357
464
|
- test/rails_app/app/mailers/users/mailer.rb
|
465
|
+
- test/rails_app/app/mailers/users/reply_to_mailer.rb
|
358
466
|
- test/rails_app/app/mongoid/admin.rb
|
359
467
|
- test/rails_app/app/mongoid/shim.rb
|
360
468
|
- test/rails_app/app/mongoid/user.rb
|
469
|
+
- test/rails_app/app/mongoid/user_on_engine.rb
|
470
|
+
- test/rails_app/app/mongoid/user_on_main_app.rb
|
471
|
+
- test/rails_app/app/mongoid/user_without_email.rb
|
361
472
|
- test/rails_app/app/views/admins/index.html.erb
|
362
473
|
- test/rails_app/app/views/admins/sessions/new.html.erb
|
363
474
|
- test/rails_app/app/views/home/admin_dashboard.html.erb
|
@@ -366,9 +477,13 @@ test_files:
|
|
366
477
|
- test/rails_app/app/views/home/private.html.erb
|
367
478
|
- test/rails_app/app/views/home/user_dashboard.html.erb
|
368
479
|
- test/rails_app/app/views/layouts/application.html.erb
|
480
|
+
- test/rails_app/app/views/users/edit_form.html.erb
|
369
481
|
- test/rails_app/app/views/users/index.html.erb
|
370
482
|
- test/rails_app/app/views/users/mailer/confirmation_instructions.erb
|
371
483
|
- test/rails_app/app/views/users/sessions/new.html.erb
|
484
|
+
- test/rails_app/bin/bundle
|
485
|
+
- test/rails_app/bin/rails
|
486
|
+
- test/rails_app/bin/rake
|
372
487
|
- test/rails_app/config.ru
|
373
488
|
- test/rails_app/config/application.rb
|
374
489
|
- test/rails_app/config/boot.rb
|
@@ -381,22 +496,28 @@ test_files:
|
|
381
496
|
- test/rails_app/config/initializers/devise.rb
|
382
497
|
- test/rails_app/config/initializers/inflections.rb
|
383
498
|
- test/rails_app/config/initializers/secret_token.rb
|
499
|
+
- test/rails_app/config/initializers/session_store.rb
|
384
500
|
- test/rails_app/config/routes.rb
|
385
501
|
- test/rails_app/db/migrate/20100401102949_create_tables.rb
|
386
502
|
- test/rails_app/db/schema.rb
|
387
503
|
- test/rails_app/lib/shared_admin.rb
|
388
504
|
- test/rails_app/lib/shared_user.rb
|
505
|
+
- test/rails_app/lib/shared_user_without_email.rb
|
506
|
+
- test/rails_app/lib/shared_user_without_omniauth.rb
|
389
507
|
- test/rails_app/public/404.html
|
390
508
|
- test/rails_app/public/422.html
|
391
509
|
- test/rails_app/public/500.html
|
392
510
|
- test/rails_app/public/favicon.ico
|
393
|
-
- test/
|
511
|
+
- test/rails_test.rb
|
394
512
|
- test/routes_test.rb
|
513
|
+
- test/support/action_controller/record_identifier.rb
|
395
514
|
- test/support/assertions.rb
|
396
515
|
- test/support/helpers.rb
|
397
516
|
- test/support/integration.rb
|
398
517
|
- test/support/locale/en.yml
|
518
|
+
- test/support/mongoid.yml
|
399
519
|
- test/support/webrat/integrations/rails.rb
|
400
520
|
- test/test_helper.rb
|
401
521
|
- test/test_helpers_test.rb
|
402
|
-
|
522
|
+
- test/test_models.rb
|
523
|
+
- test/time_helpers.rb
|