From 6db1c53fce7a0f2f80dd78b5020132a09994c47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 28 May 2024 15:06:28 +0200 Subject: [PATCH] [rubygems/rubygems] Remove unnecessary FileUtils usage All other `chmod` usages in the file use `File.chmod`, so keep it consistent. https://github.com/rubygems/rubygems/commit/3dc0cf8703 --- lib/rubygems/installer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb index 453a18e836..f637e7b604 100644 --- a/lib/rubygems/installer.rb +++ b/lib/rubygems/installer.rb @@ -500,8 +500,7 @@ class Gem::Installer dir_mode = options[:prog_mode] || (mode | 0o111) unless dir_mode == mode - require "fileutils" - FileUtils.chmod dir_mode, bin_path + File.chmod dir_mode, bin_path end check_executable_overwrite filename