Module: Bundler::MatchPlatform

Includes:
GemHelpers
Included in:
EndpointSpecification, LazySpecification, RemoteSpecification, Gem::Specification
Defined in:
lib/bundler/match_platform.rb

Constant Summary

Constant Summary

Constants included from GemHelpers

GemHelpers::GENERICS, GemHelpers::GENERIC_CACHE

Instance Method Summary collapse

Methods included from GemHelpers

#generic

Instance Method Details

#match_platform(p) ⇒ Object



7
8
9
10
11
# File 'lib/bundler/match_platform.rb', line 7

def match_platform(p)
  Gem::Platform::RUBY == platform or
  platform.nil? or p == platform or
  generic(Gem::Platform.new(platform)) == p
end