method

platform_specificity_match

ruby latest stable - Class: Bundler::GemHelpers

Method not available on this version

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

platform_specificity_match(spec_platform, user_platform)
private

No documentation available.

# File lib/bundler/gem_helpers.rb, line 33
    def platform_specificity_match(spec_platform, user_platform)
      spec_platform = Gem::Platform.new(spec_platform)
      return PlatformMatch::EXACT_MATCH if spec_platform == user_platform
      return PlatformMatch::WORST_MATCH if spec_platform.nil? || spec_platform == Gem::Platform::RUBY || user_platform == Gem::Platform::RUBY

      PlatformMatch.new(
        PlatformMatch.os_match(spec_platform, user_platform),
        PlatformMatch.cpu_match(spec_platform, user_platform),
        PlatformMatch.platform_version_match(spec_platform, user_platform)
      )
    end