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: 66d592a242dce3e961e2ced3ff1a86de06c4d2a2689aa4855ad5a4ca7c5f53e9
4
- data.tar.gz: c8b15ee8720b452e8e1d120372d51796ac901b733907f98b60d68dec02bf0dc7
3
+ metadata.gz: e51b9c7a0ac330e578effe12763511eba4657e4972cbe3ba28b9fbede392c1d7
4
+ data.tar.gz: de0f7f790a8d77c654b3ed8b30addb6c2a168428b64e13cfbcc1cca4518992b4
5
5
  SHA512:
6
- metadata.gz: 9993251bdfc128748b97119cafd9fd6f939c1f73617d5b5b0096d9171deaf24f8a125c653160b5576d44c1422fe63e2f044b29b235a2801668502170ea7c5c0e
7
- data.tar.gz: 8fbcc20d12ff7a3dab1d0ba92c67df095ba73979d407c167816db610bc9ade966e8c6c2bfb4effebbf0ac3b9396554a420b772ec2c6a1a7603cd466602a08aec
6
+ metadata.gz: a316efbfe8ba8573ce253fbb2b0c57f2d301090ff8cfc90810839d44eb5e48b82dbce8fcb52efc508123b05319cbdbc888da47e37890a7ebc7c164d7bd74d184
7
+ data.tar.gz: c9a4be820a1d925c52d6c47cc23058cc49630203b9c11705ad495b7a44bb277f4ace03dd1643acc6a779d50d2d11351f806c26d16c11f29b26e9ed21264342ce
data/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
- ## [0.0.60] - 2025-02-22
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
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.60
4
+ version: 0.0.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi