Sha256: 3f3d244ef6c9fb44ce324719cc9de2cb2970506865cacf6fa983936be0e1aea2

Contents?: true

Size: 301 Bytes

Versions: 27

Compression:

Stored size: 301 Bytes

Contents

# 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

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
bundler-1.13.7 lib/bundler/match_platform.rb
bundler-1.13.6 lib/bundler/match_platform.rb
bundler-1.13.5 lib/bundler/match_platform.rb
bundler-1.13.4 lib/bundler/match_platform.rb
bundler-1.13.3 lib/bundler/match_platform.rb
bundler-1.12.6 lib/bundler/match_platform.rb
bundler-1.13.2 lib/bundler/match_platform.rb
rubygems-update-2.6.7 bundler/lib/bundler/match_platform.rb
bundler-1.13.1 lib/bundler/match_platform.rb
bundler-1.13.0 lib/bundler/match_platform.rb
bundler-1.13.0.rc.2 lib/bundler/match_platform.rb
bundler-1.13.0.rc.1 lib/bundler/match_platform.rb
rubygems-update-2.6.6 bundler/lib/bundler/match_platform.rb
rubygems-update-2.6.5 bundler/lib/bundler/match_platform.rb
bundler-1.13.0.pre.1 lib/bundler/match_platform.rb
bundler-1.12.5 lib/bundler/match_platform.rb
bundler-1.12.4 lib/bundler/match_platform.rb
bundler-1.12.3 lib/bundler/match_platform.rb
bundler-1.12.2 lib/bundler/match_platform.rb
bundler-1.12.1 lib/bundler/match_platform.rb