foobara 0.0.71 → 0.0.73
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/projects/builtin_types/src/duck/supported_casters/allow_nil.rb +1 -0
- data/projects/detached_entity/src/concerns/associations.rb +1 -1
- data/projects/persistence/src/entity_base/transaction_table.rb +2 -1
- data/projects/type_declarations/src/dsl/attributes.rb +2 -2
- data/projects/value/src/processor.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1326856ed75154d47fbe351c8d7a4ba08dafd269d5dcdd8e3c305dd3f047c7b3
|
4
|
+
data.tar.gz: 4d000b83ad506c73cc4f0cfb4822bf5f624ad311a37c3afc56450b1d3b68d794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 967a37b97638d59fe862a6712a952808ee90bbd9d79c32aea83ebb87abe0c77ff7c0cca955b0935b1b0c134729189254b27bf627367302aab217396cbca0ce99
|
7
|
+
data.tar.gz: 5d06f9149366ed0d1fe8fe5a72ea7aca5f4f9c33c837d000ebbb1b40d83bf1da90c01a9ba7aa9236e6d79de432d1570d21597a5c5d6c98936f51db9526a7fc67
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# [0.0.73] - 2025-03-11
|
2
|
+
|
3
|
+
- Fix bug preventing false from being used as a default in the Attributes::Dsl
|
4
|
+
|
5
|
+
# [0.0.72] - 2025-03-07
|
6
|
+
|
7
|
+
- Fix bug in find_many_by when there are required attributes not present in the filter
|
8
|
+
|
1
9
|
# [0.0.71] - 2025-03-06
|
2
10
|
|
3
11
|
- Make require_primary_key: the default in AttributesHelpers
|
@@ -136,7 +136,7 @@ module Foobara
|
|
136
136
|
if element_type
|
137
137
|
construct_associations(element_type, path.append(:"#"), result)
|
138
138
|
end
|
139
|
-
elsif type.extends?(BuiltinTypes[:attributes])
|
139
|
+
elsif type.extends?(BuiltinTypes[:attributes]) # TODO: matches attributes itself instead of only subtypes
|
140
140
|
type.element_types.each_pair do |attribute_name, element_type|
|
141
141
|
construct_associations(element_type, path.append(attribute_name), result)
|
142
142
|
end
|
@@ -282,7 +282,8 @@ module Foobara
|
|
282
282
|
end
|
283
283
|
|
284
284
|
def find_many_by(attributes_filter)
|
285
|
-
|
285
|
+
find_by_type = entity_class.domain.foobara_type_from_declaration(entity_class.attributes_for_find_by)
|
286
|
+
attributes_filter = find_by_type.process_value!(attributes_filter)
|
286
287
|
|
287
288
|
yielded_ids = Set.new
|
288
289
|
|
@@ -107,9 +107,9 @@ module Foobara
|
|
107
107
|
_add_to_required(attribute_name)
|
108
108
|
end
|
109
109
|
|
110
|
-
|
110
|
+
if declaration.key?(:default)
|
111
|
+
default = declaration.delete(:default)
|
111
112
|
|
112
|
-
if default
|
113
113
|
_add_to_defaults(attribute_name, default)
|
114
114
|
end
|
115
115
|
|
@@ -208,7 +208,7 @@ module Foobara
|
|
208
208
|
always_applicable?
|
209
209
|
end
|
210
210
|
|
211
|
-
# This means
|
211
|
+
# This means it's applicable regardless of value to transform. Override if different behavior is needed.
|
212
212
|
def always_applicable?
|
213
213
|
!!declaration_data
|
214
214
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.73
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-12 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: bigdecimal
|