Sha256: 7fa5306843b2921e11ac74ea445a7d5adef180bce21aa01dc5a38f9a43b3b0dc
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
require 'semverse' module Solve require_relative 'solve/artifact' require_relative 'solve/demand' require_relative 'solve/dependency' require_relative 'solve/version' require_relative 'solve/errors' require_relative 'solve/graph' require_relative 'solve/solver' class << self # @return [Solve::Formatter] attr_reader :tracer # 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 # # @option options [Boolean] :sorted (false) # should the output be a sorted list rather than a Hash # # @raise [NoSolutionError] # # @return [Hash] def it!(graph, demands, options = {}) Solver.new(graph, demands).resolve(options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solve-1.2.1 | lib/solve.rb |
solve-1.2.0 | lib/solve.rb |