foobara 0.0.29 → 0.0.30

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: 8722f293cfd3487965f3863448b8cf175481df41f364fe9c8a880c19430cbd86
4
- data.tar.gz: 14aafe8e69546446ec65694d6f48ea14b44af2e94bbd2a05a0cd71209831bfd8
3
+ metadata.gz: 2052d9d5b024d1a47bc58db2e556345569adc23512580280d636dee90e21a624
4
+ data.tar.gz: baeb2f5c0a5d0f3f9d16e57309246a9e0c188ebf4c2089c7fa61e578fed04940
5
5
  SHA512:
6
- metadata.gz: 024d6d200f25cef54f5aa8a719af536d6f5e8fbf767fa6e9aa30ac04ba6f6c2f30815964cf1e0a079944e7a588c4afb91aaadbabe6c47ca9e001f0f3b01e8649
7
- data.tar.gz: a31f5904edef9faf390075de61229dd0890e0251a1b9e5e5d870a900f7ef1744d0cf4dbedf2812e9f9559773cc8f9dc5cbec89518a237adbfc82b4dace2d5642
6
+ metadata.gz: a03fadfd01cc720964f056a826aec7bad39208a974754d919a19654e606013fc772490da495e1317cfdeae8cb3ece6de34e098d1d9710b2718643ffe808edf3f
7
+ data.tar.gz: b0bb12d7f3b2368676664838a0d54575ded39a61482479cbc31ca9c23b3223fe1210c8fdf48b20c89c7bc72e3977792813d7e249cb94cde3d2a4917ce11fec3e
data/CHANGELOG.md CHANGED
@@ -3,6 +3,7 @@
3
3
  - Fix problems with extending models/entities
4
4
  - Add a mutable class helper for models and improve mutable
5
5
  use a bit
6
+ - Fix bug when passing an unregistered Type instance to .foobara_registered?
6
7
 
7
8
  ## [0.0.28] - 2024-12-05
8
9
 
@@ -231,8 +231,12 @@ module Foobara
231
231
  all
232
232
  end
233
233
 
234
- def foobara_registered?(...)
235
- !foobara_lookup(...).nil?
234
+ def foobara_registered?(path, ...)
235
+ if path.is_a?(Types::Type)
236
+ return false unless path.scoped_path_set?
237
+ end
238
+
239
+ !foobara_lookup(path, ...).nil?
236
240
  end
237
241
 
238
242
  def method_missing(method_name, *, **, &)
@@ -14,12 +14,6 @@ module Foobara
14
14
  end
15
15
  end
16
16
 
17
- # TODO: needed/useful transformers/validators to implement:
18
- #
19
- # allow_empty (validation at attribute level)
20
- # allow_nil (validation at attribute level)
21
- # one_of (validation at attribute level)
22
-
23
17
  attr_accessor :base_type,
24
18
  :casters,
25
19
  :transformers,
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.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi