lib/solve.rb in solve-3.1.1 vs lib/solve.rb in solve-4.0.0

- old
+ new

@@ -1,16 +1,16 @@ -require 'semverse' +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/ruby_solver' - require_relative 'solve/gecode_solver' + 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/ruby_solver" + require_relative "solve/gecode_solver" # We have to set the default engine here, it gets set on the wrong object if # we put this in the metaclass context below. @engine = :ruby @@ -21,11 +21,10 @@ # Returns the currently configured engine. # @see #engine= # @return [Symbol] attr_reader :engine - # Sets the solving backend engine. Solve supports 2 engines: # * `:ruby` - Molinillo, a pure ruby solver # * `:gecode` - dep-selector, a wrapper around the Gecode CSP solver library # # Note that dep-selector is an optional dependency and may therefore not be @@ -75,6 +74,5 @@ private :solver_for_engine end end -