lib/bundler/lazy_specification.rb in bundler-2.2.6 vs lib/bundler/lazy_specification.rb in bundler-2.2.7
- old
+ new
@@ -138,9 +138,9 @@
# only included non-ruby platforms), but we're also keeping this behaviour
# on newer bundlers unless users generate the lockfile from scratch or
# explicitly add a more specific platform.
#
def ruby_platform_materializes_to_ruby_platform?
- !Bundler.most_specific_locked_platform?(Gem::Platform::RUBY)
+ !Bundler.most_specific_locked_platform?(Gem::Platform::RUBY) || Bundler.settings[:force_ruby_platform]
end
end
end