Sha256: 27b227383ea9d35354dab1c0b85f3bc8118c3d0076d60b6d95cd66bf1b78c52f

Contents?: true

Size: 516 Bytes

Versions: 179

Compression:

Stored size: 516 Bytes

Contents

module Bundler::PubGrub
  class Assignment
    attr_reader :term, :cause, :decision_level, :index
    def initialize(term, cause, decision_level, index)
      @term = term
      @cause = cause
      @decision_level = decision_level
      @index = index
    end

    def self.decision(package, version, decision_level, index)
      term = Term.new(VersionConstraint.exact(package, version), true)
      new(term, :decision, decision_level, index)
    end

    def decision?
      cause == :decision
    end
  end
end

Version data entries

179 entries across 179 versions & 5 rubygems

Version Path
rubygems-update-3.6.3 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.6.3 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/bundler-2.5.5/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.6.2 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.6.2 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.6.1 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.6.1 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.6.0 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.6.0 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.23 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.23 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.22 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.22 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.21 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.21 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.20 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.20 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb