Sha256: af7911ff8a2d66f41e8136b57683fd6a54fdf96536308d70e518ad53d8a36788
Contents?: true
Size: 731 Bytes
Versions: 41
Compression:
Stored size: 731 Bytes
Contents
module Bundler module GemHelpers GENERIC_CACHE = {} GENERICS = [ [Gem::Platform.new('java'), Gem::Platform.new('java')], [Gem::Platform.new('mswin32'), Gem::Platform.new('mswin32')], [Gem::Platform.new('x64-mingw32'), Gem::Platform.new('x64-mingw32')], [Gem::Platform.new('x86_64-mingw32'), Gem::Platform.new('x64-mingw32')], [Gem::Platform.new('mingw32'), Gem::Platform.new('x86-mingw32')] ] def generic(p) return p if p == Gem::Platform::RUBY GENERIC_CACHE[p] ||= begin _, found = GENERICS.find do |match, _generic| p.os == match.os && (!match.cpu || p.cpu == match.cpu) end found || Gem::Platform::RUBY end end end end
Version data entries
41 entries across 41 versions & 1 rubygems