foobara 0.4.3 → 0.4.4
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 +5 -0
- data/projects/command_connectors/src/command_connector/request.rb +6 -2
- data/projects/command_connectors/src/transformed_command.rb +1 -1
- data/projects/entities/projects/model/src/extensions/type_declarations/handlers/extend_registered_model_type_declaration/to_type_transformer.rb +6 -2
- data/projects/typesystem/projects/types/src/type/concerns/reflection.rb +1 -0
- data/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: 1bf3d5a0446977b9a62d890956d294cbe24761295f9f8c1c9ad6d4101a280532
|
|
4
|
+
data.tar.gz: 1d680e4acd71324924ffa28f75dc36d8c4f11b648dc1ff1d3c01b647d4e635c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b76877ed83b42e1e625b04a5c3ede92e93627f772568524f3a9cec50868e0b44f8a06dadf4d65b882301866d82708a88827733f9e6da5f6b2f6833f18e0d5b7
|
|
7
|
+
data.tar.gz: d0f8710c28628a270409c5eb10ca4d71d07e8be9cf18b81d3319b12c5399cc6476cfca81c09ad83dcd774fcd11246a270ebf1149438eac89b6d5e0d57c9276ce
|
data/CHANGELOG.md
CHANGED
|
@@ -150,8 +150,12 @@ module Foobara
|
|
|
150
150
|
# TODO: move this to entity_plumbing
|
|
151
151
|
def relevant_entity_classes
|
|
152
152
|
if command_class.is_a?(::Class) && command_class < TransformedCommand
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
if authenticator.respond_to?(:relevant_entity_classes)
|
|
154
|
+
entity_classes = authenticator.relevant_entity_classes(self)
|
|
155
|
+
[*entity_classes, *relevant_entity_classes_from_inputs_transformer]
|
|
156
|
+
else
|
|
157
|
+
relevant_entity_classes_from_inputs_transformer
|
|
158
|
+
end
|
|
155
159
|
end || EMPTY_ARRAY
|
|
156
160
|
end
|
|
157
161
|
|
|
@@ -16,8 +16,12 @@ module Foobara
|
|
|
16
16
|
|
|
17
17
|
def declaration_to_type(strict_type_declaration)
|
|
18
18
|
# TODO: cache this on a #base_type= helper
|
|
19
|
-
strict_type_declaration.type
|
|
20
|
-
|
|
19
|
+
type = strict_type_declaration.type
|
|
20
|
+
return type if type
|
|
21
|
+
|
|
22
|
+
type_symbol = strict_type_declaration[:type]
|
|
23
|
+
|
|
24
|
+
lookup_type(type_symbol, mode: Namespace::LookupMode::ABSOLUTE)
|
|
21
25
|
end
|
|
22
26
|
end
|
|
23
27
|
end
|
data/version.rb
CHANGED