Sha256: e995c2be8e63dbe9f3d62dcac07c4c8792fcae40776394e713a3cbe6448d4f71

Contents?: true

Size: 1.53 KB

Versions: 94

Compression:

Stored size: 1.53 KB

Contents

require 'bundler/vendor/molinillo/lib/molinillo/dependency_graph'

module Bundler::Molinillo
  # This class encapsulates a dependency resolver.
  # The resolver is responsible for determining which set of dependencies to
  # activate, with feedback from the the {#specification_provider}
  #
  #
  class Resolver
    require 'bundler/vendor/molinillo/lib/molinillo/resolution'

    # @return [SpecificationProvider] the specification provider used
    #   in the resolution process
    attr_reader :specification_provider

    # @return [UI] the UI module used to communicate back to the user
    #   during the resolution process
    attr_reader :resolver_ui

    # @param  [SpecificationProvider] specification_provider
    #   see {#specification_provider}
    # @param  [UI] resolver_ui
    #   see {#resolver_ui}
    def initialize(specification_provider, resolver_ui)
      @specification_provider = specification_provider
      @resolver_ui = resolver_ui
    end

    # Resolves the requested dependencies into a {DependencyGraph},
    # locking to the base dependency graph (if specified)
    # @param [Array] requested an array of 'requested' dependencies that the
    #   {#specification_provider} can understand
    # @param [DependencyGraph,nil] base the base dependency graph to which
    #   dependencies should be 'locked'
    def resolve(requested, base = DependencyGraph.new)
      Resolution.new(specification_provider,
                     resolver_ui,
                     requested,
                     base).
        resolve
    end
  end
end

Version data entries

94 entries across 66 versions & 5 rubygems

Version Path
rb2exe-0.1.43 bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
rb2exe-0.1.40 bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
rb2exe-0.1.39 bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
rb2exe-0.1.38 bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
rb2exe-0.1.29 bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
rb2exe-0.1.14 bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
rb2exe-0.1.12 bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.11.2 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.11.1 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.11.0 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.11.0.pre.2 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.11.0.pre.1 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
shopify-bundler-1.10.7 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.10.6 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.10.5 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.9.10 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.10.4 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.10.3 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.10.2 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
bundler-1.10.1 lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb