foobara 0.4.3 → 0.4.4

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: 1bf3d5a0446977b9a62d890956d294cbe24761295f9f8c1c9ad6d4101a280532
4
+ data.tar.gz: 1d680e4acd71324924ffa28f75dc36d8c4f11b648dc1ff1d3c01b647d4e635c5
5
5
  SHA512:
6
- metadata.gz: de898a650ff1066c7eb4ac304050a77c3a08bbf075bca85e7cf22c448a1ea3a1f128dd8cec36356a0cf1cae7a2590b3a98f547090f94b43674808b62c4178009
7
- data.tar.gz: 6d900e6391ebd970950e43c42b106cbc0595480e14c7c594f90ed7be564234235f242b1824117cdc41975056e55763b854acfa4f6e412f02e6371e2b779a44d6
6
+ metadata.gz: 7b76877ed83b42e1e625b04a5c3ede92e93627f772568524f3a9cec50868e0b44f8a06dadf4d65b882301866d82708a88827733f9e6da5f6b2f6833f18e0d5b7
7
+ data.tar.gz: d0f8710c28628a270409c5eb10ca4d71d07e8be9cf18b81d3319b12c5399cc6476cfca81c09ad83dcd774fcd11246a270ebf1149438eac89b6d5e0d57c9276ce
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # [0.4.4] - 2026-01-20
2
+
3
+ - Support authenticators that don't have relevant entity classes
4
+ - Fix a bug where we don't look in the dependent domain for a model type to extend
5
+
1
6
  # [0.4.3] - 2026-01-19
2
7
 
3
8
  - Allow a request to handle auth mapper methods
@@ -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.4".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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi