devise 4.1.1 → 5.0.4

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