Sha256: a103199c27ebf96583b98bc50319d9c27234fba92e4ab531bea189b848e01187
Contents?: true
Size: 934 Bytes
Versions: 3
Compression:
Stored size: 934 Bytes
Contents
module Solve require_relative 'solve/artifact' require_relative 'solve/constraint' require_relative 'solve/demand' require_relative 'solve/dependency' require_relative 'solve/gem_version' require_relative 'solve/errors' require_relative 'solve/graph' require_relative 'solve/solver' require_relative 'solve/version' class << self # A quick solve. Given the "world" as we know it (the graph) and a list of # requirements (demands) which must be met. Return me the best solution of # artifacts and verisons that I should use. # # If a ui object is passed in, the resolution will be traced # # @param [Solve::Graph] graph # @param [Array<Solve::Demand>, Array<String, String>] demands # @param [#say, nil] ui (nil) # # @raise [NoSolutionError] # # @return [Hash] def it!(graph, demands, ui = nil) Solver.new(graph, demands, ui).resolve end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
solve-0.6.1 | lib/solve.rb |
solve-0.6.0 | lib/solve.rb |
solve-0.5.0 | lib/solve.rb |