We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0365a17 + a2f265f commit 86b63d5Copy full SHA for 86b63d5
1 file changed
spec/support/rubygems_ext.rb
@@ -110,7 +110,9 @@ def install_vendored_compact_index
110
url = "https://raw.githubusercontent.com/rubygems/rubygems.org/#{ref}/#{path}"
111
target = target_root.join(path)
112
FileUtils.mkdir_p(File.dirname(target))
113
- File.write(target, URI.parse(url).open(&:read))
+ tmp = "#{target}.tmp"
114
+ File.write(tmp, URI.parse(url).open(&:read))
115
+ File.rename(tmp, target)
116
end
117
118
0 commit comments