instance method
Gem::Commands::UpdateCommand#preparing_gem_layout_for
preparing_gem_layout_for(version) { || ... }
lib/rubygems/commands/update_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/commands/update_command.rb, line 195
def preparing_gem_layout_for(version)
if Gem::Version.new(version) >= Gem::Version.new("3.2.a")
yield
else
require "tmpdir"
Dir.mktmpdir("gem_update") do |tmpdir|
FileUtils.mv Gem.plugindir, tmpdir
status = yield
unless status
FileUtils.mv File.join(tmpdir, "plugins"), Gem.plugindir
end
status
end
end
end
No documentation available
See also
#oldest_supported_version
#rubygems_target_version
#execute
#update_gem
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0