foobara 0.0.60 → 0.0.61

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: 3a3b99978753271dc5d62b11b9132b0301d3285075c1cf61b0672713e7beb0ae
4
+ data.tar.gz: c127430a4d7408018e8475d1ebe5311114f8709a04ba448665214605895eb45b
5
5
  SHA512:
6
- metadata.gz: 9993251bdfc128748b97119cafd9fd6f939c1f73617d5b5b0096d9171deaf24f8a125c653160b5576d44c1422fe63e2f044b29b235a2801668502170ea7c5c0e
7
- data.tar.gz: 8fbcc20d12ff7a3dab1d0ba92c67df095ba73979d407c167816db610bc9ade966e8c6c2bfb4effebbf0ac3b9396554a420b772ec2c6a1a7603cd466602a08aec
6
+ metadata.gz: 962b7fa09bafe6bccf89c7d963069eb6207f91c0d7656ba988b87f0cd271e148a8d03d0e86e092c2f536977ef5634a54ca90ca46e334e98448d09be8e1e5fd0d
7
+ data.tar.gz: 02d17842a63a15dee83b364bde44b3844d59ec796005c04648e65199aa699e5642dada7aa1ca4121df3409a6c778eb4c40e41ecbb1bf39423e6fc78a1f80b515
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.61] - 2025-02-22
2
+
3
+ - Add Manifest::Type#custom?
4
+
1
5
  ## [0.0.60] - 2025-02-22
2
6
 
3
7
  - Now including domain mappers in the .depends_on call is optional. If you include any of them, you must include all
@@ -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
 
@@ -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.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi