bundle-new/lib/bundler/match_platform.rb

14 lines
266 B
Ruby
Raw Permalink Normal View History

2019-10-06 15:45:34 +00:00
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
end
end
end