class Gem::Platform
def ===(other)
def ===(other) return nil unless Gem::Platform === other # cpu ([nil,'universal'].include?(@cpu) or [nil, 'universal'].include?(other.cpu) or @cpu == other.cpu or (@cpu == 'arm' and other.cpu =~ /\Aarm/)) and # os @os == other.os and # version (@version.nil? or other.version.nil? or @version == other.version) end