[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:
parent
88723dd5a5
commit
d6baa6258c
@ -519,7 +519,7 @@ module Bundler
|
||||
end
|
||||
|
||||
def write_lock(file, preserve_unknown_sections)
|
||||
return if Definition.no_lock
|
||||
return if Definition.no_lock || file.nil?
|
||||
|
||||
contents = to_lock
|
||||
|
||||
|
@ -50,7 +50,6 @@ def gemfile(install = false, options = {}, &gemfile)
|
||||
|
||||
Bundler.settings.temporary(deployment: false, frozen: false) do
|
||||
definition = builder.to_definition(nil, true)
|
||||
def definition.lock(*); end
|
||||
definition.validate_runtime!
|
||||
|
||||
if install || definition.missing_specs?
|
||||
|
Loading…
x
Reference in New Issue
Block a user