foobara 0.0.120 → 0.0.121
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 +4 -0
- data/projects/entity/src/sensitive_value_removers/entity.rb +1 -1
- data/projects/type_declarations/src/handlers/registered_type_declaration/short_type_name_desugarizer.rb +0 -2
- data/projects/type_declarations/src/handlers/registered_type_declaration/to_type_transformer.rb +5 -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: 80f2fbb04c10d91d28ece159f2a3c229ba4698579acac813e19625380564928b
|
4
|
+
data.tar.gz: acbe6117c76fc36741583db4bffdf26db37f8f54f75d74b2c810b7f44a37a8f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70b1abede851dcafe1209e13c2d725e39240ab4746666a3b5683274f19051f6dfc84d188a05aac77b3ca7642c0c86661bcf040b5d444109a1a9884ff3f668071
|
7
|
+
data.tar.gz: ca9b9cdeca157bc2595f9de3888f88eb4ef358036591bfd74793306fb5ff20912bde4570ea97c13bfc396c8e025f2d41051815d02fe1c77f1c4761ef624c2c69
|
data/CHANGELOG.md
CHANGED
@@ -4,8 +4,6 @@ module Foobara
|
|
4
4
|
module TypeDeclarations
|
5
5
|
module Handlers
|
6
6
|
class RegisteredTypeDeclaration < TypeDeclarationHandler
|
7
|
-
# type_symbol is basically just a flag that lets us know that type is fully qualified.
|
8
|
-
# rather hacky but other potential workarounds seemed gnarlier
|
9
7
|
class ShortTypeNameDesugarizer < TypeDeclarations::Desugarizer
|
10
8
|
def applicable?(sugary_type_declaration)
|
11
9
|
return false if TypeDeclarations.strict_stringified? || TypeDeclarations.strict?
|
data/projects/type_declarations/src/handlers/registered_type_declaration/to_type_transformer.rb
CHANGED
@@ -15,7 +15,11 @@ module Foobara
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def registered_type(strict_type_declaration)
|
18
|
-
|
18
|
+
symbol = type_symbol(strict_type_declaration)
|
19
|
+
if TypeDeclarations.strict? || TypeDeclarations.strict_stringified?
|
20
|
+
symbol = "::#{symbol}"
|
21
|
+
end
|
22
|
+
lookup_type!(symbol)
|
19
23
|
end
|
20
24
|
|
21
25
|
def target_classes(strict_type_declaration)
|