foobara 0.0.108 → 0.0.109

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: a6229c57edc14afe9facb9e97af267fcd15e451ee8bf2acef8570eb6c5ec10e4
4
- data.tar.gz: 2a7df403a2735b6c6f539bfad23c95d211e90d40c01bead9390060655a1c7f1b
3
+ metadata.gz: ee346090e6fcaa8a036f4edd3df0eda6ca76b55d600906b86226aa8c4a13862d
4
+ data.tar.gz: 403fd19ededf68298e03087abeb747a23e7015d4f45981bf0afefab64a5bd204
5
5
  SHA512:
6
- metadata.gz: 79936bf327a870ac068df58619239b36e79ef48bf75263feba30a67c16e01202757d0d7428851cfb0c8234cc60ed8454f4a41ce61da8f027bd49a5236c6bf4d4
7
- data.tar.gz: 624175000edf49d2188a15a8b418d3927b757660c6637fe8916a6a87a6d3793aef5db2ae0985f7892327910eae872c0ecfed55bde53caaf416b0f490de11d6f0
6
+ metadata.gz: 70dba1fa9bbed33a1cee53a7b64c1d36b417b1a148f678a1a52878b9677b550f7bd0d47f644c4df4bb7c08591bc0d288ad13423c9af88a61e613f9ca82dd216e
7
+ data.tar.gz: 8aeb22a52568439b29b0ba823a7add6b18301b0bd08f2532ca5829c36364634c5d7145894d694c7dab8af1b63229a1c3bc7ffcc06881e52b28b4ea6c51ef0b2c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.0.109] - 2025-04-22
2
+
3
+ - Support CommandConnector transformers that don't take declaration_data
4
+
1
5
  # [0.0.108] - 2025-04-22
2
6
 
3
7
  - Fix bug in CommandConnector::NotFoundError constructor
@@ -424,7 +424,8 @@ module Foobara
424
424
  target_type = new_type if new_type
425
425
  end
426
426
  else
427
- transformer.new(declaration_data)
427
+ # TODO: perhaps pass in the command connector as the parent declaration data?
428
+ transformer.new_with_agnostic_args(declaration_data:)
428
429
  end
429
430
  elsif transformer.is_a?(Value::Processor)
430
431
  transformer
@@ -1,14 +1,14 @@
1
1
  module Foobara
2
2
  class CommandConnector
3
3
  class Authenticator
4
- attr_accessor :block, :explanation, :symbol
4
+ attr_reader :block, :explanation, :symbol
5
5
 
6
6
  def initialize(symbol: nil, explanation: nil, &block)
7
7
  symbol ||= Util.non_full_name_underscore(self.class).to_sym
8
8
 
9
- self.symbol = symbol
10
- self.block = block
11
- self.explanation = explanation || symbol
9
+ @symbol = symbol
10
+ @block = block
11
+ @explanation = explanation || symbol
12
12
  end
13
13
 
14
14
  def to_proc
@@ -43,6 +43,7 @@ module Foobara
43
43
  authenticator_registry[authenticator.symbol] = authenticator
44
44
  end
45
45
 
46
+ # TODO: relocate to Authenticator
46
47
  def to_authenticator(*args)
47
48
  symbol, object = case args.size
48
49
  when 1
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.108
4
+ version: 0.0.109
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi