webauthn 3.2.1 → 3.2.2
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 +6 -0
- data/lib/webauthn/json_serializer.rb +8 -6
- data/lib/webauthn/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: 410e18172c68e2171f46e15d7b34cd56ef7859c4efd421b6a84a3469f0281c41
|
4
|
+
data.tar.gz: 16841587928fb284c5ad542868a0d6a21f6152a82bdd76abc0ae537887275bc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7337230a3b9118e55bfd1ac84858d163bc173d70107e5f425077579801c5d1b68cf6ec0be65d0317c63d69d1594d7a50662a42e3ed4ac34e45cae97954a8477
|
7
|
+
data.tar.gz: 53dcf09f8065ee447633de769c5d4587e39150f117fa3f6226a78fbbac7b48be9195bcd40ff14a683f06343a2f10f46c3df057dedaf96fcabfedb41865b64362
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v3.2.2] - 2024-11-14
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- Fix `PublicKeyCredential::Options#.as_json` not camelCase'ing keys of attributes with hash or arrays as values. [#445](https://github.com/cedarcode/webauthn-ruby/pull/445) [@santiagorodriguez96]
|
8
|
+
|
3
9
|
## [v3.2.1] - 2024-11-14
|
4
10
|
|
5
11
|
### Fixed
|
@@ -4,19 +4,21 @@ module WebAuthn
|
|
4
4
|
module JSONSerializer
|
5
5
|
# Argument wildcard for Ruby on Rails controller automatic object JSON serialization
|
6
6
|
def as_json(*)
|
7
|
-
|
7
|
+
deep_camelize_keys(to_hash)
|
8
8
|
end
|
9
9
|
|
10
10
|
private
|
11
11
|
|
12
|
-
def
|
12
|
+
def to_hash
|
13
13
|
attributes.each_with_object({}) do |attribute_name, hash|
|
14
14
|
value = send(attribute_name)
|
15
15
|
|
16
|
-
if value
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
if value.respond_to?(:as_json)
|
17
|
+
value = value.as_json
|
18
|
+
end
|
19
|
+
|
20
|
+
if value
|
21
|
+
hash[attribute_name] = value
|
20
22
|
end
|
21
23
|
end
|
22
24
|
end
|
data/lib/webauthn/version.rb
CHANGED