diff options
author | Homu <homu@barosl.com> | 2016-11-14 23:12:59 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-11-14 23:12:59 +0900 |
commit | 66f486474dad6a8c4a159b5d89e433bf55b287b2 (patch) | |
tree | 4bfd60f6fb3099aea0c205934ff248b91c22e2af | |
parent | 9fe5810adbab828c81591b664fbd3a0ea9af481b (diff) | |
parent | f4f2941b21e736b64ea4ca86dee1731a55792921 (diff) | |
download | bundler-66f486474dad6a8c4a159b5d89e433bf55b287b2.tar.gz |
Auto merge of #5167 - bundler:seg-ruby-2-4-spec-compat, r=segiddins
Ensure that the local platforms are set for the specs in Ruby 2.4
-rw-r--r-- | spec/support/hax.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/support/hax.rb b/spec/support/hax.rb index 2cca22c6ab..d00bf619a9 100644 --- a/spec/support/hax.rb +++ b/spec/support/hax.rb @@ -1,8 +1,11 @@ # frozen_string_literal: true require "rubygems" -class Gem::Platform - @local = new(ENV["BUNDLER_SPEC_PLATFORM"]) if ENV["BUNDLER_SPEC_PLATFORM"] +module Gem + class Platform + @local = new(ENV["BUNDLER_SPEC_PLATFORM"]) if ENV["BUNDLER_SPEC_PLATFORM"] + end + @platforms = [Gem::Platform::RUBY, Gem::Platform.local] end if ENV["BUNDLER_SPEC_VERSION"] |