Method: Gem::Platform.match_gem?
- Defined in:
-
lib/rubygems/platform.rb,
lib/rubygems/platform.rb
48 49 50 51 52 53 54 55 56 |
# File 'lib/rubygems/platform.rb', line 48 def self.match_gem?(platform, gem_name) raise "Not a string: #{gem_name.inspect}" unless String === gem_name if REUSE_AS_BINARY_ON_TRUFFLERUBY.include?(gem_name) match_platforms?(platform, [Gem::Platform::RUBY, Gem::Platform.local]) else match_platforms?(platform, Gem.platforms) end end |