lib/bundler.rb in bundler-2.2.8 vs lib/bundler.rb in bundler-2.2.9
- old
+ new
@@ -438,10 +438,10 @@
def unbundled_exec(*args)
with_env(unbundled_env) { Kernel.exec(*args) }
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
def default_gemfile
SharedHelpers.default_gemfile