foobara 0.0.111 → 0.0.112

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: 0ff2cd0b6537dbf44f0ef865a8fc6c8ac339d7b306cb67ddfcb744b74d2cb73d
4
- data.tar.gz: cc3a822e6a43b1f2f27070c85fe2a4c07bc6a0274b963816fa3ef55bb531b597
3
+ metadata.gz: a36c133c68acf0ea569d20a21409921f0c5dfe0e147c830f2572b84bda6d77b2
4
+ data.tar.gz: e0e44b5fb75ab902e32b8200ef8a19420f1aaee94f8786c6af63731463e78318
5
5
  SHA512:
6
- metadata.gz: 4f1a8853b814a569aeaa4ac67d53363fe5349658f9e9f8214f2c05d649154fcc6b60be0f249e2912485dbc0689ade4ae1e67e2e5b913f478ff8a4151756a1542
7
- data.tar.gz: c52ccae166bf419ba503653a29aa4bde3b8094c2ba190f611e877eec13ada47bd787c448db5506def4f5cebb73748a215d4de0d2d6dc30325f5c110347ad12bd
6
+ metadata.gz: f2d7343f12f57901d9d60c9ef419e35938bf77e2a9552ea0ef095d33cd07fd0f648d9d8f78698842c94ffb0fcc447fbe1a64ea62d5d5ae5569ea0c127fba8d60
7
+ data.tar.gz: 97edd6f9217b2fd7651f72643671ad7ce191772d6472f4a1715eb66ca93506181c43614ddef6c3405de3f579d9765e5a135ce0383e5547a19b1b7e21faead8a8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.0.112] - 2025-04-25
2
+
3
+ - Fix bugs preventing generating manifest for connector with mutator instances instead of classes
4
+
1
5
  # [0.0.111] - 2025-04-25
2
6
 
3
7
  - Fix bug in DomainMapper.depends_on
@@ -296,10 +296,8 @@ module Foobara
296
296
  end
297
297
  end
298
298
 
299
- response_mutators = self.response_mutators.map(&:foobara_manifest)
300
- request_mutators = TypeDeclarations.with_manifest_context(remove_sensitive: false) do
301
- self.request_mutators.map(&:foobara_manifest)
302
- end
299
+ response_mutators = mutators_to_manifest_symbols(self.response_mutators, to_include:)
300
+ request_mutators = mutators_to_manifest_symbols(self.request_mutators, to_include:)
303
301
 
304
302
  authenticator_manifest = if authenticator
305
303
  if authenticator.respond_to?(:foobara_manifest)
@@ -345,6 +343,42 @@ module Foobara
345
343
  )
346
344
  end
347
345
 
346
+ def mutators_to_manifest_symbols(mutators, to_include:)
347
+ return nil if mutators.nil? || mutators.empty?
348
+
349
+ mutators.map do |mutator|
350
+ if mutator.scoped_path_set?
351
+ to_include << mutator
352
+ mutator.foobara_manifest_reference
353
+ elsif mutator.is_a?(Value::Mutator)
354
+ klass = mutator.class
355
+
356
+ if klass.scoped_path_set?
357
+ to_include << klass
358
+ klass.foobara_manifest_reference
359
+ # TODO: Delete this nocov block
360
+ # TODO: make anonymous scoped path's have better names instead of random hexadecimal
361
+ # :nocov:
362
+ elsif mutator.symbol
363
+ mutator.symbol
364
+ else
365
+
366
+ to_include << klass if klass.scoped_path_set?
367
+
368
+ name = klass.name
369
+
370
+ while name.nil?
371
+ klass = klass.superclass
372
+ name = klass.name
373
+ end
374
+
375
+ "Anonymous#{Util.non_full_name(name)}"
376
+ # :nocov:
377
+ end
378
+ end
379
+ end
380
+ end
381
+
348
382
  def inputs_transformer
349
383
  return @inputs_transformer if defined?(@inputs_transformer)
350
384
 
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.111
4
+ version: 0.0.112
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi