Sha256: e76825498cc03d78d4ae7b5316bfd7d6a7ae99819addbd84c3ee6108c44f9706
Contents?: true
Size: 480 Bytes
Versions: 40
Compression:
Stored size: 480 Bytes
Contents
module Bundler module GemHelpers GENERIC_CACHE = {} GENERICS = [ Gem::Platform.new('java'), Gem::Platform.new('mswin32'), Gem::Platform.new('x86-mingw32'), Gem::Platform::RUBY ] def generic(p) return p if p == Gem::Platform::RUBY GENERIC_CACHE[p] ||= begin found = GENERICS.find do |p2| p2.is_a?(Gem::Platform) && p.os == p2.os end found || Gem::Platform::RUBY end end end end
Version data entries
40 entries across 40 versions & 2 rubygems