Class: Resolver::ActivationRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/rubygems_ext.rb

Instance Method Summary collapse

Instance Method Details

#installed?Boolean

Returns:

  • (Boolean)


441
442
443
444
445
446
447
448
449
450
451
452
# File 'lib/bundler/rubygems_ext.rb', line 441

def installed?
  case @spec
  when Gem::Resolver::VendorSpecification then
    true
  else
    this_spec = full_spec

    Gem::Specification.any? do |s|
      s == this_spec && s.base_dir == this_spec.base_dir
    end
  end
end