devise 4.8.0 → 4.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 197ce185bf22b8dc45c17a615895b60e6b788360113c37d99a116db868197309
4
- data.tar.gz: 8e3fa67c5bcd6c05ac3011e0b35f0cda57596ae74c2affceab84cab1da3aeb58
3
+ metadata.gz: 073edbd8314be8f7b4da9e8f1b2eb07f4f25faf77a4400b6ef91f6a7d6905fda
4
+ data.tar.gz: 96ba453ccdf7f73d76c40525644d867fe8a699efa7f0b3ab58f5e520af44f0d7
5
5
  SHA512:
6
- metadata.gz: 8d3f76d9e898d36dc6eb4db5d5b098b76d339aeadac014c772b7097dc6a730a7577049bd00ea7a073beead47454edb91d24fe73b50e90af3555cc5e83886902f
7
- data.tar.gz: 84cbafa77c70de3c204dfdf19e4ce53ac05796eaf959bba4d4909d0c91686baa6da61f732e13bce0892d8932af375d2b81340f6bd1047384f15325f8a24011e0
6
+ metadata.gz: 3e86e75d88256721b32dc38b9ace70d25ccbdff76885c4a942452da0d01a92f7179c4e4800c55f91a1f535e4a9ecf9cce696523651b94aa4f5ee75b0016c4132
7
+ data.tar.gz: 2a42ad0db913c2aa1ae782a06edd48096b0b3bd4dbe47a243cce6a7f923663240ca3e8ad9459aa0148623fa366fa89d3a30959b1bd2e7b399343ebc207beb7bf
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
- ### unreleased
1
+ ### 4.8.1
2
+
3
+ * enhancements
4
+ * Add support for Rails 7.0. Please note that Turbo integration is not fully supported by Devise yet.
2
5
 
3
6
  ### 4.8.0 - 2021-04-29
4
7
 
@@ -10,7 +10,7 @@ module Devise
10
10
  #
11
11
  # == Options
12
12
  #
13
- # Authenticatable adds the following options to devise_for:
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 devise_for:
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 devise_for:
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
- # devise_for :database_authenticatable, :omniauthable, omniauth_providers: [:twitter]
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 devise_for:
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 in devise_for:
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
@@ -11,7 +11,7 @@ module Devise
11
11
  #
12
12
  # == Options
13
13
  #
14
- # Timeoutable adds the following options to devise_for:
14
+ # Timeoutable adds the following options to +devise+:
15
15
  #
16
16
  # * +timeout_in+: the interval to timeout the user session without activity.
17
17
  #
@@ -9,7 +9,7 @@ module Devise
9
9
  #
10
10
  # == Options
11
11
  #
12
- # Validatable adds the following options to devise_for:
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Devise
4
- VERSION = "4.8.0".freeze
4
+ VERSION = "4.8.1".freeze
5
5
  end
data/lib/devise.rb CHANGED
@@ -313,12 +313,20 @@ module Devise
313
313
  end
314
314
 
315
315
  def get
316
- ActiveSupport::Dependencies.constantize(@name)
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
- ActiveSupport::Dependencies.reference(arg)
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.0
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-04-29 00:00:00.000000000 Z
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.2.6
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