Module: Isolate::Lockdown
- Defined in:
- lib/isolate/lockdown.rb
Instance Method Summary collapse
-
#legitimize!(deps) ⇒ Object
Adapt from Isolate own source code.
Instance Method Details
#legitimize!(deps) ⇒ Object
Adapt from Isolate own source code
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/isolate/lockdown.rb', line 6 def legitimize!(deps) specs = [] deps.flatten.each do |dep| spec = Gem.source_index.find_name(dep.name, dep.requirement).last if spec specs.concat legitimize!(spec.runtime_dependencies) specs << spec end end specs.uniq end |