cognito_rails 1.6.0 → 1.6.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/lib/cognito_rails/model.rb +2 -2
- data/lib/cognito_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a632d6d69bb5fe154466be5a348d85be21fbdc4724d8d36e8f6277d3c25272a
|
|
4
|
+
data.tar.gz: 80cfe3e7dff4e66bbddb1216490661fc057777248e25be73b142d9e727263888
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20f84101146cfbe29e6f447e7b7eae1d08526383d8d33ea4ce98c93ea7d25b50da29464064ea023b2425e484afc874f67fb775c189df631d9b0e802047e62df7
|
|
7
|
+
data.tar.gz: 88ffa88de959b6e6f335723ef8d423842a9bdd18b3e1ccff16791d98575e77f30ef7070eb588f7556913f4c3f7c2f600bf38c7274a70b73957b835893a52e33c
|
data/lib/cognito_rails/model.rb
CHANGED
|
@@ -78,8 +78,8 @@ module CognitoRails
|
|
|
78
78
|
def _cognito_resolve_custom_attribute(user, user_data)
|
|
79
79
|
_cognito_custom_attributes.each do |attribute|
|
|
80
80
|
next if attribute[:value].is_a?(String)
|
|
81
|
-
|
|
82
|
-
value = User.extract_cognito_attribute(
|
|
81
|
+
attributes = user_data.respond_to?(:attributes) ? user_data.attributes : user_data.user_attributes
|
|
82
|
+
value = User.extract_cognito_attribute(attributes, attribute[:name])
|
|
83
83
|
next unless value
|
|
84
84
|
|
|
85
85
|
user[attribute[:name].gsub('custom:', '')] = value
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cognito_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mònade
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|