Class: Cbratest::TransitiveAffectedComponentFinder
- Inherits:
-
Object
- Object
- Cbratest::TransitiveAffectedComponentFinder
- Defined in:
- lib/cobratest/transitive_affected_component_finder.rb
Instance Method Summary collapse
Instance Method Details
#find(affected) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/cobratest/transitive_affected_component_finder.rb', line 3 def find(affected) all_affected = {} affected.keys.each do |key| gem = GemfileScraper.new(key[:options][:path]) if gem.transitive_cobra_dependencies.any? { |dep| affected[dep] } all_affected[key] = true else all_affected[key] = affected[key] || false end end all_affected end |