summaryrefslogtreecommitdiff
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-02-09 22:53:57 +0900
committerGitHub <noreply@github.com>2021-02-09 22:53:57 +0900
commit09c681ab38df33468570534bef7609222e49c6f4 (patch)
tree52f9edbbb1d0c984e370d2ae35729a16e51890b8 /lib/bundler.rb
parent9aba46d8d80473594e567dff1652626e7b2a77b0 (diff)
Merge RubyGems 3.2.9 and Bundler 2.2.9 (#4158)
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index b299cc8a28..d370d8a53a 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -440,7 +440,7 @@ EOF
end
def local_platform
- return Gem::Platform::RUBY if settings[:force_ruby_platform]
+ return Gem::Platform::RUBY if settings[:force_ruby_platform] || Gem.platforms == [Gem::Platform::RUBY]
Gem::Platform.local
end