diff options
author | Homu <homu@barosl.com> | 2016-10-03 20:04:01 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-10-03 20:04:01 +0900 |
commit | 9f414c55be8b749f46a0470277f14572c5246c03 (patch) | |
tree | cfcc7c033469f3945fffdcde7cdc73a79066bb9a /lib/bundler.rb | |
parent | 81686198476187ab471425146b4b4697f8cbfa3d (diff) | |
parent | a8d140b35c98adf85689bcd7fa5c4ffd5d3064c7 (diff) | |
download | bundler-9f414c55be8b749f46a0470277f14572c5246c03.tar.gz |
Auto merge of #5028 - bundler:seg-settings-only-ruby-platform, r=indirect
Add a setting for forcing only the ruby platform
See https://github.com/bundler/bundler/pull/4895.
Closes https://github.com/bundler/bundler/issues/4813.
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index f25d43e0..0dcaa039 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -293,6 +293,11 @@ EOF with_clean_env { Kernel.exec(*args) } end + def local_platform + return Gem::Platform::RUBY if settings[:force_ruby_platform] + Gem::Platform.local + end + def default_gemfile SharedHelpers.default_gemfile end |