foobara 0.0.20 → 0.0.22
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 +8 -0
- data/projects/command/src/concerns/reflection.rb +1 -1
- data/projects/command/src/transformed_command.rb +1 -1
- data/projects/command_connectors/src/command_registry/exposed_command.rb +1 -1
- data/projects/command_connectors/src/command_registry/exposed_domain.rb +1 -1
- data/projects/command_connectors/src/command_registry/exposed_organization.rb +1 -1
- data/projects/common/src/error.rb +1 -1
- data/projects/common/src/possible_error.rb +1 -1
- data/projects/domain/src/domain_module_extension.rb +1 -1
- data/projects/domain/src/organization_module_extension.rb +1 -1
- data/projects/entity/src/concerns/reflection.rb +1 -1
- data/projects/model/src/concerns/reflection.rb +1 -1
- data/projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration/model_class_desugarizer.rb +3 -1
- data/projects/type_declarations/src/desugarizer.rb +1 -1
- data/projects/type_declarations/src/type_declaration_handler.rb +1 -1
- data/projects/type_declarations/src/type_declaration_handler_registry.rb +1 -1
- data/projects/type_declarations/src/type_declaration_validator.rb +1 -1
- data/projects/types/src/type.rb +1 -1
- data/projects/value/src/caster.rb +1 -1
- data/projects/value/src/processor/casting.rb +1 -1
- data/projects/value/src/processor/pipeline.rb +1 -1
- data/projects/value/src/processor/selection.rb +1 -1
- data/projects/value/src/processor.rb +2 -2
- data/projects/value/src/transformer.rb +1 -1
- data/projects/value/src/validator.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc681307752b396bf7baaf20856fbdf5107da406b112b5c15039ca915859a497
|
4
|
+
data.tar.gz: d779a8020d0e65156965a9a32c7f8b9f1c0daebbcedb3795917701feb3b7c845
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fafb15435c334846fdd3f1d233abfbe8a93b02bba7374f91026555fcd7a3fd97b47fa24825a0e72dcafa0ac64688c9accead19c9c44d427ec62c707e70986016
|
7
|
+
data.tar.gz: 9ff12cb0f19aaf131808200a6196681c9c9ddec9febbf0fae0c7ff008439895243da0cf4cb068cb10bb2a162f58049eb35437aaa777a1724d5a3adf1df6d5f4f
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [0.0.22] - 2024-12-03
|
2
|
+
|
3
|
+
- Allow creating entity types from declaration without model_module
|
4
|
+
|
5
|
+
## [0.0.21] - 2024-12-02
|
6
|
+
|
7
|
+
- Allow #foobara_manifest to be called without a to_include Set
|
8
|
+
|
1
9
|
## [0.0.20] - 2024-12-01
|
2
10
|
|
3
11
|
- Fix delayed_connections bug in command connector
|
@@ -19,7 +19,7 @@ module Foobara
|
|
19
19
|
remove_instance_variable("@all") if instance_variable_defined?("@all")
|
20
20
|
end
|
21
21
|
|
22
|
-
def foobara_manifest(to_include:)
|
22
|
+
def foobara_manifest(to_include: Set.new)
|
23
23
|
depends_on = self.depends_on.map do |command_name|
|
24
24
|
other_command = Foobara::Namespace.global.foobara_lookup!(command_name,
|
25
25
|
mode: Foobara::Namespace::LookupMode::ABSOLUTE)
|
@@ -94,7 +94,7 @@ module Foobara
|
|
94
94
|
@full_command_symbol ||= Util.underscore_sym(full_command_name)
|
95
95
|
end
|
96
96
|
|
97
|
-
def foobara_manifest(to_include:)
|
97
|
+
def foobara_manifest(to_include: Set.new)
|
98
98
|
transformed_command_class.foobara_manifest(to_include:).merge(super).merge(
|
99
99
|
Util.remove_blank(
|
100
100
|
scoped_category: :command,
|
@@ -14,7 +14,7 @@ module Foobara
|
|
14
14
|
end
|
15
15
|
|
16
16
|
# TODO: unable to address types here so it is handled as a hack higher up...
|
17
|
-
def foobara_manifest(to_include:)
|
17
|
+
def foobara_manifest(to_include: Set.new)
|
18
18
|
domain_manifest = domain_module.foobara_manifest(to_include: Set.new)
|
19
19
|
mode = Foobara::Namespace::LookupMode::DIRECT
|
20
20
|
commands = foobara_all_command(mode:).map(&:foobara_manifest_reference).sort
|
@@ -14,7 +14,7 @@ module Foobara
|
|
14
14
|
end
|
15
15
|
|
16
16
|
# TODO: unable to address types here so it is handled as a hack higher up...
|
17
|
-
def foobara_manifest(to_include:)
|
17
|
+
def foobara_manifest(to_include: Set.new)
|
18
18
|
organization_manifest = organization_module.foobara_manifest(to_include: Set.new)
|
19
19
|
mode = Foobara::Namespace::LookupMode::DIRECT
|
20
20
|
domains = foobara_all_domain(mode:).map(&:foobara_manifest_reference).sort
|
@@ -393,7 +393,7 @@ module Foobara
|
|
393
393
|
end
|
394
394
|
|
395
395
|
# TODO: can we kill this skip concept?
|
396
|
-
def foobara_manifest(to_include:)
|
396
|
+
def foobara_manifest(to_include: Set.new)
|
397
397
|
depends_on = foobara_depends_on.map do |name|
|
398
398
|
domain = Domain.to_domain(name)
|
399
399
|
to_include << domain
|
@@ -36,7 +36,7 @@ module Foobara
|
|
36
36
|
foobara_all_domain(mode: Namespace::LookupMode::DIRECT)
|
37
37
|
end
|
38
38
|
|
39
|
-
def foobara_manifest(to_include:)
|
39
|
+
def foobara_manifest(to_include: Set.new)
|
40
40
|
domains = foobara_domains.map do |domain|
|
41
41
|
to_include << domain
|
42
42
|
domain.foobara_manifest_reference
|
@@ -17,7 +17,7 @@ module Foobara
|
|
17
17
|
types.map(&:target_class).uniq
|
18
18
|
end
|
19
19
|
|
20
|
-
def foobara_manifest(to_include:)
|
20
|
+
def foobara_manifest(to_include: Set.new)
|
21
21
|
associations = self.associations.map do |(path, type)|
|
22
22
|
entity_class = type.target_class
|
23
23
|
entity_name = entity_class.full_entity_name
|
@@ -26,10 +26,12 @@ module Foobara
|
|
26
26
|
mod
|
27
27
|
when ::String, ::Symbol
|
28
28
|
Object.const_get(mod)
|
29
|
+
when nil
|
30
|
+
Object
|
29
31
|
else
|
30
32
|
# :nocov:
|
31
33
|
raise ArgumentError,
|
32
|
-
"expected
|
34
|
+
"expected #{mod} to be a module or module name"
|
33
35
|
# :nocov:
|
34
36
|
end
|
35
37
|
|
@@ -4,7 +4,7 @@ module Foobara
|
|
4
4
|
module TypeDeclarations
|
5
5
|
class TypeDeclarationHandler < Value::Processor::Pipeline
|
6
6
|
class << self
|
7
|
-
def foobara_manifest(to_include:)
|
7
|
+
def foobara_manifest(to_include: Set.new)
|
8
8
|
# :nocov:
|
9
9
|
super.merge(processor_type: :type_declaration_handler)
|
10
10
|
# :nocov:
|
@@ -2,7 +2,7 @@ module Foobara
|
|
2
2
|
module TypeDeclarations
|
3
3
|
class TypeDeclarationHandlerRegistry < Value::Processor::Selection
|
4
4
|
class << self
|
5
|
-
def foobara_manifest(to_include:)
|
5
|
+
def foobara_manifest(to_include: Set.new)
|
6
6
|
# :nocov:
|
7
7
|
super.merge(processor_type: :type_declaration_handler_registry)
|
8
8
|
# :nocov:
|
data/projects/types/src/type.rb
CHANGED
@@ -25,7 +25,7 @@ module Foobara
|
|
25
25
|
true
|
26
26
|
end
|
27
27
|
|
28
|
-
def foobara_manifest(to_include:)
|
28
|
+
def foobara_manifest(to_include: Set.new)
|
29
29
|
errors = error_classes.map do |error_class|
|
30
30
|
to_include << error_class
|
31
31
|
error_class.foobara_manifest_reference
|
@@ -317,7 +317,7 @@ module Foobara
|
|
317
317
|
|
318
318
|
# TODO: is this in the wrong place? Should this be an extension?
|
319
319
|
|
320
|
-
def foobara_manifest(to_include:)
|
320
|
+
def foobara_manifest(to_include: Set.new)
|
321
321
|
possible_errors = self.possible_errors.map do |possible_error|
|
322
322
|
[possible_error.key.to_s, possible_error.foobara_manifest(to_include:)]
|
323
323
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foobara-util
|