devise 4.8.0 → 4.8.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/devise/models/authenticatable.rb +1 -1
- data/lib/devise/models/database_authenticatable.rb +2 -2
- data/lib/devise/models/omniauthable.rb +2 -2
- data/lib/devise/models/recoverable.rb +1 -1
- data/lib/devise/models/rememberable.rb +1 -1
- data/lib/devise/models/timeoutable.rb +1 -1
- data/lib/devise/models/validatable.rb +1 -1
- data/lib/devise/version.rb +1 -1
- data/lib/devise.rb +10 -2
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 073edbd8314be8f7b4da9e8f1b2eb07f4f25faf77a4400b6ef91f6a7d6905fda
|
4
|
+
data.tar.gz: 96ba453ccdf7f73d76c40525644d867fe8a699efa7f0b3ab58f5e520af44f0d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e86e75d88256721b32dc38b9ace70d25ccbdff76885c4a942452da0d01a92f7179c4e4800c55f91a1f535e4a9ecf9cce696523651b94aa4f5ee75b0016c4132
|
7
|
+
data.tar.gz: 2a42ad0db913c2aa1ae782a06edd48096b0b3bd4dbe47a243cce6a7f923663240ca3e8ad9459aa0148623fa366fa89d3a30959b1bd2e7b399343ebc207beb7bf
|
data/CHANGELOG.md
CHANGED
@@ -10,7 +10,7 @@ module Devise
|
|
10
10
|
#
|
11
11
|
# == Options
|
12
12
|
#
|
13
|
-
# Authenticatable adds the following options to
|
13
|
+
# Authenticatable adds the following options to +devise+:
|
14
14
|
#
|
15
15
|
# * +authentication_keys+: parameters used for authentication. By default [:email].
|
16
16
|
#
|
@@ -13,7 +13,7 @@ module Devise
|
|
13
13
|
#
|
14
14
|
# == Options
|
15
15
|
#
|
16
|
-
# DatabaseAuthenticatable adds the following options to
|
16
|
+
# DatabaseAuthenticatable adds the following options to +devise+:
|
17
17
|
#
|
18
18
|
# * +pepper+: a random string used to provide a more secure hash. Use
|
19
19
|
# `rails secret` to generate new keys.
|
@@ -42,7 +42,7 @@ module Devise
|
|
42
42
|
def initialize(*args, &block)
|
43
43
|
@skip_email_changed_notification = false
|
44
44
|
@skip_password_change_notification = false
|
45
|
-
super
|
45
|
+
super
|
46
46
|
end
|
47
47
|
|
48
48
|
# Skips sending the email changed notification after_update
|
@@ -8,11 +8,11 @@ module Devise
|
|
8
8
|
#
|
9
9
|
# == Options
|
10
10
|
#
|
11
|
-
# Oauthable adds the following options to
|
11
|
+
# Oauthable adds the following options to +devise+:
|
12
12
|
#
|
13
13
|
# * +omniauth_providers+: Which providers are available to this model. It expects an array:
|
14
14
|
#
|
15
|
-
#
|
15
|
+
# devise :database_authenticatable, :omniauthable, omniauth_providers: [:twitter]
|
16
16
|
#
|
17
17
|
module Omniauthable
|
18
18
|
extend ActiveSupport::Concern
|
@@ -7,7 +7,7 @@ module Devise
|
|
7
7
|
#
|
8
8
|
# ==Options
|
9
9
|
#
|
10
|
-
# Recoverable adds the following options to
|
10
|
+
# Recoverable adds the following options to +devise+:
|
11
11
|
#
|
12
12
|
# * +reset_password_keys+: the keys you want to use when recovering the password for an account
|
13
13
|
# * +reset_password_within+: the time period within which the password must be reset or the token expires.
|
@@ -15,7 +15,7 @@ module Devise
|
|
15
15
|
#
|
16
16
|
# == Options
|
17
17
|
#
|
18
|
-
# Rememberable adds the following options
|
18
|
+
# Rememberable adds the following options to +devise+:
|
19
19
|
#
|
20
20
|
# * +remember_for+: the time you want the user will be remembered without
|
21
21
|
# asking for credentials. After this time the user will be blocked and
|
@@ -9,7 +9,7 @@ module Devise
|
|
9
9
|
#
|
10
10
|
# == Options
|
11
11
|
#
|
12
|
-
# Validatable adds the following options to
|
12
|
+
# Validatable adds the following options to +devise+:
|
13
13
|
#
|
14
14
|
# * +email_regexp+: the regular expression used to validate e-mails;
|
15
15
|
# * +password_length+: a range expressing password length. Defaults to 6..128.
|
data/lib/devise/version.rb
CHANGED
data/lib/devise.rb
CHANGED
@@ -313,12 +313,20 @@ module Devise
|
|
313
313
|
end
|
314
314
|
|
315
315
|
def get
|
316
|
-
|
316
|
+
# TODO: Remove AS::Dependencies usage when dropping support to Rails < 7.
|
317
|
+
if ActiveSupport::Dependencies.respond_to?(:constantize)
|
318
|
+
ActiveSupport::Dependencies.constantize(@name)
|
319
|
+
else
|
320
|
+
@name.constantize
|
321
|
+
end
|
317
322
|
end
|
318
323
|
end
|
319
324
|
|
320
325
|
def self.ref(arg)
|
321
|
-
|
326
|
+
# TODO: Remove AS::Dependencies usage when dropping support to Rails < 7.
|
327
|
+
if ActiveSupport::Dependencies.respond_to?(:reference)
|
328
|
+
ActiveSupport::Dependencies.reference(arg)
|
329
|
+
end
|
322
330
|
Getter.new(arg)
|
323
331
|
end
|
324
332
|
|
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.8.
|
4
|
+
version: 4.8.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: 2021-
|
12
|
+
date: 2021-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: warden
|
@@ -202,7 +202,13 @@ files:
|
|
202
202
|
homepage: https://github.com/heartcombo/devise
|
203
203
|
licenses:
|
204
204
|
- MIT
|
205
|
-
metadata:
|
205
|
+
metadata:
|
206
|
+
homepage_uri: https://github.com/heartcombo/devise
|
207
|
+
documentation_uri: https://rubydoc.info/github/heartcombo/devise
|
208
|
+
changelog_uri: https://github.com/heartcombo/devise/blob/master/CHANGELOG.md
|
209
|
+
source_code_uri: https://github.com/heartcombo/devise
|
210
|
+
bug_tracker_uri: https://github.com/heartcombo/devise/issues
|
211
|
+
wiki_uri: https://github.com/heartcombo/devise/wiki
|
206
212
|
post_install_message:
|
207
213
|
rdoc_options: []
|
208
214
|
require_paths:
|
@@ -218,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
224
|
- !ruby/object:Gem::Version
|
219
225
|
version: '0'
|
220
226
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
227
|
+
rubygems_version: 3.1.6
|
222
228
|
signing_key:
|
223
229
|
specification_version: 4
|
224
230
|
summary: Flexible authentication solution for Rails with Warden
|