Sha256: d55722523eaeb47ffc83da186303174fdd3815de80ef82336133c9454cddd430
Contents?: true
Size: 658 Bytes
Versions: 25
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true require "bundler/gem_helpers" module Bundler module MatchPlatform include GemHelpers def match_platform(p) MatchPlatform.platforms_match?(platform, p) end def self.platforms_match?(gemspec_platform, local_platform) return true if gemspec_platform.nil? return true if Gem::Platform::RUBY == gemspec_platform return true if local_platform == gemspec_platform gemspec_platform = Gem::Platform.new(gemspec_platform) return true if GemHelpers.generic(gemspec_platform) === local_platform return true if gemspec_platform === local_platform false end end end
Version data entries
25 entries across 25 versions & 3 rubygems