summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-08-16 20:19:22 +0900
committergit <[email protected]>2024-09-06 14:46:43 +0000
commit30176e3f238f198ae835bf1c593d2ad2dce2df49 ()
tree793332c61026fdbd0732daac253175c380b3a576
parent6dd917bd01f204e76d65137f2218d6305652f179 (diff)
[rubygems/rubygems] Ensure that the lock file will be removed
https://.com/rubygems/rubygems/commit/2706acb271
-rw-r--r--lib/rubygems/installer.rb3
-rw-r--r--test/rubygems/test_gem_installer.rb28
2 files changed, 30 insertions, 1 deletions
@@ -546,7 +546,8 @@ class Gem::Installer
file.write app_script_text(filename)
file.chmod(options[:prog_mode] || 0o755)
end
- File.unlink(lock.path)
end
verbose bin_script_path
@@ -1234,6 +1234,34 @@ end
assert_path_not_exist(File.join(installer.bin_dir, "executable.lock"))
end
def test_install_with_no_prior_files
installer = util_setup_installer