method

cpu_match

ruby latest stable - Class: Bundler::GemHelpers::PlatformMatch

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

cpu_match(spec_platform, user_platform)
public

No documentation available.

# File lib/bundler/gem_helpers.rb, line 78
      def self.cpu_match(spec_platform, user_platform)
        if spec_platform.cpu == user_platform.cpu
          0
        elsif spec_platform.cpu == "arm" && user_platform.cpu.to_s.start_with?("arm")
          0
        elsif spec_platform.cpu.nil? || spec_platform.cpu == "universal"
          1
        else
          2
        end
      end