foobara 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/projects/namespace/src/is_namespace.rb +6 -2
- data/projects/types/src/type.rb +0 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2052d9d5b024d1a47bc58db2e556345569adc23512580280d636dee90e21a624
|
4
|
+
data.tar.gz: baeb2f5c0a5d0f3f9d16e57309246a9e0c188ebf4c2089c7fa61e578fed04940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a03fadfd01cc720964f056a826aec7bad39208a974754d919a19654e606013fc772490da495e1317cfdeae8cb3ece6de34e098d1d9710b2718643ffe808edf3f
|
7
|
+
data.tar.gz: b0bb12d7f3b2368676664838a0d54575ded39a61482479cbc31ca9c23b3223fe1210c8fdf48b20c89c7bc72e3977792813d7e249cb94cde3d2a4917ce11fec3e
|
data/CHANGELOG.md
CHANGED
@@ -231,8 +231,12 @@ module Foobara
|
|
231
231
|
all
|
232
232
|
end
|
233
233
|
|
234
|
-
def foobara_registered?(...)
|
235
|
-
|
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, *, **, &)
|
data/projects/types/src/type.rb
CHANGED
@@ -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,
|