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.
1 parent 18fbb14 commit bd0f525Copy full SHA for bd0f525
1 file changed
bundler/spec/support/rubygems_ext.rb
@@ -99,7 +99,9 @@ def install_vendored_compact_index
99
url = "https://raw.githubusercontent.com/rubygems/rubygems.org/#{ref}/#{path}"
100
target = target_root.join(path)
101
FileUtils.mkdir_p(File.dirname(target))
102
- File.write(target, URI.parse(url).open(&:read))
+ tmp = "#{target}.tmp"
103
+ File.write(tmp, URI.parse(url).open(&:read))
104
+ File.rename(tmp, target)
105
end
106
107
0 commit comments