Module: Bundler::MatchPlatform

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

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



194
195
196
197
198
# File 'lib/bundler/rubygems_ext.rb', line 194

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