devise 3.5.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 (256) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +256 -1099
  3. data/MIT-LICENSE +1 -1
  4. data/README.md +254 -67
  5. data/app/controllers/devise/confirmations_controller.rb +3 -1
  6. data/app/controllers/devise/omniauth_callbacks_controller.rb +8 -6
  7. data/app/controllers/devise/passwords_controller.rb +7 -4
  8. data/app/controllers/devise/registrations_controller.rb +39 -18
  9. data/app/controllers/devise/sessions_controller.rb +9 -7
  10. data/app/controllers/devise/unlocks_controller.rb +4 -2
  11. data/app/controllers/devise_controller.rb +23 -10
  12. data/app/helpers/devise_helper.rb +12 -19
  13. data/app/mailers/devise/mailer.rb +6 -0
  14. data/app/views/devise/confirmations/new.html.erb +2 -2
  15. data/app/views/devise/mailer/email_changed.html.erb +7 -0
  16. data/app/views/devise/passwords/edit.html.erb +3 -3
  17. data/app/views/devise/passwords/new.html.erb +2 -2
  18. data/app/views/devise/registrations/edit.html.erb +9 -5
  19. data/app/views/devise/registrations/new.html.erb +4 -4
  20. data/app/views/devise/sessions/new.html.erb +4 -4
  21. data/app/views/devise/shared/_error_messages.html.erb +15 -0
  22. data/app/views/devise/shared/_links.html.erb +7 -7
  23. data/app/views/devise/unlocks/new.html.erb +2 -2
  24. data/config/locales/en.yml +4 -1
  25. data/lib/devise/controllers/helpers.rb +23 -20
  26. data/lib/devise/controllers/rememberable.rb +11 -2
  27. data/lib/devise/controllers/scoped_views.rb +2 -0
  28. data/lib/devise/controllers/sign_in_out.rb +34 -11
  29. data/lib/devise/controllers/store_location.rb +25 -7
  30. data/lib/devise/controllers/url_helpers.rb +2 -0
  31. data/lib/devise/delegator.rb +2 -0
  32. data/lib/devise/encryptor.rb +6 -4
  33. data/lib/devise/failure_app.rb +75 -37
  34. data/lib/devise/hooks/activatable.rb +2 -0
  35. data/lib/devise/hooks/csrf_cleaner.rb +2 -0
  36. data/lib/devise/hooks/forgetable.rb +2 -0
  37. data/lib/devise/hooks/lockable.rb +6 -1
  38. data/lib/devise/hooks/proxy.rb +3 -1
  39. data/lib/devise/hooks/rememberable.rb +2 -0
  40. data/lib/devise/hooks/timeoutable.rb +5 -2
  41. data/lib/devise/hooks/trackable.rb +2 -0
  42. data/lib/devise/mailers/helpers.rb +7 -4
  43. data/lib/devise/mapping.rb +2 -0
  44. data/lib/devise/models/authenticatable.rb +51 -26
  45. data/lib/devise/models/confirmable.rb +89 -27
  46. data/lib/devise/models/database_authenticatable.rb +88 -21
  47. data/lib/devise/models/lockable.rb +15 -5
  48. data/lib/devise/models/omniauthable.rb +2 -0
  49. data/lib/devise/models/recoverable.rb +32 -20
  50. data/lib/devise/models/registerable.rb +4 -0
  51. data/lib/devise/models/rememberable.rb +42 -26
  52. data/lib/devise/models/timeoutable.rb +2 -6
  53. data/lib/devise/models/trackable.rb +15 -1
  54. data/lib/devise/models/validatable.rb +10 -3
  55. data/lib/devise/models.rb +3 -1
  56. data/lib/devise/modules.rb +2 -0
  57. data/lib/devise/omniauth/config.rb +2 -0
  58. data/lib/devise/omniauth/url_helpers.rb +14 -5
  59. data/lib/devise/omniauth.rb +2 -0
  60. data/lib/devise/orm/active_record.rb +5 -1
  61. data/lib/devise/orm/mongoid.rb +6 -2
  62. data/lib/devise/parameter_filter.rb +4 -0
  63. data/lib/devise/parameter_sanitizer.rb +139 -65
  64. data/lib/devise/rails/routes.rb +44 -33
  65. data/lib/devise/rails/warden_compat.rb +3 -10
  66. data/lib/devise/rails.rb +7 -16
  67. data/lib/devise/secret_key_finder.rb +27 -0
  68. data/lib/devise/strategies/authenticatable.rb +3 -1
  69. data/lib/devise/strategies/base.rb +2 -0
  70. data/lib/devise/strategies/database_authenticatable.rb +11 -4
  71. data/lib/devise/strategies/rememberable.rb +5 -6
  72. data/lib/devise/test/controller_helpers.rb +165 -0
  73. data/lib/devise/test/integration_helpers.rb +63 -0
  74. data/lib/devise/test_helpers.rb +7 -124
  75. data/lib/devise/time_inflector.rb +2 -0
  76. data/lib/devise/token_generator.rb +3 -41
  77. data/lib/devise/version.rb +3 -1
  78. data/lib/devise.rb +61 -40
  79. data/lib/generators/active_record/devise_generator.rb +29 -10
  80. data/lib/generators/active_record/templates/migration.rb +4 -2
  81. data/lib/generators/active_record/templates/migration_existing.rb +4 -2
  82. data/lib/generators/devise/controllers_generator.rb +3 -1
  83. data/lib/generators/devise/devise_generator.rb +4 -2
  84. data/lib/generators/devise/install_generator.rb +17 -0
  85. data/lib/generators/devise/orm_helpers.rb +10 -21
  86. data/lib/generators/devise/views_generator.rb +7 -8
  87. data/lib/generators/mongoid/devise_generator.rb +7 -5
  88. data/lib/generators/templates/README +1 -8
  89. data/lib/generators/templates/controllers/confirmations_controller.rb +2 -0
  90. data/lib/generators/templates/controllers/omniauth_callbacks_controller.rb +2 -0
  91. data/lib/generators/templates/controllers/passwords_controller.rb +2 -0
  92. data/lib/generators/templates/controllers/registrations_controller.rb +6 -4
  93. data/lib/generators/templates/controllers/sessions_controller.rb +4 -2
  94. data/lib/generators/templates/controllers/unlocks_controller.rb +2 -0
  95. data/lib/generators/templates/devise.rb +50 -20
  96. data/lib/generators/templates/markerb/email_changed.markerb +7 -0
  97. data/lib/generators/templates/markerb/password_change.markerb +2 -2
  98. data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +5 -1
  99. data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +10 -2
  100. data/lib/generators/templates/simple_form_for/passwords/new.html.erb +4 -1
  101. data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +11 -3
  102. data/lib/generators/templates/simple_form_for/registrations/new.html.erb +11 -3
  103. data/lib/generators/templates/simple_form_for/sessions/new.html.erb +7 -2
  104. data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +4 -1
  105. metadata +13 -310
  106. data/.gitignore +0 -10
  107. data/.travis.yml +0 -44
  108. data/.yardopts +0 -9
  109. data/CODE_OF_CONDUCT.md +0 -22
  110. data/CONTRIBUTING.md +0 -16
  111. data/Gemfile +0 -29
  112. data/Gemfile.lock +0 -183
  113. data/Rakefile +0 -36
  114. data/devise.gemspec +0 -27
  115. data/devise.png +0 -0
  116. data/gemfiles/Gemfile.rails-3.2-stable +0 -29
  117. data/gemfiles/Gemfile.rails-3.2-stable.lock +0 -172
  118. data/gemfiles/Gemfile.rails-4.0-stable +0 -29
  119. data/gemfiles/Gemfile.rails-4.0-stable.lock +0 -166
  120. data/gemfiles/Gemfile.rails-4.1-stable +0 -29
  121. data/gemfiles/Gemfile.rails-4.1-stable.lock +0 -172
  122. data/gemfiles/Gemfile.rails-4.2-stable +0 -29
  123. data/gemfiles/Gemfile.rails-4.2-stable.lock +0 -194
  124. data/script/cached-bundle +0 -49
  125. data/script/s3-put +0 -71
  126. data/test/controllers/custom_registrations_controller_test.rb +0 -40
  127. data/test/controllers/custom_strategy_test.rb +0 -62
  128. data/test/controllers/helper_methods_test.rb +0 -21
  129. data/test/controllers/helpers_test.rb +0 -316
  130. data/test/controllers/inherited_controller_i18n_messages_test.rb +0 -51
  131. data/test/controllers/internal_helpers_test.rb +0 -129
  132. data/test/controllers/load_hooks_controller_test.rb +0 -19
  133. data/test/controllers/passwords_controller_test.rb +0 -31
  134. data/test/controllers/sessions_controller_test.rb +0 -103
  135. data/test/controllers/url_helpers_test.rb +0 -65
  136. data/test/delegator_test.rb +0 -19
  137. data/test/devise_test.rb +0 -107
  138. data/test/failure_app_test.rb +0 -315
  139. data/test/generators/active_record_generator_test.rb +0 -109
  140. data/test/generators/controllers_generator_test.rb +0 -48
  141. data/test/generators/devise_generator_test.rb +0 -39
  142. data/test/generators/install_generator_test.rb +0 -13
  143. data/test/generators/mongoid_generator_test.rb +0 -23
  144. data/test/generators/views_generator_test.rb +0 -103
  145. data/test/helpers/devise_helper_test.rb +0 -49
  146. data/test/integration/authenticatable_test.rb +0 -729
  147. data/test/integration/confirmable_test.rb +0 -324
  148. data/test/integration/database_authenticatable_test.rb +0 -95
  149. data/test/integration/http_authenticatable_test.rb +0 -105
  150. data/test/integration/lockable_test.rb +0 -239
  151. data/test/integration/omniauthable_test.rb +0 -135
  152. data/test/integration/recoverable_test.rb +0 -347
  153. data/test/integration/registerable_test.rb +0 -359
  154. data/test/integration/rememberable_test.rb +0 -176
  155. data/test/integration/timeoutable_test.rb +0 -184
  156. data/test/integration/trackable_test.rb +0 -92
  157. data/test/mailers/confirmation_instructions_test.rb +0 -115
  158. data/test/mailers/reset_password_instructions_test.rb +0 -96
  159. data/test/mailers/unlock_instructions_test.rb +0 -91
  160. data/test/mapping_test.rb +0 -134
  161. data/test/models/authenticatable_test.rb +0 -23
  162. data/test/models/confirmable_test.rb +0 -489
  163. data/test/models/database_authenticatable_test.rb +0 -269
  164. data/test/models/lockable_test.rb +0 -328
  165. data/test/models/omniauthable_test.rb +0 -7
  166. data/test/models/recoverable_test.rb +0 -251
  167. data/test/models/registerable_test.rb +0 -7
  168. data/test/models/rememberable_test.rb +0 -204
  169. data/test/models/serializable_test.rb +0 -49
  170. data/test/models/timeoutable_test.rb +0 -51
  171. data/test/models/trackable_test.rb +0 -41
  172. data/test/models/validatable_test.rb +0 -127
  173. data/test/models_test.rb +0 -153
  174. data/test/omniauth/config_test.rb +0 -57
  175. data/test/omniauth/url_helpers_test.rb +0 -54
  176. data/test/orm/active_record.rb +0 -10
  177. data/test/orm/mongoid.rb +0 -13
  178. data/test/parameter_sanitizer_test.rb +0 -81
  179. data/test/rails_app/Rakefile +0 -6
  180. data/test/rails_app/app/active_record/admin.rb +0 -6
  181. data/test/rails_app/app/active_record/shim.rb +0 -2
  182. data/test/rails_app/app/active_record/user.rb +0 -6
  183. data/test/rails_app/app/active_record/user_on_engine.rb +0 -7
  184. data/test/rails_app/app/active_record/user_on_main_app.rb +0 -7
  185. data/test/rails_app/app/active_record/user_without_email.rb +0 -8
  186. data/test/rails_app/app/controllers/admins/sessions_controller.rb +0 -6
  187. data/test/rails_app/app/controllers/admins_controller.rb +0 -6
  188. data/test/rails_app/app/controllers/application_controller.rb +0 -12
  189. data/test/rails_app/app/controllers/application_with_fake_engine.rb +0 -30
  190. data/test/rails_app/app/controllers/custom/registrations_controller.rb +0 -31
  191. data/test/rails_app/app/controllers/home_controller.rb +0 -25
  192. data/test/rails_app/app/controllers/publisher/registrations_controller.rb +0 -2
  193. data/test/rails_app/app/controllers/publisher/sessions_controller.rb +0 -2
  194. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +0 -14
  195. data/test/rails_app/app/controllers/users_controller.rb +0 -31
  196. data/test/rails_app/app/helpers/application_helper.rb +0 -3
  197. data/test/rails_app/app/mailers/users/from_proc_mailer.rb +0 -3
  198. data/test/rails_app/app/mailers/users/mailer.rb +0 -3
  199. data/test/rails_app/app/mailers/users/reply_to_mailer.rb +0 -4
  200. data/test/rails_app/app/mongoid/admin.rb +0 -29
  201. data/test/rails_app/app/mongoid/shim.rb +0 -23
  202. data/test/rails_app/app/mongoid/user.rb +0 -39
  203. data/test/rails_app/app/mongoid/user_on_engine.rb +0 -39
  204. data/test/rails_app/app/mongoid/user_on_main_app.rb +0 -39
  205. data/test/rails_app/app/mongoid/user_without_email.rb +0 -33
  206. data/test/rails_app/app/views/admins/index.html.erb +0 -1
  207. data/test/rails_app/app/views/admins/sessions/new.html.erb +0 -2
  208. data/test/rails_app/app/views/home/admin_dashboard.html.erb +0 -1
  209. data/test/rails_app/app/views/home/index.html.erb +0 -1
  210. data/test/rails_app/app/views/home/join.html.erb +0 -1
  211. data/test/rails_app/app/views/home/private.html.erb +0 -1
  212. data/test/rails_app/app/views/home/user_dashboard.html.erb +0 -1
  213. data/test/rails_app/app/views/layouts/application.html.erb +0 -24
  214. data/test/rails_app/app/views/users/edit_form.html.erb +0 -1
  215. data/test/rails_app/app/views/users/index.html.erb +0 -1
  216. data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +0 -1
  217. data/test/rails_app/app/views/users/sessions/new.html.erb +0 -1
  218. data/test/rails_app/bin/bundle +0 -3
  219. data/test/rails_app/bin/rails +0 -4
  220. data/test/rails_app/bin/rake +0 -4
  221. data/test/rails_app/config/application.rb +0 -40
  222. data/test/rails_app/config/boot.rb +0 -14
  223. data/test/rails_app/config/database.yml +0 -18
  224. data/test/rails_app/config/environment.rb +0 -5
  225. data/test/rails_app/config/environments/development.rb +0 -30
  226. data/test/rails_app/config/environments/production.rb +0 -84
  227. data/test/rails_app/config/environments/test.rb +0 -41
  228. data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -7
  229. data/test/rails_app/config/initializers/devise.rb +0 -180
  230. data/test/rails_app/config/initializers/inflections.rb +0 -2
  231. data/test/rails_app/config/initializers/secret_token.rb +0 -8
  232. data/test/rails_app/config/initializers/session_store.rb +0 -1
  233. data/test/rails_app/config/routes.rb +0 -125
  234. data/test/rails_app/config.ru +0 -4
  235. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -71
  236. data/test/rails_app/db/schema.rb +0 -55
  237. data/test/rails_app/lib/shared_admin.rb +0 -17
  238. data/test/rails_app/lib/shared_user.rb +0 -29
  239. data/test/rails_app/lib/shared_user_without_email.rb +0 -26
  240. data/test/rails_app/lib/shared_user_without_omniauth.rb +0 -13
  241. data/test/rails_app/public/404.html +0 -26
  242. data/test/rails_app/public/422.html +0 -26
  243. data/test/rails_app/public/500.html +0 -26
  244. data/test/rails_app/public/favicon.ico +0 -0
  245. data/test/rails_test.rb +0 -9
  246. data/test/routes_test.rb +0 -264
  247. data/test/support/action_controller/record_identifier.rb +0 -10
  248. data/test/support/assertions.rb +0 -39
  249. data/test/support/helpers.rb +0 -77
  250. data/test/support/integration.rb +0 -92
  251. data/test/support/locale/en.yml +0 -8
  252. data/test/support/mongoid.yml +0 -6
  253. data/test/support/webrat/integrations/rails.rb +0 -24
  254. data/test/test_helper.rb +0 -34
  255. data/test/test_helpers_test.rb +0 -178
  256. data/test/test_models.rb +0 -33
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: 3.5.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: 2015-12-10 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
@@ -53,40 +53,20 @@ dependencies:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
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'
70
56
  - !ruby/object:Gem::Dependency
71
57
  name: railties
72
58
  requirement: !ruby/object:Gem::Requirement
73
59
  requirements:
74
60
  - - ">="
75
61
  - !ruby/object:Gem::Version
76
- version: 3.2.6
77
- - - "<"
78
- - !ruby/object:Gem::Version
79
- version: '5'
62
+ version: 4.1.0
80
63
  type: :runtime
81
64
  prerelease: false
82
65
  version_requirements: !ruby/object:Gem::Requirement
83
66
  requirements:
84
67
  - - ">="
85
68
  - !ruby/object:Gem::Version
86
- version: 3.2.6
87
- - - "<"
88
- - !ruby/object:Gem::Version
89
- version: '5'
69
+ version: 4.1.0
90
70
  - !ruby/object:Gem::Dependency
91
71
  name: responders
92
72
  requirement: !ruby/object:Gem::Requirement
@@ -107,17 +87,9 @@ executables: []
107
87
  extensions: []
108
88
  extra_rdoc_files: []
109
89
  files:
110
- - ".gitignore"
111
- - ".travis.yml"
112
- - ".yardopts"
113
90
  - CHANGELOG.md
114
- - CODE_OF_CONDUCT.md
115
- - CONTRIBUTING.md
116
- - Gemfile
117
- - Gemfile.lock
118
91
  - MIT-LICENSE
119
92
  - README.md
120
- - Rakefile
121
93
  - app/controllers/devise/confirmations_controller.rb
122
94
  - app/controllers/devise/omniauth_callbacks_controller.rb
123
95
  - app/controllers/devise/passwords_controller.rb
@@ -129,6 +101,7 @@ files:
129
101
  - app/mailers/devise/mailer.rb
130
102
  - app/views/devise/confirmations/new.html.erb
131
103
  - app/views/devise/mailer/confirmation_instructions.html.erb
104
+ - app/views/devise/mailer/email_changed.html.erb
132
105
  - app/views/devise/mailer/password_change.html.erb
133
106
  - app/views/devise/mailer/reset_password_instructions.html.erb
134
107
  - app/views/devise/mailer/unlock_instructions.html.erb
@@ -137,19 +110,10 @@ files:
137
110
  - app/views/devise/registrations/edit.html.erb
138
111
  - app/views/devise/registrations/new.html.erb
139
112
  - app/views/devise/sessions/new.html.erb
113
+ - app/views/devise/shared/_error_messages.html.erb
140
114
  - app/views/devise/shared/_links.html.erb
141
115
  - app/views/devise/unlocks/new.html.erb
142
116
  - config/locales/en.yml
143
- - devise.gemspec
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
153
117
  - lib/devise.rb
154
118
  - lib/devise/controllers/helpers.rb
155
119
  - lib/devise/controllers/rememberable.rb
@@ -193,10 +157,13 @@ files:
193
157
  - lib/devise/rails.rb
194
158
  - lib/devise/rails/routes.rb
195
159
  - lib/devise/rails/warden_compat.rb
160
+ - lib/devise/secret_key_finder.rb
196
161
  - lib/devise/strategies/authenticatable.rb
197
162
  - lib/devise/strategies/base.rb
198
163
  - lib/devise/strategies/database_authenticatable.rb
199
164
  - lib/devise/strategies/rememberable.rb
165
+ - lib/devise/test/controller_helpers.rb
166
+ - lib/devise/test/integration_helpers.rb
200
167
  - lib/devise/test_helpers.rb
201
168
  - lib/devise/time_inflector.rb
202
169
  - lib/devise/token_generator.rb
@@ -220,6 +187,7 @@ files:
220
187
  - lib/generators/templates/controllers/unlocks_controller.rb
221
188
  - lib/generators/templates/devise.rb
222
189
  - lib/generators/templates/markerb/confirmation_instructions.markerb
190
+ - lib/generators/templates/markerb/email_changed.markerb
223
191
  - lib/generators/templates/markerb/password_change.markerb
224
192
  - lib/generators/templates/markerb/reset_password_instructions.markerb
225
193
  - lib/generators/templates/markerb/unlock_instructions.markerb
@@ -230,139 +198,6 @@ files:
230
198
  - lib/generators/templates/simple_form_for/registrations/new.html.erb
231
199
  - lib/generators/templates/simple_form_for/sessions/new.html.erb
232
200
  - 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
236
- - test/controllers/custom_strategy_test.rb
237
- - test/controllers/helper_methods_test.rb
238
- - test/controllers/helpers_test.rb
239
- - test/controllers/inherited_controller_i18n_messages_test.rb
240
- - test/controllers/internal_helpers_test.rb
241
- - test/controllers/load_hooks_controller_test.rb
242
- - test/controllers/passwords_controller_test.rb
243
- - test/controllers/sessions_controller_test.rb
244
- - test/controllers/url_helpers_test.rb
245
- - test/delegator_test.rb
246
- - test/devise_test.rb
247
- - test/failure_app_test.rb
248
- - test/generators/active_record_generator_test.rb
249
- - test/generators/controllers_generator_test.rb
250
- - test/generators/devise_generator_test.rb
251
- - test/generators/install_generator_test.rb
252
- - test/generators/mongoid_generator_test.rb
253
- - test/generators/views_generator_test.rb
254
- - test/helpers/devise_helper_test.rb
255
- - test/integration/authenticatable_test.rb
256
- - test/integration/confirmable_test.rb
257
- - test/integration/database_authenticatable_test.rb
258
- - test/integration/http_authenticatable_test.rb
259
- - test/integration/lockable_test.rb
260
- - test/integration/omniauthable_test.rb
261
- - test/integration/recoverable_test.rb
262
- - test/integration/registerable_test.rb
263
- - test/integration/rememberable_test.rb
264
- - test/integration/timeoutable_test.rb
265
- - test/integration/trackable_test.rb
266
- - test/mailers/confirmation_instructions_test.rb
267
- - test/mailers/reset_password_instructions_test.rb
268
- - test/mailers/unlock_instructions_test.rb
269
- - test/mapping_test.rb
270
- - test/models/authenticatable_test.rb
271
- - test/models/confirmable_test.rb
272
- - test/models/database_authenticatable_test.rb
273
- - test/models/lockable_test.rb
274
- - test/models/omniauthable_test.rb
275
- - test/models/recoverable_test.rb
276
- - test/models/registerable_test.rb
277
- - test/models/rememberable_test.rb
278
- - test/models/serializable_test.rb
279
- - test/models/timeoutable_test.rb
280
- - test/models/trackable_test.rb
281
- - test/models/validatable_test.rb
282
- - test/models_test.rb
283
- - test/omniauth/config_test.rb
284
- - test/omniauth/url_helpers_test.rb
285
- - test/orm/active_record.rb
286
- - test/orm/mongoid.rb
287
- - test/parameter_sanitizer_test.rb
288
- - test/rails_app/Rakefile
289
- - test/rails_app/app/active_record/admin.rb
290
- - test/rails_app/app/active_record/shim.rb
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
295
- - test/rails_app/app/controllers/admins/sessions_controller.rb
296
- - test/rails_app/app/controllers/admins_controller.rb
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
300
- - test/rails_app/app/controllers/home_controller.rb
301
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
302
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
303
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
304
- - test/rails_app/app/controllers/users_controller.rb
305
- - test/rails_app/app/helpers/application_helper.rb
306
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
307
- - test/rails_app/app/mailers/users/mailer.rb
308
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
309
- - test/rails_app/app/mongoid/admin.rb
310
- - test/rails_app/app/mongoid/shim.rb
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
315
- - test/rails_app/app/views/admins/index.html.erb
316
- - test/rails_app/app/views/admins/sessions/new.html.erb
317
- - test/rails_app/app/views/home/admin_dashboard.html.erb
318
- - test/rails_app/app/views/home/index.html.erb
319
- - test/rails_app/app/views/home/join.html.erb
320
- - test/rails_app/app/views/home/private.html.erb
321
- - test/rails_app/app/views/home/user_dashboard.html.erb
322
- - test/rails_app/app/views/layouts/application.html.erb
323
- - test/rails_app/app/views/users/edit_form.html.erb
324
- - test/rails_app/app/views/users/index.html.erb
325
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
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
330
- - test/rails_app/config.ru
331
- - test/rails_app/config/application.rb
332
- - test/rails_app/config/boot.rb
333
- - test/rails_app/config/database.yml
334
- - test/rails_app/config/environment.rb
335
- - test/rails_app/config/environments/development.rb
336
- - test/rails_app/config/environments/production.rb
337
- - test/rails_app/config/environments/test.rb
338
- - test/rails_app/config/initializers/backtrace_silencers.rb
339
- - test/rails_app/config/initializers/devise.rb
340
- - test/rails_app/config/initializers/inflections.rb
341
- - test/rails_app/config/initializers/secret_token.rb
342
- - test/rails_app/config/initializers/session_store.rb
343
- - test/rails_app/config/routes.rb
344
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
345
- - test/rails_app/db/schema.rb
346
- - test/rails_app/lib/shared_admin.rb
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
350
- - test/rails_app/public/404.html
351
- - test/rails_app/public/422.html
352
- - test/rails_app/public/500.html
353
- - test/rails_app/public/favicon.ico
354
- - test/rails_test.rb
355
- - test/routes_test.rb
356
- - test/support/action_controller/record_identifier.rb
357
- - test/support/assertions.rb
358
- - test/support/helpers.rb
359
- - test/support/integration.rb
360
- - test/support/locale/en.yml
361
- - test/support/mongoid.yml
362
- - test/support/webrat/integrations/rails.rb
363
- - test/test_helper.rb
364
- - test/test_helpers_test.rb
365
- - test/test_models.rb
366
201
  homepage: https://github.com/plataformatec/devise
367
202
  licenses:
368
203
  - MIT
@@ -375,147 +210,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
375
210
  requirements:
376
211
  - - ">="
377
212
  - !ruby/object:Gem::Version
378
- version: 1.9.3
213
+ version: 2.1.0
379
214
  required_rubygems_version: !ruby/object:Gem::Requirement
380
215
  requirements:
381
216
  - - ">="
382
217
  - !ruby/object:Gem::Version
383
218
  version: '0'
384
219
  requirements: []
385
- rubyforge_project:
386
- rubygems_version: 2.4.5
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/omniauthable_test.rb
417
- - test/integration/recoverable_test.rb
418
- - test/integration/registerable_test.rb
419
- - test/integration/rememberable_test.rb
420
- - test/integration/timeoutable_test.rb
421
- - test/integration/trackable_test.rb
422
- - test/mailers/confirmation_instructions_test.rb
423
- - test/mailers/reset_password_instructions_test.rb
424
- - test/mailers/unlock_instructions_test.rb
425
- - test/mapping_test.rb
426
- - test/models/authenticatable_test.rb
427
- - test/models/confirmable_test.rb
428
- - test/models/database_authenticatable_test.rb
429
- - test/models/lockable_test.rb
430
- - test/models/omniauthable_test.rb
431
- - test/models/recoverable_test.rb
432
- - test/models/registerable_test.rb
433
- - test/models/rememberable_test.rb
434
- - test/models/serializable_test.rb
435
- - test/models/timeoutable_test.rb
436
- - test/models/trackable_test.rb
437
- - test/models/validatable_test.rb
438
- - test/models_test.rb
439
- - test/omniauth/config_test.rb
440
- - test/omniauth/url_helpers_test.rb
441
- - test/orm/active_record.rb
442
- - test/orm/mongoid.rb
443
- - test/parameter_sanitizer_test.rb
444
- - test/rails_app/Rakefile
445
- - test/rails_app/app/active_record/admin.rb
446
- - test/rails_app/app/active_record/shim.rb
447
- - test/rails_app/app/active_record/user.rb
448
- - test/rails_app/app/active_record/user_on_engine.rb
449
- - test/rails_app/app/active_record/user_on_main_app.rb
450
- - test/rails_app/app/active_record/user_without_email.rb
451
- - test/rails_app/app/controllers/admins/sessions_controller.rb
452
- - test/rails_app/app/controllers/admins_controller.rb
453
- - test/rails_app/app/controllers/application_controller.rb
454
- - test/rails_app/app/controllers/application_with_fake_engine.rb
455
- - test/rails_app/app/controllers/custom/registrations_controller.rb
456
- - test/rails_app/app/controllers/home_controller.rb
457
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
458
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
459
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
460
- - test/rails_app/app/controllers/users_controller.rb
461
- - test/rails_app/app/helpers/application_helper.rb
462
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
463
- - test/rails_app/app/mailers/users/mailer.rb
464
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
465
- - test/rails_app/app/mongoid/admin.rb
466
- - test/rails_app/app/mongoid/shim.rb
467
- - test/rails_app/app/mongoid/user.rb
468
- - test/rails_app/app/mongoid/user_on_engine.rb
469
- - test/rails_app/app/mongoid/user_on_main_app.rb
470
- - test/rails_app/app/mongoid/user_without_email.rb
471
- - test/rails_app/app/views/admins/index.html.erb
472
- - test/rails_app/app/views/admins/sessions/new.html.erb
473
- - test/rails_app/app/views/home/admin_dashboard.html.erb
474
- - test/rails_app/app/views/home/index.html.erb
475
- - test/rails_app/app/views/home/join.html.erb
476
- - test/rails_app/app/views/home/private.html.erb
477
- - test/rails_app/app/views/home/user_dashboard.html.erb
478
- - test/rails_app/app/views/layouts/application.html.erb
479
- - test/rails_app/app/views/users/edit_form.html.erb
480
- - test/rails_app/app/views/users/index.html.erb
481
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
482
- - test/rails_app/app/views/users/sessions/new.html.erb
483
- - test/rails_app/bin/bundle
484
- - test/rails_app/bin/rails
485
- - test/rails_app/bin/rake
486
- - test/rails_app/config.ru
487
- - test/rails_app/config/application.rb
488
- - test/rails_app/config/boot.rb
489
- - test/rails_app/config/database.yml
490
- - test/rails_app/config/environment.rb
491
- - test/rails_app/config/environments/development.rb
492
- - test/rails_app/config/environments/production.rb
493
- - test/rails_app/config/environments/test.rb
494
- - test/rails_app/config/initializers/backtrace_silencers.rb
495
- - test/rails_app/config/initializers/devise.rb
496
- - test/rails_app/config/initializers/inflections.rb
497
- - test/rails_app/config/initializers/secret_token.rb
498
- - test/rails_app/config/initializers/session_store.rb
499
- - test/rails_app/config/routes.rb
500
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
501
- - test/rails_app/db/schema.rb
502
- - test/rails_app/lib/shared_admin.rb
503
- - test/rails_app/lib/shared_user.rb
504
- - test/rails_app/lib/shared_user_without_email.rb
505
- - test/rails_app/lib/shared_user_without_omniauth.rb
506
- - test/rails_app/public/404.html
507
- - test/rails_app/public/422.html
508
- - test/rails_app/public/500.html
509
- - test/rails_app/public/favicon.ico
510
- - test/rails_test.rb
511
- - test/routes_test.rb
512
- - test/support/action_controller/record_identifier.rb
513
- - test/support/assertions.rb
514
- - test/support/helpers.rb
515
- - test/support/integration.rb
516
- - test/support/locale/en.yml
517
- - test/support/mongoid.yml
518
- - test/support/webrat/integrations/rails.rb
519
- - test/test_helper.rb
520
- - test/test_helpers_test.rb
521
- - 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,44 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1
7
- - 2.2
8
-
9
- gemfile:
10
- - gemfiles/Gemfile.rails-4.2-stable
11
- - gemfiles/Gemfile.rails-4.1-stable
12
- - gemfiles/Gemfile.rails-4.0-stable
13
- - gemfiles/Gemfile.rails-3.2-stable
14
- - Gemfile
15
-
16
- matrix:
17
- exclude:
18
- - rvm: 2.2
19
- gemfile: gemfiles/Gemfile.rails-3.2-stable
20
-
21
- services:
22
- - mongodb
23
-
24
- sudo: false
25
-
26
- cache: bundler
27
-
28
- env:
29
- matrix:
30
- - DEVISE_ORM=mongoid
31
- - DEVISE_ORM=active_record
32
-
33
- before_install: "rm ${BUNDLE_GEMFILE}.lock"
34
-
35
- before_script: "bundle update"
36
-
37
- script: "bundle exec rake test"
38
-
39
- notifications:
40
- email: false
41
- slack:
42
- on_success: change
43
- on_failure: always
44
- 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,16 +0,0 @@
1
- ### Please read before contributing
2
-
3
- 1) Do not post questions in the issues tracker. If you have any questions about Devise, search the [Wiki](https://github.com/plataformatec/devise/wiki) or use the [Mailing List](https://groups.google.com/group/plataformatec-devise) or [Stack Overflow](http://stackoverflow.com/questions/tagged/devise).
4
-
5
- 2) If you find a security bug, **DO NOT** submit an issue here. Please send an e-mail to [opensource@plataformatec.com.br](mailto:opensource@plataformatec.com.br) instead.
6
-
7
- 3) Do a small search on the issues tracker before submitting your issue to see if it was already reported / fixed.
8
-
9
- 4) When reporting an issue, include Rails, Devise and Warden versions. If you are getting exceptions, please include the full backtrace.
10
-
11
- 5) Notice that all of your interactions in the project are expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md)
12
-
13
- That's it! The more information you give, the easier it becomes for us to track it down and fix it.
14
- Ideally, you should provide an application that reproduces the error or a test case to Devise's suite.
15
-
16
- Thanks!
data/Gemfile DELETED
@@ -1,29 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem "rails", "4.2.2"
6
- gem "omniauth", "~> 1.2.0"
7
- gem "omniauth-oauth2", "~> 1.1.0"
8
- gem "rdoc"
9
-
10
- group :test do
11
- gem "omniauth-facebook"
12
- gem "omniauth-openid", "~> 1.0.1"
13
- gem "webrat", "0.7.3", require: false
14
- gem "mocha", "~> 1.1", require: false
15
- end
16
-
17
- platforms :jruby do
18
- gem "activerecord-jdbc-adapter"
19
- gem "activerecord-jdbcsqlite3-adapter"
20
- gem "jruby-openssl"
21
- end
22
-
23
- platforms :ruby do
24
- gem "sqlite3"
25
- end
26
-
27
- group :mongoid do
28
- gem "mongoid", "~> 4.0"
29
- end