aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/match_platform.rb
blob: f4b9492c25254ecc18c9618eff5dd180c69c86ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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