foobara 0.0.109 → 0.0.110
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71a254889aa452b7a219cb8d9b4c7d1c2eb2c21ea452ae783e62d601720c387b
|
4
|
+
data.tar.gz: 451cf0735d2c75026c92b92381e0e8a3766ed69a8a08eed739e6866e88f5b134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d758bae9e990d477c7775966b69dd1a51ae1878b938fec278a76ebbb8dd88a417e6c68f3a11174929cb86f858294bf1207206704bba70c458035e3798b12597
|
7
|
+
data.tar.gz: 9f7c770b990f942884aaa79f45f7ce344aaabaa8a939536d869802c25ccc2ada3b7ddb476119a543d5546019874ae44929af29d5437d0574e447a4f8acc398ed
|
data/CHANGELOG.md
CHANGED
@@ -90,6 +90,22 @@ module Foobara
|
|
90
90
|
self.allowed_rule = allowed_rule
|
91
91
|
self.requires_authentication = requires_authentication
|
92
92
|
self.authenticator = authenticator
|
93
|
+
|
94
|
+
# A bit hacky... we should check if we need to shim in a LoadDelegatedAttributesEntitiesPreCommitTransformer
|
95
|
+
unless aggregate_entities
|
96
|
+
# It's possible delegates have been added or removed via the result transformers...
|
97
|
+
# We should figure out a way to check the transformed result type instead.
|
98
|
+
if _has_delegated_attributes?(command_class.result_type)
|
99
|
+
self.pre_commit_transformers = [
|
100
|
+
*self.pre_commit_transformers,
|
101
|
+
CommandConnectors::Transformers::LoadDelegatedAttributesEntitiesPreCommitTransformer
|
102
|
+
].uniq
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
def _has_delegated_attributes?(type)
|
108
|
+
type&.extends?(BuiltinTypes[:model]) && type.target_class&.has_delegated_attributes?
|
93
109
|
end
|
94
110
|
|
95
111
|
def full_command_name
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.110
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
@@ -508,7 +508,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
508
508
|
- !ruby/object:Gem::Version
|
509
509
|
version: '0'
|
510
510
|
requirements: []
|
511
|
-
rubygems_version: 3.6.
|
511
|
+
rubygems_version: 3.6.8
|
512
512
|
specification_version: 4
|
513
513
|
summary: A command-centric and discoverable software framework with a focus on domain
|
514
514
|
concepts and abstracting away integration code
|