class Bundler::CLI::Outdated

def print_gem(current_spec, active_spec, dependency, groups)

def print_gem(current_spec, active_spec, dependency, groups)
  spec_version = "#{active_spec.version}#{active_spec.git_version}"
  if Bundler.ui.debug?
    loaded_from = loaded_from_for(active_spec)
    spec_version += " (from #{loaded_from})" if loaded_from
  end
  current_version = "#{current_spec.version}#{current_spec.git_version}"
  if dependency&.specific?
    dependency_version = %(, requested #{dependency.requirement})
  end
  spec_outdated_info = "#{active_spec.name} (newest #{spec_version}, " \
    "installed #{current_version}#{dependency_version})"
  output_message = if options[:parseable]
    spec_outdated_info.to_s
  elsif options_include_groups || groups.empty?
    "  * #{spec_outdated_info}"
  else
    "  * #{spec_outdated_info} in #{groups_text("group", groups)}"
  end
  Bundler.ui.info output_message.rstrip
end