typed_params 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/typed_params/parameterizer.rb +4 -4
- data/lib/typed_params/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: 440661d066c2dffa2f84361a952e7158ca7d56d16037ca2c937acb30f2f1cad6
|
4
|
+
data.tar.gz: ad9f0aad3b817b5fa5f99d6d9eaa9e8f73d556c037cd03207bdc10b51fb26e81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5919d79cc5c6f4b8bc7c8b1f65520b04e7fb11632f3b20f50f1c99f9346602f2f471058d293da5e14709c6b5f95ae2f1b1ddf04fa3c235b1314ef701333b568d
|
7
|
+
data.tar.gz: dea4d641834d9ae1184cdcc5653f1d04bdca18650d787d3557991ab03219ebc2234b36e9edaa9bd7733466852538491e3ad42e93029d9a748c7cea5a4b735105
|
data/CHANGELOG.md
CHANGED
@@ -31,8 +31,8 @@ module TypedParams
|
|
31
31
|
:parent
|
32
32
|
|
33
33
|
def parameterize_array_schema(key:, value:)
|
34
|
-
return parameterize_value(key:, value:)
|
35
|
-
value.
|
34
|
+
return parameterize_value(key:, value:) unless
|
35
|
+
value.is_a?(Array)
|
36
36
|
|
37
37
|
param = Parameter.new(key:, value: [], schema:, parent:)
|
38
38
|
|
@@ -56,8 +56,8 @@ module TypedParams
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def parameterize_hash_schema(key:, value:)
|
59
|
-
return parameterize_value(key:, value:)
|
60
|
-
value.
|
59
|
+
return parameterize_value(key:, value:) unless
|
60
|
+
value.is_a?(Hash)
|
61
61
|
|
62
62
|
param = Parameter.new(key:, value: {}, schema:, parent:)
|
63
63
|
|
data/lib/typed_params/version.rb
CHANGED