foobara 0.0.60 → 0.0.62
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: e51b9c7a0ac330e578effe12763511eba4657e4972cbe3ba28b9fbede392c1d7
|
4
|
+
data.tar.gz: de0f7f790a8d77c654b3ed8b30addb6c2a168428b64e13cfbcc1cca4518992b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a316efbfe8ba8573ce253fbb2b0c57f2d301090ff8cfc90810839d44eb5e48b82dbce8fcb52efc508123b05319cbdbc888da47e37890a7ebc7c164d7bd74d184
|
7
|
+
data.tar.gz: c9a4be820a1d925c52d6c47cc23058cc49630203b9c11705ad495b7a44bb277f4ace03dd1643acc6a779d50d2d11351f806c26d16c11f29b26e9ed21264342ce
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
## [0.0.
|
1
|
+
## [0.0.62] - 2025-02-21
|
2
|
+
|
3
|
+
- Add Manifest::Type#to_type_declaration_from_declaration_data
|
4
|
+
|
5
|
+
## [0.0.61] - 2025-02-21
|
6
|
+
|
7
|
+
- Add Manifest::Type#custom?
|
8
|
+
|
9
|
+
## [0.0.60] - 2025-02-21
|
2
10
|
|
3
11
|
- Now including domain mappers in the .depends_on call is optional. If you include any of them, you must include all
|
4
12
|
of them. Otherwise, you can include none of them and then no verification of them will be performed.
|
@@ -74,6 +74,11 @@ module Foobara
|
|
74
74
|
BuiltinTypes.builtin_reference?(reference)
|
75
75
|
end
|
76
76
|
|
77
|
+
# Not sure the best way to define this...
|
78
|
+
def custom?
|
79
|
+
!builtin? && !model?
|
80
|
+
end
|
81
|
+
|
77
82
|
def extends_symbol?(symbol)
|
78
83
|
type = base_type
|
79
84
|
|
@@ -85,6 +90,10 @@ module Foobara
|
|
85
90
|
|
86
91
|
false
|
87
92
|
end
|
93
|
+
|
94
|
+
def to_type_declaration_from_declaration_data
|
95
|
+
TypeDeclaration.new(root_manifest, [*path, :declaration_data])
|
96
|
+
end
|
88
97
|
end
|
89
98
|
end
|
90
99
|
end
|
@@ -80,6 +80,12 @@ module Foobara
|
|
80
80
|
@model = to_type.model?
|
81
81
|
end
|
82
82
|
|
83
|
+
def custom?
|
84
|
+
return @custom if defined?(@custom)
|
85
|
+
|
86
|
+
@custom = to_type.custom?
|
87
|
+
end
|
88
|
+
|
83
89
|
def to_model
|
84
90
|
raise "not an model" unless model?
|
85
91
|
raise "model extension instead of an model" unless relevant_manifest.size == 1
|