Module: Bundler::MatchPlatform

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

Constant Summary

Constants included from GemHelpers

GemHelpers::GENERICS, GemHelpers::GENERIC_CACHE

Instance Method Summary collapse

Methods included from GemHelpers

generic, generic_local_platform

Instance Method Details

#match_platform(p) ⇒ Object



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

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