File Manager

Path: /opt/chef.upgrade/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/

Viewing File: match_platform.rb

# frozen_string_literal: true
require "bundler/gem_helpers"

module Bundler
  module MatchPlatform
    include GemHelpers

    def match_platform(p)
      Gem::Platform::RUBY == platform ||
        platform.nil? || p == platform ||
        generic(Gem::Platform.new(platform)) === p
    end
  end
end