aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/match_platform.rb
blob: 4f2ba0a24a0fe58f301c8f2ecb036cb7490be981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'bundler/gem_helpers'

module Bundler
  module MatchPlatform
    include GemHelpers

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