devise 4.4.3 → 4.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +81 -2
  3. data/MIT-LICENSE +1 -1
  4. data/README.md +50 -21
  5. data/app/controllers/devise/passwords_controller.rb +1 -0
  6. data/app/controllers/devise/registrations_controller.rb +26 -8
  7. data/app/controllers/devise_controller.rb +1 -1
  8. data/app/helpers/devise_helper.rb +10 -19
  9. data/app/views/devise/confirmations/new.html.erb +1 -1
  10. data/app/views/devise/passwords/edit.html.erb +3 -3
  11. data/app/views/devise/passwords/new.html.erb +1 -1
  12. data/app/views/devise/registrations/edit.html.erb +4 -4
  13. data/app/views/devise/registrations/new.html.erb +3 -3
  14. data/app/views/devise/sessions/new.html.erb +3 -3
  15. data/app/views/devise/shared/_error_messages.html.erb +15 -0
  16. data/app/views/devise/shared/_links.html.erb +7 -7
  17. data/app/views/devise/unlocks/new.html.erb +1 -1
  18. data/config/locales/en.yml +2 -1
  19. data/lib/devise/controllers/helpers.rb +1 -1
  20. data/lib/devise/controllers/sign_in_out.rb +3 -0
  21. data/lib/devise/failure_app.rb +24 -3
  22. data/lib/devise/models/authenticatable.rb +38 -40
  23. data/lib/devise/models/confirmable.rb +16 -1
  24. data/lib/devise/models/database_authenticatable.rb +45 -11
  25. data/lib/devise/models/lockable.rb +2 -2
  26. data/lib/devise/models/registerable.rb +2 -0
  27. data/lib/devise/models/trackable.rb +8 -1
  28. data/lib/devise/models/validatable.rb +1 -1
  29. data/lib/devise/parameter_filter.rb +2 -0
  30. data/lib/devise/parameter_sanitizer.rb +13 -1
  31. data/lib/devise/rails/routes.rb +2 -2
  32. data/lib/devise/secret_key_finder.rb +2 -0
  33. data/lib/devise/strategies/authenticatable.rb +1 -1
  34. data/lib/devise/strategies/database_authenticatable.rb +6 -1
  35. data/lib/devise/test/controller_helpers.rb +1 -1
  36. data/lib/devise/version.rb +1 -1
  37. data/lib/devise.rb +4 -0
  38. data/lib/generators/active_record/devise_generator.rb +9 -9
  39. data/lib/generators/devise/controllers_generator.rb +1 -1
  40. data/lib/generators/devise/orm_helpers.rb +2 -2
  41. data/lib/generators/mongoid/devise_generator.rb +5 -5
  42. data/lib/generators/templates/devise.rb +19 -3
  43. data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +5 -1
  44. data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +10 -2
  45. data/lib/generators/templates/simple_form_for/passwords/new.html.erb +4 -1
  46. data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +11 -3
  47. data/lib/generators/templates/simple_form_for/registrations/new.html.erb +11 -3
  48. data/lib/generators/templates/simple_form_for/sessions/new.html.erb +7 -2
  49. data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +4 -1
  50. metadata +5 -310
  51. data/.gitignore +0 -10
  52. data/.travis.yml +0 -68
  53. data/.yardopts +0 -9
  54. data/CODE_OF_CONDUCT.md +0 -22
  55. data/CONTRIBUTING.md +0 -79
  56. data/Gemfile +0 -39
  57. data/Gemfile.lock +0 -193
  58. data/ISSUE_TEMPLATE.md +0 -19
  59. data/Rakefile +0 -37
  60. data/bin/test +0 -13
  61. data/devise.gemspec +0 -28
  62. data/devise.png +0 -0
  63. data/gemfiles/Gemfile.rails-4.1-stable +0 -32
  64. data/gemfiles/Gemfile.rails-4.1-stable.lock +0 -171
  65. data/gemfiles/Gemfile.rails-4.2-stable +0 -32
  66. data/gemfiles/Gemfile.rails-4.2-stable.lock +0 -192
  67. data/gemfiles/Gemfile.rails-5.0-stable +0 -33
  68. data/gemfiles/Gemfile.rails-5.0-stable.lock +0 -192
  69. data/gemfiles/Gemfile.rails-5.2-rc1 +0 -26
  70. data/gemfiles/Gemfile.rails-5.2-rc1.lock +0 -201
  71. data/guides/bug_report_templates/integration_test.rb +0 -106
  72. data/test/controllers/custom_registrations_controller_test.rb +0 -42
  73. data/test/controllers/custom_strategy_test.rb +0 -66
  74. data/test/controllers/helper_methods_test.rb +0 -24
  75. data/test/controllers/helpers_test.rb +0 -318
  76. data/test/controllers/inherited_controller_i18n_messages_test.rb +0 -53
  77. data/test/controllers/internal_helpers_test.rb +0 -129
  78. data/test/controllers/load_hooks_controller_test.rb +0 -21
  79. data/test/controllers/passwords_controller_test.rb +0 -34
  80. data/test/controllers/sessions_controller_test.rb +0 -108
  81. data/test/controllers/url_helpers_test.rb +0 -67
  82. data/test/delegator_test.rb +0 -21
  83. data/test/devise_test.rb +0 -109
  84. data/test/failure_app_test.rb +0 -340
  85. data/test/generators/active_record_generator_test.rb +0 -130
  86. data/test/generators/controllers_generator_test.rb +0 -50
  87. data/test/generators/devise_generator_test.rb +0 -41
  88. data/test/generators/install_generator_test.rb +0 -26
  89. data/test/generators/mongoid_generator_test.rb +0 -25
  90. data/test/generators/views_generator_test.rb +0 -105
  91. data/test/helpers/devise_helper_test.rb +0 -51
  92. data/test/integration/authenticatable_test.rb +0 -706
  93. data/test/integration/confirmable_test.rb +0 -326
  94. data/test/integration/database_authenticatable_test.rb +0 -97
  95. data/test/integration/http_authenticatable_test.rb +0 -114
  96. data/test/integration/lockable_test.rb +0 -242
  97. data/test/integration/mounted_engine_test.rb +0 -38
  98. data/test/integration/omniauthable_test.rb +0 -148
  99. data/test/integration/recoverable_test.rb +0 -349
  100. data/test/integration/registerable_test.rb +0 -365
  101. data/test/integration/rememberable_test.rb +0 -219
  102. data/test/integration/timeoutable_test.rb +0 -186
  103. data/test/integration/trackable_test.rb +0 -99
  104. data/test/mailers/confirmation_instructions_test.rb +0 -117
  105. data/test/mailers/email_changed_test.rb +0 -132
  106. data/test/mailers/mailer_test.rb +0 -20
  107. data/test/mailers/reset_password_instructions_test.rb +0 -98
  108. data/test/mailers/unlock_instructions_test.rb +0 -93
  109. data/test/mapping_test.rb +0 -136
  110. data/test/models/authenticatable_test.rb +0 -25
  111. data/test/models/confirmable_test.rb +0 -549
  112. data/test/models/database_authenticatable_test.rb +0 -283
  113. data/test/models/lockable_test.rb +0 -352
  114. data/test/models/omniauthable_test.rb +0 -9
  115. data/test/models/recoverable_test.rb +0 -263
  116. data/test/models/registerable_test.rb +0 -9
  117. data/test/models/rememberable_test.rb +0 -184
  118. data/test/models/serializable_test.rb +0 -60
  119. data/test/models/timeoutable_test.rb +0 -53
  120. data/test/models/trackable_test.rb +0 -62
  121. data/test/models/validatable_test.rb +0 -121
  122. data/test/models_test.rb +0 -155
  123. data/test/omniauth/config_test.rb +0 -61
  124. data/test/omniauth/url_helpers_test.rb +0 -53
  125. data/test/orm/active_record.rb +0 -24
  126. data/test/orm/mongoid.rb +0 -15
  127. data/test/parameter_sanitizer_test.rb +0 -77
  128. data/test/rails_app/Rakefile +0 -6
  129. data/test/rails_app/app/active_record/admin.rb +0 -8
  130. data/test/rails_app/app/active_record/shim.rb +0 -4
  131. data/test/rails_app/app/active_record/user.rb +0 -20
  132. data/test/rails_app/app/active_record/user_on_engine.rb +0 -9
  133. data/test/rails_app/app/active_record/user_on_main_app.rb +0 -9
  134. data/test/rails_app/app/active_record/user_with_validations.rb +0 -12
  135. data/test/rails_app/app/active_record/user_without_email.rb +0 -10
  136. data/test/rails_app/app/controllers/admins/sessions_controller.rb +0 -8
  137. data/test/rails_app/app/controllers/admins_controller.rb +0 -8
  138. data/test/rails_app/app/controllers/application_controller.rb +0 -13
  139. data/test/rails_app/app/controllers/application_with_fake_engine.rb +0 -32
  140. data/test/rails_app/app/controllers/custom/registrations_controller.rb +0 -33
  141. data/test/rails_app/app/controllers/home_controller.rb +0 -31
  142. data/test/rails_app/app/controllers/publisher/registrations_controller.rb +0 -4
  143. data/test/rails_app/app/controllers/publisher/sessions_controller.rb +0 -4
  144. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +0 -16
  145. data/test/rails_app/app/controllers/users_controller.rb +0 -33
  146. data/test/rails_app/app/helpers/application_helper.rb +0 -5
  147. data/test/rails_app/app/mailers/users/from_proc_mailer.rb +0 -5
  148. data/test/rails_app/app/mailers/users/mailer.rb +0 -5
  149. data/test/rails_app/app/mailers/users/reply_to_mailer.rb +0 -6
  150. data/test/rails_app/app/mongoid/admin.rb +0 -31
  151. data/test/rails_app/app/mongoid/shim.rb +0 -25
  152. data/test/rails_app/app/mongoid/user.rb +0 -50
  153. data/test/rails_app/app/mongoid/user_on_engine.rb +0 -41
  154. data/test/rails_app/app/mongoid/user_on_main_app.rb +0 -41
  155. data/test/rails_app/app/mongoid/user_with_validations.rb +0 -37
  156. data/test/rails_app/app/mongoid/user_without_email.rb +0 -35
  157. data/test/rails_app/app/views/admins/index.html.erb +0 -1
  158. data/test/rails_app/app/views/admins/sessions/new.html.erb +0 -2
  159. data/test/rails_app/app/views/home/admin_dashboard.html.erb +0 -1
  160. data/test/rails_app/app/views/home/index.html.erb +0 -1
  161. data/test/rails_app/app/views/home/join.html.erb +0 -1
  162. data/test/rails_app/app/views/home/private.html.erb +0 -1
  163. data/test/rails_app/app/views/home/user_dashboard.html.erb +0 -1
  164. data/test/rails_app/app/views/layouts/application.html.erb +0 -24
  165. data/test/rails_app/app/views/users/edit_form.html.erb +0 -1
  166. data/test/rails_app/app/views/users/index.html.erb +0 -1
  167. data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +0 -1
  168. data/test/rails_app/app/views/users/sessions/new.html.erb +0 -1
  169. data/test/rails_app/bin/bundle +0 -3
  170. data/test/rails_app/bin/rails +0 -4
  171. data/test/rails_app/bin/rake +0 -4
  172. data/test/rails_app/config/application.rb +0 -48
  173. data/test/rails_app/config/boot.rb +0 -27
  174. data/test/rails_app/config/database.yml +0 -18
  175. data/test/rails_app/config/environment.rb +0 -7
  176. data/test/rails_app/config/environments/development.rb +0 -32
  177. data/test/rails_app/config/environments/production.rb +0 -88
  178. data/test/rails_app/config/environments/test.rb +0 -47
  179. data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -9
  180. data/test/rails_app/config/initializers/devise.rb +0 -182
  181. data/test/rails_app/config/initializers/inflections.rb +0 -4
  182. data/test/rails_app/config/initializers/secret_token.rb +0 -5
  183. data/test/rails_app/config/initializers/session_store.rb +0 -3
  184. data/test/rails_app/config/routes.rb +0 -128
  185. data/test/rails_app/config.ru +0 -4
  186. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -77
  187. data/test/rails_app/db/schema.rb +0 -57
  188. data/test/rails_app/lib/shared_admin.rb +0 -23
  189. data/test/rails_app/lib/shared_user.rb +0 -32
  190. data/test/rails_app/lib/shared_user_without_email.rb +0 -28
  191. data/test/rails_app/lib/shared_user_without_omniauth.rb +0 -15
  192. data/test/rails_app/public/404.html +0 -26
  193. data/test/rails_app/public/422.html +0 -26
  194. data/test/rails_app/public/500.html +0 -26
  195. data/test/rails_app/public/favicon.ico +0 -0
  196. data/test/rails_test.rb +0 -11
  197. data/test/routes_test.rb +0 -281
  198. data/test/secret_key_finder_test.rb +0 -97
  199. data/test/support/action_controller/record_identifier.rb +0 -12
  200. data/test/support/assertions.rb +0 -30
  201. data/test/support/helpers.rb +0 -83
  202. data/test/support/http_method_compatibility.rb +0 -53
  203. data/test/support/integration.rb +0 -95
  204. data/test/support/locale/en.yml +0 -8
  205. data/test/support/mongoid.yml +0 -6
  206. data/test/support/webrat/integrations/rails.rb +0 -35
  207. data/test/test/controller_helpers_test.rb +0 -193
  208. data/test/test/integration_helpers_test.rb +0 -34
  209. data/test/test_helper.rb +0 -36
  210. data/test/test_models.rb +0 -35
@@ -4,7 +4,10 @@
4
4
  <%= f.error_notification %>
5
5
 
6
6
  <div class="form-inputs">
7
- <%= f.input :email, required: true, autofocus: true %>
7
+ <%= f.input :email,
8
+ required: true,
9
+ autofocus: true,
10
+ input_html: { autocomplete: "email" } %>
8
11
  </div>
9
12
 
10
13
  <div class="form-actions">
@@ -10,9 +10,17 @@
10
10
  <p>Currently waiting confirmation for: <%= resource.unconfirmed_email %></p>
11
11
  <% end %>
12
12
 
13
- <%= f.input :password, autocomplete: "off", hint: "leave it blank if you don't want to change it", required: false %>
14
- <%= f.input :password_confirmation, required: false %>
15
- <%= f.input :current_password, hint: "we need your current password to confirm your changes", required: true %>
13
+ <%= f.input :password,
14
+ hint: "leave it blank if you don't want to change it",
15
+ required: false,
16
+ input_html: { autocomplete: "new-password" } %>
17
+ <%= f.input :password_confirmation,
18
+ required: false,
19
+ input_html: { autocomplete: "new-password" } %>
20
+ <%= f.input :current_password,
21
+ hint: "we need your current password to confirm your changes",
22
+ required: true,
23
+ input_html: { autocomplete: "current-password" } %>
16
24
  </div>
17
25
 
18
26
  <div class="form-actions">
@@ -4,9 +4,17 @@
4
4
  <%= f.error_notification %>
5
5
 
6
6
  <div class="form-inputs">
7
- <%= f.input :email, required: true, autofocus: true %>
8
- <%= f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
9
- <%= f.input :password_confirmation, required: true %>
7
+ <%= f.input :email,
8
+ required: true,
9
+ autofocus: true,
10
+ input_html: { autocomplete: "email" }%>
11
+ <%= f.input :password,
12
+ required: true,
13
+ hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length),
14
+ input_html: { autocomplete: "new-password" } %>
15
+ <%= f.input :password_confirmation,
16
+ required: true,
17
+ input_html: { autocomplete: "new-password" } %>
10
18
  </div>
11
19
 
12
20
  <div class="form-actions">
@@ -2,8 +2,13 @@
2
2
 
3
3
  <%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
4
4
  <div class="form-inputs">
5
- <%= f.input :email, required: false, autofocus: true %>
6
- <%= f.input :password, required: false %>
5
+ <%= f.input :email,
6
+ required: false,
7
+ autofocus: true,
8
+ input_html: { autocomplete: "email" } %>
9
+ <%= f.input :password,
10
+ required: false,
11
+ input_html: { autocomplete: "current-password" } %>
7
12
  <%= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %>
8
13
  </div>
9
14
 
@@ -5,7 +5,10 @@
5
5
  <%= f.full_error :unlock_token %>
6
6
 
7
7
  <div class="form-inputs">
8
- <%= f.input :email, required: true, autofocus: true %>
8
+ <%= f.input :email,
9
+ required: true,
10
+ autofocus: true,
11
+ input_html: { autocomplete: "email" } %>
9
12
  </div>
10
13
 
11
14
  <div class="form-actions">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.3
4
+ version: 4.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Valim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-18 00:00:00.000000000 Z
12
+ date: 2019-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: warden
@@ -60,9 +60,6 @@ dependencies:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: 4.1.0
63
- - - "<"
64
- - !ruby/object:Gem::Version
65
- version: '6.0'
66
63
  type: :runtime
67
64
  prerelease: false
68
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -70,9 +67,6 @@ dependencies:
70
67
  - - ">="
71
68
  - !ruby/object:Gem::Version
72
69
  version: 4.1.0
73
- - - "<"
74
- - !ruby/object:Gem::Version
75
- version: '6.0'
76
70
  - !ruby/object:Gem::Dependency
77
71
  name: responders
78
72
  requirement: !ruby/object:Gem::Requirement
@@ -93,18 +87,9 @@ executables: []
93
87
  extensions: []
94
88
  extra_rdoc_files: []
95
89
  files:
96
- - ".gitignore"
97
- - ".travis.yml"
98
- - ".yardopts"
99
90
  - CHANGELOG.md
100
- - CODE_OF_CONDUCT.md
101
- - CONTRIBUTING.md
102
- - Gemfile
103
- - Gemfile.lock
104
- - ISSUE_TEMPLATE.md
105
91
  - MIT-LICENSE
106
92
  - README.md
107
- - Rakefile
108
93
  - app/controllers/devise/confirmations_controller.rb
109
94
  - app/controllers/devise/omniauth_callbacks_controller.rb
110
95
  - app/controllers/devise/passwords_controller.rb
@@ -125,21 +110,10 @@ files:
125
110
  - app/views/devise/registrations/edit.html.erb
126
111
  - app/views/devise/registrations/new.html.erb
127
112
  - app/views/devise/sessions/new.html.erb
113
+ - app/views/devise/shared/_error_messages.html.erb
128
114
  - app/views/devise/shared/_links.html.erb
129
115
  - app/views/devise/unlocks/new.html.erb
130
- - bin/test
131
116
  - config/locales/en.yml
132
- - devise.gemspec
133
- - devise.png
134
- - gemfiles/Gemfile.rails-4.1-stable
135
- - gemfiles/Gemfile.rails-4.1-stable.lock
136
- - gemfiles/Gemfile.rails-4.2-stable
137
- - gemfiles/Gemfile.rails-4.2-stable.lock
138
- - gemfiles/Gemfile.rails-5.0-stable
139
- - gemfiles/Gemfile.rails-5.0-stable.lock
140
- - gemfiles/Gemfile.rails-5.2-rc1
141
- - gemfiles/Gemfile.rails-5.2-rc1.lock
142
- - guides/bug_report_templates/integration_test.rb
143
117
  - lib/devise.rb
144
118
  - lib/devise/controllers/helpers.rb
145
119
  - lib/devise/controllers/rememberable.rb
@@ -224,145 +198,6 @@ files:
224
198
  - lib/generators/templates/simple_form_for/registrations/new.html.erb
225
199
  - lib/generators/templates/simple_form_for/sessions/new.html.erb
226
200
  - lib/generators/templates/simple_form_for/unlocks/new.html.erb
227
- - test/controllers/custom_registrations_controller_test.rb
228
- - test/controllers/custom_strategy_test.rb
229
- - test/controllers/helper_methods_test.rb
230
- - test/controllers/helpers_test.rb
231
- - test/controllers/inherited_controller_i18n_messages_test.rb
232
- - test/controllers/internal_helpers_test.rb
233
- - test/controllers/load_hooks_controller_test.rb
234
- - test/controllers/passwords_controller_test.rb
235
- - test/controllers/sessions_controller_test.rb
236
- - test/controllers/url_helpers_test.rb
237
- - test/delegator_test.rb
238
- - test/devise_test.rb
239
- - test/failure_app_test.rb
240
- - test/generators/active_record_generator_test.rb
241
- - test/generators/controllers_generator_test.rb
242
- - test/generators/devise_generator_test.rb
243
- - test/generators/install_generator_test.rb
244
- - test/generators/mongoid_generator_test.rb
245
- - test/generators/views_generator_test.rb
246
- - test/helpers/devise_helper_test.rb
247
- - test/integration/authenticatable_test.rb
248
- - test/integration/confirmable_test.rb
249
- - test/integration/database_authenticatable_test.rb
250
- - test/integration/http_authenticatable_test.rb
251
- - test/integration/lockable_test.rb
252
- - test/integration/mounted_engine_test.rb
253
- - test/integration/omniauthable_test.rb
254
- - test/integration/recoverable_test.rb
255
- - test/integration/registerable_test.rb
256
- - test/integration/rememberable_test.rb
257
- - test/integration/timeoutable_test.rb
258
- - test/integration/trackable_test.rb
259
- - test/mailers/confirmation_instructions_test.rb
260
- - test/mailers/email_changed_test.rb
261
- - test/mailers/mailer_test.rb
262
- - test/mailers/reset_password_instructions_test.rb
263
- - test/mailers/unlock_instructions_test.rb
264
- - test/mapping_test.rb
265
- - test/models/authenticatable_test.rb
266
- - test/models/confirmable_test.rb
267
- - test/models/database_authenticatable_test.rb
268
- - test/models/lockable_test.rb
269
- - test/models/omniauthable_test.rb
270
- - test/models/recoverable_test.rb
271
- - test/models/registerable_test.rb
272
- - test/models/rememberable_test.rb
273
- - test/models/serializable_test.rb
274
- - test/models/timeoutable_test.rb
275
- - test/models/trackable_test.rb
276
- - test/models/validatable_test.rb
277
- - test/models_test.rb
278
- - test/omniauth/config_test.rb
279
- - test/omniauth/url_helpers_test.rb
280
- - test/orm/active_record.rb
281
- - test/orm/mongoid.rb
282
- - test/parameter_sanitizer_test.rb
283
- - test/rails_app/Rakefile
284
- - test/rails_app/app/active_record/admin.rb
285
- - test/rails_app/app/active_record/shim.rb
286
- - test/rails_app/app/active_record/user.rb
287
- - test/rails_app/app/active_record/user_on_engine.rb
288
- - test/rails_app/app/active_record/user_on_main_app.rb
289
- - test/rails_app/app/active_record/user_with_validations.rb
290
- - test/rails_app/app/active_record/user_without_email.rb
291
- - test/rails_app/app/controllers/admins/sessions_controller.rb
292
- - test/rails_app/app/controllers/admins_controller.rb
293
- - test/rails_app/app/controllers/application_controller.rb
294
- - test/rails_app/app/controllers/application_with_fake_engine.rb
295
- - test/rails_app/app/controllers/custom/registrations_controller.rb
296
- - test/rails_app/app/controllers/home_controller.rb
297
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
298
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
299
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
300
- - test/rails_app/app/controllers/users_controller.rb
301
- - test/rails_app/app/helpers/application_helper.rb
302
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
303
- - test/rails_app/app/mailers/users/mailer.rb
304
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
305
- - test/rails_app/app/mongoid/admin.rb
306
- - test/rails_app/app/mongoid/shim.rb
307
- - test/rails_app/app/mongoid/user.rb
308
- - test/rails_app/app/mongoid/user_on_engine.rb
309
- - test/rails_app/app/mongoid/user_on_main_app.rb
310
- - test/rails_app/app/mongoid/user_with_validations.rb
311
- - test/rails_app/app/mongoid/user_without_email.rb
312
- - test/rails_app/app/views/admins/index.html.erb
313
- - test/rails_app/app/views/admins/sessions/new.html.erb
314
- - test/rails_app/app/views/home/admin_dashboard.html.erb
315
- - test/rails_app/app/views/home/index.html.erb
316
- - test/rails_app/app/views/home/join.html.erb
317
- - test/rails_app/app/views/home/private.html.erb
318
- - test/rails_app/app/views/home/user_dashboard.html.erb
319
- - test/rails_app/app/views/layouts/application.html.erb
320
- - test/rails_app/app/views/users/edit_form.html.erb
321
- - test/rails_app/app/views/users/index.html.erb
322
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
323
- - test/rails_app/app/views/users/sessions/new.html.erb
324
- - test/rails_app/bin/bundle
325
- - test/rails_app/bin/rails
326
- - test/rails_app/bin/rake
327
- - test/rails_app/config.ru
328
- - test/rails_app/config/application.rb
329
- - test/rails_app/config/boot.rb
330
- - test/rails_app/config/database.yml
331
- - test/rails_app/config/environment.rb
332
- - test/rails_app/config/environments/development.rb
333
- - test/rails_app/config/environments/production.rb
334
- - test/rails_app/config/environments/test.rb
335
- - test/rails_app/config/initializers/backtrace_silencers.rb
336
- - test/rails_app/config/initializers/devise.rb
337
- - test/rails_app/config/initializers/inflections.rb
338
- - test/rails_app/config/initializers/secret_token.rb
339
- - test/rails_app/config/initializers/session_store.rb
340
- - test/rails_app/config/routes.rb
341
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
342
- - test/rails_app/db/schema.rb
343
- - test/rails_app/lib/shared_admin.rb
344
- - test/rails_app/lib/shared_user.rb
345
- - test/rails_app/lib/shared_user_without_email.rb
346
- - test/rails_app/lib/shared_user_without_omniauth.rb
347
- - test/rails_app/public/404.html
348
- - test/rails_app/public/422.html
349
- - test/rails_app/public/500.html
350
- - test/rails_app/public/favicon.ico
351
- - test/rails_test.rb
352
- - test/routes_test.rb
353
- - test/secret_key_finder_test.rb
354
- - test/support/action_controller/record_identifier.rb
355
- - test/support/assertions.rb
356
- - test/support/helpers.rb
357
- - test/support/http_method_compatibility.rb
358
- - test/support/integration.rb
359
- - test/support/locale/en.yml
360
- - test/support/mongoid.yml
361
- - test/support/webrat/integrations/rails.rb
362
- - test/test/controller_helpers_test.rb
363
- - test/test/integration_helpers_test.rb
364
- - test/test_helper.rb
365
- - test/test_models.rb
366
201
  homepage: https://github.com/plataformatec/devise
367
202
  licenses:
368
203
  - MIT
@@ -382,148 +217,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
382
217
  - !ruby/object:Gem::Version
383
218
  version: '0'
384
219
  requirements: []
385
- rubyforge_project:
386
- rubygems_version: 2.7.3
220
+ rubygems_version: 3.0.6
387
221
  signing_key:
388
222
  specification_version: 4
389
223
  summary: Flexible authentication solution for Rails with Warden
390
- test_files:
391
- - test/controllers/custom_registrations_controller_test.rb
392
- - test/controllers/custom_strategy_test.rb
393
- - test/controllers/helper_methods_test.rb
394
- - test/controllers/helpers_test.rb
395
- - test/controllers/inherited_controller_i18n_messages_test.rb
396
- - test/controllers/internal_helpers_test.rb
397
- - test/controllers/load_hooks_controller_test.rb
398
- - test/controllers/passwords_controller_test.rb
399
- - test/controllers/sessions_controller_test.rb
400
- - test/controllers/url_helpers_test.rb
401
- - test/delegator_test.rb
402
- - test/devise_test.rb
403
- - test/failure_app_test.rb
404
- - test/generators/active_record_generator_test.rb
405
- - test/generators/controllers_generator_test.rb
406
- - test/generators/devise_generator_test.rb
407
- - test/generators/install_generator_test.rb
408
- - test/generators/mongoid_generator_test.rb
409
- - test/generators/views_generator_test.rb
410
- - test/helpers/devise_helper_test.rb
411
- - test/integration/authenticatable_test.rb
412
- - test/integration/confirmable_test.rb
413
- - test/integration/database_authenticatable_test.rb
414
- - test/integration/http_authenticatable_test.rb
415
- - test/integration/lockable_test.rb
416
- - test/integration/mounted_engine_test.rb
417
- - test/integration/omniauthable_test.rb
418
- - test/integration/recoverable_test.rb
419
- - test/integration/registerable_test.rb
420
- - test/integration/rememberable_test.rb
421
- - test/integration/timeoutable_test.rb
422
- - test/integration/trackable_test.rb
423
- - test/mailers/confirmation_instructions_test.rb
424
- - test/mailers/email_changed_test.rb
425
- - test/mailers/mailer_test.rb
426
- - test/mailers/reset_password_instructions_test.rb
427
- - test/mailers/unlock_instructions_test.rb
428
- - test/mapping_test.rb
429
- - test/models/authenticatable_test.rb
430
- - test/models/confirmable_test.rb
431
- - test/models/database_authenticatable_test.rb
432
- - test/models/lockable_test.rb
433
- - test/models/omniauthable_test.rb
434
- - test/models/recoverable_test.rb
435
- - test/models/registerable_test.rb
436
- - test/models/rememberable_test.rb
437
- - test/models/serializable_test.rb
438
- - test/models/timeoutable_test.rb
439
- - test/models/trackable_test.rb
440
- - test/models/validatable_test.rb
441
- - test/models_test.rb
442
- - test/omniauth/config_test.rb
443
- - test/omniauth/url_helpers_test.rb
444
- - test/orm/active_record.rb
445
- - test/orm/mongoid.rb
446
- - test/parameter_sanitizer_test.rb
447
- - test/rails_app/Rakefile
448
- - test/rails_app/app/active_record/admin.rb
449
- - test/rails_app/app/active_record/shim.rb
450
- - test/rails_app/app/active_record/user.rb
451
- - test/rails_app/app/active_record/user_on_engine.rb
452
- - test/rails_app/app/active_record/user_on_main_app.rb
453
- - test/rails_app/app/active_record/user_with_validations.rb
454
- - test/rails_app/app/active_record/user_without_email.rb
455
- - test/rails_app/app/controllers/admins/sessions_controller.rb
456
- - test/rails_app/app/controllers/admins_controller.rb
457
- - test/rails_app/app/controllers/application_controller.rb
458
- - test/rails_app/app/controllers/application_with_fake_engine.rb
459
- - test/rails_app/app/controllers/custom/registrations_controller.rb
460
- - test/rails_app/app/controllers/home_controller.rb
461
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
462
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
463
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
464
- - test/rails_app/app/controllers/users_controller.rb
465
- - test/rails_app/app/helpers/application_helper.rb
466
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
467
- - test/rails_app/app/mailers/users/mailer.rb
468
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
469
- - test/rails_app/app/mongoid/admin.rb
470
- - test/rails_app/app/mongoid/shim.rb
471
- - test/rails_app/app/mongoid/user.rb
472
- - test/rails_app/app/mongoid/user_on_engine.rb
473
- - test/rails_app/app/mongoid/user_on_main_app.rb
474
- - test/rails_app/app/mongoid/user_with_validations.rb
475
- - test/rails_app/app/mongoid/user_without_email.rb
476
- - test/rails_app/app/views/admins/index.html.erb
477
- - test/rails_app/app/views/admins/sessions/new.html.erb
478
- - test/rails_app/app/views/home/admin_dashboard.html.erb
479
- - test/rails_app/app/views/home/index.html.erb
480
- - test/rails_app/app/views/home/join.html.erb
481
- - test/rails_app/app/views/home/private.html.erb
482
- - test/rails_app/app/views/home/user_dashboard.html.erb
483
- - test/rails_app/app/views/layouts/application.html.erb
484
- - test/rails_app/app/views/users/edit_form.html.erb
485
- - test/rails_app/app/views/users/index.html.erb
486
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
487
- - test/rails_app/app/views/users/sessions/new.html.erb
488
- - test/rails_app/bin/bundle
489
- - test/rails_app/bin/rails
490
- - test/rails_app/bin/rake
491
- - test/rails_app/config.ru
492
- - test/rails_app/config/application.rb
493
- - test/rails_app/config/boot.rb
494
- - test/rails_app/config/database.yml
495
- - test/rails_app/config/environment.rb
496
- - test/rails_app/config/environments/development.rb
497
- - test/rails_app/config/environments/production.rb
498
- - test/rails_app/config/environments/test.rb
499
- - test/rails_app/config/initializers/backtrace_silencers.rb
500
- - test/rails_app/config/initializers/devise.rb
501
- - test/rails_app/config/initializers/inflections.rb
502
- - test/rails_app/config/initializers/secret_token.rb
503
- - test/rails_app/config/initializers/session_store.rb
504
- - test/rails_app/config/routes.rb
505
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
506
- - test/rails_app/db/schema.rb
507
- - test/rails_app/lib/shared_admin.rb
508
- - test/rails_app/lib/shared_user.rb
509
- - test/rails_app/lib/shared_user_without_email.rb
510
- - test/rails_app/lib/shared_user_without_omniauth.rb
511
- - test/rails_app/public/404.html
512
- - test/rails_app/public/422.html
513
- - test/rails_app/public/500.html
514
- - test/rails_app/public/favicon.ico
515
- - test/rails_test.rb
516
- - test/routes_test.rb
517
- - test/secret_key_finder_test.rb
518
- - test/support/action_controller/record_identifier.rb
519
- - test/support/assertions.rb
520
- - test/support/helpers.rb
521
- - test/support/http_method_compatibility.rb
522
- - test/support/integration.rb
523
- - test/support/locale/en.yml
524
- - test/support/mongoid.yml
525
- - test/support/webrat/integrations/rails.rb
526
- - test/test/controller_helpers_test.rb
527
- - test/test/integration_helpers_test.rb
528
- - test/test_helper.rb
529
- - test/test_models.rb
224
+ test_files: []
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- test/rails_app/log/*
2
- test/rails_app/tmp/*
3
- *~
4
- coverage/*
5
- *.sqlite3
6
- .bundle
7
- rdoc/*
8
- pkg
9
- log
10
- test/tmp/*
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
@@ -1,9 +0,0 @@
1
- --protected
2
- --no-private
3
- --embed-mixin ClassMethods
4
- -
5
- README.md
6
- CHANGELOG.rdoc
7
- CONTRIBUTING.md
8
- MIT-LICENSE
9
-
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: