Method: LibGems::DependencyList#ok?

Defined in:
lib/libgems/dependency_list.rb

#ok?Boolean

Are all the dependencies in the list satisfied?

Returns:

  • (Boolean)


106
107
108
109
110
111
112
# File 'lib/libgems/dependency_list.rb', line 106

def ok?
  @specs.all? do |spec|
    spec.runtime_dependencies.all? do |dep|
      @specs.find { |s| s.satisfies_requirement? dep }
    end
  end
end