class Bundler::Molinillo::Resolver::Resolution

def attempt_to_activate_new_spec

Returns:
  • (void) -
def attempt_to_activate_new_spec
  satisfied = begin
    locked_requirement = locked_requirement_named(name)
    requested_spec_satisfied = requirement_satisfied_by?(requirement, activated, possibility)
    locked_spec_satisfied = !locked_requirement ||
      requirement_satisfied_by?(locked_requirement, activated, possibility)
    debug(depth) { 'Unsatisfied by requested spec' } unless requested_spec_satisfied
    debug(depth) { 'Unsatisfied by locked spec' } unless locked_spec_satisfied
    requested_spec_satisfied && locked_spec_satisfied
  end
  if satisfied
    activate_spec
  else
    create_conflict
    unwind_for_conflict
  end
end