2016-02-01 07:43:26 -05:00
|
|
|
# frozen_string_literal: true
|
2013-11-10 12:51:40 -05:00
|
|
|
##
|
|
|
|
# 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.
|
2013-10-17 21:57:00 -04:00
|
|
|
|
2013-11-18 19:34:13 -05:00
|
|
|
class Gem::Resolver::VendorSpecification < Gem::Resolver::SpecSpecification
|
2013-10-17 21:57:00 -04:00
|
|
|
|
|
|
|
def == other # :nodoc:
|
|
|
|
self.class === other and
|
|
|
|
@set == other.set and
|
2013-11-10 12:51:40 -05:00
|
|
|
@spec == other.spec and
|
|
|
|
@source == other.source
|
2013-10-17 21:57:00 -04:00
|
|
|
end
|
|
|
|
|
2013-11-25 14:14:49 -05:00
|
|
|
##
|
|
|
|
# This is a null install as this gem was unpacked into a directory.
|
|
|
|
# +options+ are ignored.
|
|
|
|
|
2014-09-13 23:30:02 -04:00
|
|
|
def install options = {}
|
2013-11-25 14:14:49 -05:00
|
|
|
yield nil
|
|
|
|
end
|
|
|
|
|
2013-10-17 21:57:00 -04:00
|
|
|
end
|
|
|
|
|