End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Commands::SetupCommand#remove_old_man_files
remove_old_man_files(old_man_dir)
lib/rubygems/commands/setup_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/commands/setup_command.rb, line 526
def remove_old_man_files(old_man_dir)
old_man1_dir = "#{old_man_dir}/man1"
if File.exist?(old_man1_dir)
man1_to_remove = Dir.chdir(old_man1_dir) { Dir["bundle*.1{,.txt,.ronn}"] }
remove_file_list(man1_to_remove, old_man1_dir)
end
old_man5_dir = "#{old_man_dir}/man5"
if File.exist?(old_man5_dir)
man5_to_remove = Dir.chdir(old_man5_dir) { Dir["gemfile.5{,.txt,.ronn}"] }
remove_file_list(man5_to_remove, old_man5_dir)
end
end
No documentation available
See also
#remove_old_lib_files
#shebang
#remove_old_bin_files
#show_release_notes
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0