Class: Bundler::Interactive::UpdateInteractive::ResolvedSpecs

Inherits:
Struct
  • Object
show all
Defined in:
lib/bundler/interactive/update_interactive.rb

Overview

Adapts a resolved Bundler SpecSet to the lookup the resolver expects. (Bundler::Definition#find_resolved_spec was removed in Bundler 4.x.)

Instance Method Summary collapse

Instance Method Details

#find_resolved_spec(current_spec) ⇒ Object



339
340
341
# File 'lib/bundler/interactive/update_interactive.rb', line 339

def find_resolved_spec(current_spec)
  spec_set.find_by_name_and_platform(current_spec.name, current_spec.platform)
end