diff options
author | Nicholas La Roux <[email protected]> | 2025-06-06 20:41:41 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-06-23 11:07:03 +0900 |
commit | a1d62a3b1cdf5fca9f5976fa0d8b5ead82619ef6 () | |
tree | 9ee30d1f68aa073e23b66da6b88acb84f4b13b94 /lib | |
parent | 8f009601f9a5440e656f02d0e5d6b2e88475f5b7 (diff) |
[rubygems/rubygems] Handle RubyGems installing to custom dir with non-existent parent dirs
https://.com/rubygems/rubygems/commit/4701123601
-rw-r--r-- | lib/rubygems/installer.rb | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -953,11 +953,7 @@ TEXT end def ensure_writable_dir(dir) # :nodoc: - begin - Dir.mkdir dir, *[options[:dir_mode] && 0o755].compact - rescue SystemCallError - raise unless File.directory? dir - end raise Gem::FilePermissionError.new(dir) unless File.writable? dir end |