method
retrieve_active_spec
v2_6_3 -
Show latest stable
- Class:
Bundler::CLI::Outdated
retrieve_active_spec(strict, definition, current_spec)private
No documentation available.
# File lib/bundler/cli/outdated.rb, line 170
def retrieve_active_spec(strict, definition, current_spec)
if strict
active_spec = definition.find_resolved_spec(current_spec)
else
active_specs = definition.find_indexed_specs(current_spec)
if !current_spec.version.prerelease? && !options[:pre] && active_specs.size > 1
active_specs.delete_if {|b| b.respond_to?(:version) && b.version.prerelease? }
end
active_spec = active_specs.last
end
active_spec
end