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 +4 -4
- data/CHANGELOG.md +4 -0
- data/projects/command/src/transformed_command.rb +38 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a36c133c68acf0ea569d20a21409921f0c5dfe0e147c830f2572b84bda6d77b2
|
4
|
+
data.tar.gz: e0e44b5fb75ab902e32b8200ef8a19420f1aaee94f8786c6af63731463e78318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2d7343f12f57901d9d60c9ef419e35938bf77e2a9552ea0ef095d33cd07fd0f648d9d8f78698842c94ffb0fcc447fbe1a64ea62d5d5ae5569ea0c127fba8d60
|
7
|
+
data.tar.gz: 97edd6f9217b2fd7651f72643671ad7ce191772d6472f4a1715eb66ca93506181c43614ddef6c3405de3f579d9765e5a135ce0383e5547a19b1b7e21faead8a8
|
data/CHANGELOG.md
CHANGED
@@ -296,10 +296,8 @@ module Foobara
|
|
296
296
|
end
|
297
297
|
end
|
298
298
|
|
299
|
-
response_mutators = self.response_mutators
|
300
|
-
request_mutators =
|
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
|
|