Class: Gem::Resolver::VendorSpecification

Inherits:
SpecSpecification show all
Defined in:
lib/rubygems/resolver/vendor_specification.rb

Overview

A VendorSpecification represents a gem that has been unpacked into a project and is being loaded through a gem dependencies file through the path: option.

Instance Attribute Summary

Attributes inherited from Specification

#dependencies, #name, #platform, #set, #source, #spec, #version

Instance Method Summary collapse

Methods inherited from SpecSpecification

#dependencies, #full_name, #initialize, #name, #platform, #version

Methods inherited from Specification

#download, #fetch_development_dependencies, #full_name, #initialize, #installable_platform?, #local?

Constructor Details

This class inherits a constructor from Gem::Resolver::SpecSpecification

Instance Method Details

#==(other) ⇒ Object

:nodoc:


8
9
10
11
12
13
# File 'lib/rubygems/resolver/vendor_specification.rb', line 8

def ==(other) # :nodoc:
  self.class === other and
    @set  == other.set and
    @spec == other.spec and
    @source == other.source
end

#install(options = {}) {|nil| ... } ⇒ Object

This is a null install as this gem was unpacked into a directory. options are ignored.

Yields:

  • (nil)

19
20
21
# File 'lib/rubygems/resolver/vendor_specification.rb', line 19

def install(options = {})
  yield nil
end