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



225
226
227
228
229
# File 'lib/bundler/rubygems_ext.rb', line 225

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