devise 5.0.0 → 5.0.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 +5 -0
- data/README.md +1 -1
- data/lib/devise/failure_app.rb +3 -1
- data/lib/devise/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c59c4076a4ac0e38c7200826104c1525bff002d6df36b40733c6b011454803c
|
|
4
|
+
data.tar.gz: 24e6a187f45db8fb798b1e4ead4ae0d9c456c689d1bd57a488ea8b6daa5f094d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9a4c77df23aa110e19620d6cf0de5c6585d0c7af4dbb28c71e86b0b67746b753a088796b7951d571d2142133bb6376a614a3c3f6fec587709a0979a7886ca76
|
|
7
|
+
data.tar.gz: 8c9c549e0f6e08950b926f56fdca67c494d94aa0ca17b2af2b95b2b703ac7a2e93750897febfaef8aa4364430d5a3bf4004f8c638d34becd2690e0bcbb8f9542
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -151,7 +151,7 @@ BUNDLE_GEMFILE=gemfiles/Gemfile-rails-8-0 DEVISE_ORM=mongoid bin/test
|
|
|
151
151
|
```
|
|
152
152
|
|
|
153
153
|
### Running tests
|
|
154
|
-
Devise uses [
|
|
154
|
+
Devise uses [minitest](https://github.com/seattlerb/minitest) as test framework.
|
|
155
155
|
|
|
156
156
|
* Running all tests:
|
|
157
157
|
```bash
|
data/lib/devise/failure_app.rb
CHANGED
|
@@ -112,7 +112,9 @@ module Devise
|
|
|
112
112
|
options[:default] = [message]
|
|
113
113
|
auth_keys = scope_class.authentication_keys
|
|
114
114
|
human_keys = (auth_keys.respond_to?(:keys) ? auth_keys.keys : auth_keys).map { |key|
|
|
115
|
-
|
|
115
|
+
# TODO: Remove the fallback and just use `downcase_first` once we drop support for Rails 7.0.
|
|
116
|
+
human_key = scope_class.human_attribute_name(key)
|
|
117
|
+
human_key.respond_to?(:downcase_first) ? human_key.downcase_first : human_key[0].downcase + human_key[1..]
|
|
116
118
|
}
|
|
117
119
|
options[:authentication_keys] = human_keys.join(I18n.t(:"support.array.words_connector"))
|
|
118
120
|
options = i18n_options(options)
|
data/lib/devise/version.rb
CHANGED