class Bundler::GemInstaller

def previous_spec

def previous_spec
  locked_gems = installer.definition.locked_gems
  return unless locked_gems
  locked_gems.specs.find {|s| s.name == spec.name }
end