[rubygems/rubygems] Avoid having to redefine Definition#lock in inline mode

https://github.com/rubygems/rubygems/commit/0b7be7bb77

Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
This commit is contained in:
David Rodríguez 2022-05-13 13:35:13 +02:00 committed by git
parent 88723dd5a5
commit d6baa6258c
2 changed files with 1 additions and 2 deletions

View File

@ -519,7 +519,7 @@ module Bundler
end end
def write_lock(file, preserve_unknown_sections) def write_lock(file, preserve_unknown_sections)
return if Definition.no_lock return if Definition.no_lock || file.nil?
contents = to_lock contents = to_lock

View File

@ -50,7 +50,6 @@ def gemfile(install = false, options = {}, &gemfile)
Bundler.settings.temporary(deployment: false, frozen: false) do Bundler.settings.temporary(deployment: false, frozen: false) do
definition = builder.to_definition(nil, true) definition = builder.to_definition(nil, true)
def definition.lock(*); end
definition.validate_runtime! definition.validate_runtime!
if install || definition.missing_specs? if install || definition.missing_specs?