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)


430
431
432
433
434
435
436
437
438
439
440
441
# File 'lib/bundler/rubygems_ext.rb', line 430

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