devise 4.6.2 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of devise might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/CHANGELOG.md +12 -0
- data/README.md +2 -2
- data/app/views/devise/passwords/edit.html.erb +1 -1
- data/lib/devise.rb +0 -0
- data/lib/devise/failure_app.rb +3 -9
- data/lib/devise/models/authenticatable.rb +0 -1
- data/lib/devise/models/validatable.rb +1 -1
- data/lib/devise/rails/routes.rb +2 -2
- data/lib/devise/version.rb +1 -1
- data/lib/generators/templates/devise.rb +0 -0
- data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +4 -1
- metadata +3 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 99f73a79ce1b893707bf43346c57fb609226ffdc
|
4
|
+
data.tar.gz: 0ab35ec0e647610f96a0a1357b93686237c3a419
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 385e26f7d0dcf2baed0879a24a445d0758682c5ff42b6b89fda4233b130b40f1eb64bb4fa0a860d4615d4966995504827cd384067b8544feab48958861c9d6be
|
7
|
+
data.tar.gz: 3696165b16b2f312d83a67036c4cb930e5ebd3be42103b6d60f5fb09504d3ff40e1d804758faf5a2606beb497ddfb8f62d4b293aa4648d458925deecf7cdd2b9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
### Unreleased
|
2
2
|
|
3
|
+
### 4.7.0 - 2019-08-19
|
4
|
+
|
5
|
+
* enhancements
|
6
|
+
* Support Rails 6.0
|
7
|
+
* Update CI to rails 6.0.0.beta3 (by @tunnes)
|
8
|
+
* refactor method name to be more consistent (by @saiqulhaq)
|
9
|
+
* Fix rails 6.0.rc1 email uniqueness validation deprecation warning (by @Vasfed)
|
10
|
+
|
11
|
+
* bug fixes
|
12
|
+
* Add `autocomplete="new-password"` to `password_confirmation` fields (by @ferrl)
|
13
|
+
* Fix rails_51_and_up? method for Rails 6.rc1 (by @igorkasyanchuk)
|
14
|
+
|
3
15
|
### 4.6.2 - 2019-03-26
|
4
16
|
|
5
17
|
* bug fixes
|
data/README.md
CHANGED
@@ -174,7 +174,7 @@ If you are building your first Rails application, we recommend you *do not* use
|
|
174
174
|
|
175
175
|
* Michael Hartl's online book: https://www.railstutorial.org/book/modeling_users
|
176
176
|
* Ryan Bates' Railscast: http://railscasts.com/episodes/250-authentication-from-scratch
|
177
|
-
* Codecademy's Ruby on Rails: Authentication and Authorization:
|
177
|
+
* Codecademy's Ruby on Rails: Authentication and Authorization: https://www.codecademy.com/learn/rails-auth
|
178
178
|
|
179
179
|
Once you have solidified your understanding of Rails and authentication mechanisms, we assure you Devise will be very pleasant to work with. :smiley:
|
180
180
|
|
@@ -732,6 +732,6 @@ https://github.com/plataformatec/devise/graphs/contributors
|
|
732
732
|
|
733
733
|
## License
|
734
734
|
|
735
|
-
MIT License. Copyright 2009-
|
735
|
+
MIT License. Copyright 2009-2019 Plataformatec. http://plataformatec.com.br
|
736
736
|
|
737
737
|
You are not granted rights or licenses to the trademarks of Plataformatec, including without limitation the Devise name or logo.
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
<div class="field">
|
16
16
|
<%= f.label :password_confirmation, "Confirm new password" %><br />
|
17
|
-
<%= f.password_field :password_confirmation, autocomplete: "
|
17
|
+
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
|
18
18
|
</div>
|
19
19
|
|
20
20
|
<div class="actions">
|
data/lib/devise.rb
CHANGED
File without changes
|
data/lib/devise/failure_app.rb
CHANGED
@@ -153,7 +153,7 @@ module Devise
|
|
153
153
|
# We need to add the rootpath to `script_name` manually for applications that use a Rails
|
154
154
|
# version lower than 5.1. Otherwise, it is going to generate a wrong path for Engines
|
155
155
|
# that use Devise. Remove it when the support of Rails 5.0 is droped.
|
156
|
-
elsif root_path_defined?(context) &&
|
156
|
+
elsif root_path_defined?(context) && !rails_51_and_up?
|
157
157
|
rootpath = context.routes.url_helpers.root_path
|
158
158
|
opts[:script_name] = rootpath.chomp('/') if rootpath.length > 1
|
159
159
|
end
|
@@ -278,14 +278,8 @@ module Devise
|
|
278
278
|
defined?(context.routes) && context.routes.url_helpers.respond_to?(:root_path)
|
279
279
|
end
|
280
280
|
|
281
|
-
def
|
282
|
-
|
283
|
-
|
284
|
-
Rails::VERSION::MAJOR >= 4
|
285
|
-
end
|
286
|
-
|
287
|
-
def rails_5_up?
|
288
|
-
Rails::VERSION::MAJOR >= 5 && Rails::VERSION::MINOR > 0
|
281
|
+
def rails_51_and_up?
|
282
|
+
Rails.gem_version >= Gem::Version.new("5.1")
|
289
283
|
end
|
290
284
|
end
|
291
285
|
end
|
@@ -30,7 +30,7 @@ module Devise
|
|
30
30
|
base.class_eval do
|
31
31
|
validates_presence_of :email, if: :email_required?
|
32
32
|
if Devise.activerecord51?
|
33
|
-
validates_uniqueness_of :email, allow_blank: true, if: :will_save_change_to_email?
|
33
|
+
validates_uniqueness_of :email, allow_blank: true, case_sensitive: true, if: :will_save_change_to_email?
|
34
34
|
validates_format_of :email, with: email_regexp, allow_blank: true, if: :will_save_change_to_email?
|
35
35
|
else
|
36
36
|
validates_uniqueness_of :email, allow_blank: true, if: :email_changed?
|
data/lib/devise/rails/routes.rb
CHANGED
@@ -135,10 +135,10 @@ module ActionDispatch::Routing
|
|
135
135
|
# * failure_app: a rack app which is invoked whenever there is a failure. Strings representing a given
|
136
136
|
# are also allowed as parameter.
|
137
137
|
#
|
138
|
-
# * sign_out_via: the HTTP method(s) accepted for the :sign_out action (default: :
|
138
|
+
# * sign_out_via: the HTTP method(s) accepted for the :sign_out action (default: :delete),
|
139
139
|
# if you wish to restrict this to accept only :post or :delete requests you should do:
|
140
140
|
#
|
141
|
-
# devise_for :users, sign_out_via: [:
|
141
|
+
# devise_for :users, sign_out_via: [:get, :post]
|
142
142
|
#
|
143
143
|
# You need to make sure that your sign_out controls trigger a request with a matching HTTP method.
|
144
144
|
#
|
data/lib/devise/version.rb
CHANGED
File without changes
|
@@ -13,7 +13,10 @@
|
|
13
13
|
autofocus: true,
|
14
14
|
hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length),
|
15
15
|
input_html: { autocomplete: "new-password" } %>
|
16
|
-
<%= f.input :password_confirmation,
|
16
|
+
<%= f.input :password_confirmation,
|
17
|
+
label: "Confirm your new password",
|
18
|
+
required: true,
|
19
|
+
input_html: { autocomplete: "new-password" } %>
|
17
20
|
</div>
|
18
21
|
|
19
22
|
<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
|
+
version: 4.7.0
|
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: 2019-
|
12
|
+
date: 2019-08-19 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
|
@@ -224,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
218
|
version: '0'
|
225
219
|
requirements: []
|
226
220
|
rubyforge_project:
|
227
|
-
rubygems_version: 2.
|
221
|
+
rubygems_version: 2.6.13
|
228
222
|
signing_key:
|
229
223
|
specification_version: 4
|
230
224
|
summary: Flexible authentication solution for Rails with Warden
|