sober_swag 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sober_swag/serializer/meta.rb +3 -2
- data/lib/sober_swag/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: 234da6bca56fd440edae30e4fc9c34c50a37a6ab26b41739276e57ab43c73408
|
4
|
+
data.tar.gz: 103e61429365ceb04d6d0225822ddaa4012f95a043a5bb97c6b8a2fd26671ce5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58f27a7deebfcb50ec6279084e0a0e872fd0c2a447fca922549d7d3d9822a7e13e010372376c1a079472ba807845d267327275fe453efb99662f685321041e28
|
7
|
+
data.tar.gz: 97ecdb6352db7545004fba2103bb505b3730973a22689f05dedd5b6a305115a63f302f0f248edd3f70e6377ebe470c9ef4f734b2e38af031bf762d229c71bcc0
|
@@ -33,8 +33,9 @@ module SoberSwag
|
|
33
33
|
# Using .meta on dry-struct returns a *new type* that wraps the old one.
|
34
34
|
# As such, we need to be a bit clever about when we tack on the identifier
|
35
35
|
# for this type.
|
36
|
-
lazy_type.
|
37
|
-
|
36
|
+
%i[lazy_type type].each do |sym|
|
37
|
+
public_send(sym).identifier(@base.public_send(sym).identifier) if @base.public_send(sym).respond_to?(:identifier)
|
38
|
+
end
|
38
39
|
end
|
39
40
|
|
40
41
|
def lazy_type?
|
data/lib/sober_swag/version.rb
CHANGED