module Bundler::GemHelpers

def generic(p)

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