foobara 0.0.72 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f37230e03dfeded35416a8552cb0877017b3258cf994be9b223da77a833fc5a
4
- data.tar.gz: 8eeb368cb063d05208513067d39e353e43074abe54d40767867b593cbd9157b7
3
+ metadata.gz: 1326856ed75154d47fbe351c8d7a4ba08dafd269d5dcdd8e3c305dd3f047c7b3
4
+ data.tar.gz: 4d000b83ad506c73cc4f0cfb4822bf5f624ad311a37c3afc56450b1d3b68d794
5
5
  SHA512:
6
- metadata.gz: e6732b1d9abb5f2b9a8e738adf2db35cfaba3f8e0decd30de843ae09efb007a5ead774075390e8648030c3f52c17b2c124b1647614b56a6a22c2634eef8c5bdf
7
- data.tar.gz: 176d48303bb79763ef67b0485cd90ff657fa406f1727969ae5c674d3f3b874ca7e466d4190c48910d1b968666665cfe23cfbf36302d38d88ac3ec48b0a575721
6
+ metadata.gz: 967a37b97638d59fe862a6712a952808ee90bbd9d79c32aea83ebb87abe0c77ff7c0cca955b0935b1b0c134729189254b27bf627367302aab217396cbca0ce99
7
+ data.tar.gz: 5d06f9149366ed0d1fe8fe5a72ea7aca5f4f9c33c837d000ebbb1b40d83bf1da90c01a9ba7aa9236e6d79de432d1570d21597a5c5d6c98936f51db9526a7fc67
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.0.73] - 2025-03-11
2
+
3
+ - Fix bug preventing false from being used as a default in the Attributes::Dsl
4
+
1
5
  # [0.0.72] - 2025-03-07
2
6
 
3
7
  - Fix bug in find_many_by when there are required attributes not present in the filter
@@ -12,6 +12,7 @@ module Foobara
12
12
  false
13
13
  end
14
14
  end
15
+
15
16
  def applicable?(value)
16
17
  value.nil? && allow_nil?
17
18
  end
@@ -107,9 +107,9 @@ module Foobara
107
107
  _add_to_required(attribute_name)
108
108
  end
109
109
 
110
- default = declaration.delete(:default)
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 its applicable regardless of value to transform. Override if different behavior is needed.
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.72
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-08 00:00:00.000000000 Z
10
+ date: 2025-03-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bigdecimal