foobara 0.4.3 → 0.4.5

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: db631f3175aa83feaee1a634560a7086c24e3c46b5c7df0b0a958252b531a377
4
- data.tar.gz: 479a5728d5c86fdb689841d8cb422c564330d55a0502acbe3a32c27891573694
3
+ metadata.gz: c9eb90467864fbd690fd3e2059f27046bc4c7e53dc7ba5bd980ff08b44cd1088
4
+ data.tar.gz: f5b7cf74bb33ccd7d9fbc150ec7d69e35950ebb5b51ede6a3759ad4ba013e23d
5
5
  SHA512:
6
- metadata.gz: de898a650ff1066c7eb4ac304050a77c3a08bbf075bca85e7cf22c448a1ea3a1f128dd8cec36356a0cf1cae7a2590b3a98f547090f94b43674808b62c4178009
7
- data.tar.gz: 6d900e6391ebd970950e43c42b106cbc0595480e14c7c594f90ed7be564234235f242b1824117cdc41975056e55763b854acfa4f6e412f02e6371e2b779a44d6
6
+ metadata.gz: e33b8c37bce9d8551f71ef3a29152014f17458401d2dec35090a2cdab2a98f1669c7b30fb6b3c8fd1488ec5185e319b6e3ab1ffdccef2bc13de4d63550788499
7
+ data.tar.gz: e2dde5609e9b65c3be3d024b2baf726478b4e7ca2ad2f92a64b4267bb910beb5f23e2c46363c138bc77284e13c53eadac760939aa2cdbc6a2eaef082711b81fc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [0.4.5] - 2026-01-24
2
+
3
+ - Makes sure domain manifest data is in a deterministic order
4
+
5
+ # [0.4.4] - 2026-01-20
6
+
7
+ - Support authenticators that don't have relevant entity classes
8
+ - Fix a bug where we don't look in the dependent domain for a model type to extend
9
+
1
10
  # [0.4.3] - 2026-01-19
2
11
 
3
12
  - Allow a request to handle auth mapper methods
@@ -13,7 +13,7 @@ module Foobara
13
13
  command_class.foobara_manifest_reference
14
14
  end.sort
15
15
 
16
- super.merge(commands:)
16
+ Util.sort_by_keys!(super.merge(commands:))
17
17
  end
18
18
  end
19
19
  end
@@ -150,8 +150,12 @@ module Foobara
150
150
  # TODO: move this to entity_plumbing
151
151
  def relevant_entity_classes
152
152
  if command_class.is_a?(::Class) && command_class < TransformedCommand
153
- entity_classes = authenticator&.relevant_entity_classes(self)
154
- [*entity_classes, *relevant_entity_classes_from_inputs_transformer]
153
+ if authenticator.respond_to?(:relevant_entity_classes)
154
+ entity_classes = authenticator.relevant_entity_classes(self)
155
+ [*entity_classes, *relevant_entity_classes_from_inputs_transformer]
156
+ else
157
+ relevant_entity_classes_from_inputs_transformer
158
+ end
155
159
  end || EMPTY_ARRAY
156
160
  end
157
161
 
@@ -540,7 +540,7 @@ module Foobara
540
540
  Value::Transformer.create(transform: transformer)
541
541
  else
542
542
  # :nocov:
543
- raise "Not sure how to apply #{inputs_transformer}"
543
+ raise "Not sure how to apply #{transformer}"
544
544
  # :nocov:
545
545
  end
546
546
  end
@@ -16,8 +16,12 @@ module Foobara
16
16
 
17
17
  def declaration_to_type(strict_type_declaration)
18
18
  # TODO: cache this on a #base_type= helper
19
- strict_type_declaration.type ||
20
- lookup_type(strict_type_declaration[:type], mode: Namespace::LookupMode::ABSOLUTE_SINGLE_NAMESPACE)
19
+ type = strict_type_declaration.type
20
+ return type if type
21
+
22
+ type_symbol = strict_type_declaration[:type]
23
+
24
+ lookup_type(type_symbol, mode: Namespace::LookupMode::ABSOLUTE)
21
25
  end
22
26
  end
23
27
  end
@@ -11,6 +11,7 @@ module Foobara
11
11
 
12
12
  start = result.nil?
13
13
  result ||= Set.new
14
+
14
15
  return if result.include?(self)
15
16
 
16
17
  result << self
data/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Foobara
2
2
  module Version
3
- VERSION = "0.4.3".freeze
3
+ VERSION = "0.4.5".freeze
4
4
  MINIMUM_RUBY_VERSION = ">= 3.4.0".freeze
5
5
  end
6
6
  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.4.3
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi