foobara 0.0.103 → 0.0.104

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: 506c445dbdf8c1bd6d1a2db990e317e3a8893754aea2f1d607aa03dccc516749
4
- data.tar.gz: e7170ed694b6bc096391a98e724080bfeab36b3b2528bd49ad105a1e1f3453fe
3
+ metadata.gz: be41d74ce30f423271c0b160d955d9ea7422e5d4337ab1d3c17deb0dae395d53
4
+ data.tar.gz: 51f8a06a9468870be7e2db0dd2116a8bca141852f27d462b4ce01b74df490710
5
5
  SHA512:
6
- metadata.gz: 5f5350c1728e42deb835e3d4d32b9ffcc7e5ae56cb4054a0738b9932c82d87d0fb6c608954f5bc0f30b55ecb7f688e6da46af364a80f40ed07c152f0c9ae6e50
7
- data.tar.gz: fbadbfb1a7a086101a2b0e02fefb06e15ad12954c816566fadd6b17728a0b27db140d3e737617ace5fd3e80cb56b57752e50caac8d7063ac61a22b13bc44a48c
6
+ metadata.gz: 49e75de0f35a1a1eb257efd6e1304ed39d340ee8531e1b768ca8fc58ab4a0bc8e4422e3c50c379565c899708ac7a0768aa87aca326240933771147c285212894
7
+ data.tar.gz: 6d3234ee0c549fd91d21fe11e16968a5fe56da263eafa90474b20baa2b091ec33b57b439891eeeccf7149e4a9d1995ebab8a3ecc864e1eb796a1a8bef60f1d63
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.0.104] - 2025-04-17
2
+
3
+ - Fix manifest bug when command has no possible errors
4
+
1
5
  # [0.0.103] - 2025-04-17
2
6
 
3
7
  - Fix bugs in complicated entity query calls involving mixtures of models/records/primary keys/attributes
@@ -3,6 +3,8 @@ module Foobara
3
3
  class Command < BaseManifest
4
4
  self.category_symbol = :command
5
5
 
6
+ optional_key :possible_errors
7
+
6
8
  def requires_authentication?
7
9
  !!self[:requires_authentication]
8
10
  end
@@ -30,7 +32,7 @@ module Foobara
30
32
  end
31
33
 
32
34
  def possible_errors
33
- super.keys.to_h do |key|
35
+ (super || {}).keys.to_h do |key|
34
36
  [key, PossibleError.new(root_manifest, [*path, :possible_errors, key])]
35
37
  end
36
38
  end
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.103
4
+ version: 0.0.104
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi