aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/remote_fetcher.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-18 05:11:55 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-18 05:11:55 +0000
commitf20ad4889d5c7af44581373d25fd326ce796c4b3 (patch)
treeb7bf99329ed8c29768f2502d3bd418e57be32268 /lib/rubygems/remote_fetcher.rb
parent513345607da396f33b862dc2a48135e8a14bad99 (diff)
downloadruby-f20ad4889d5c7af44581373d25fd326ce796c4b3.tar.gz
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems
HEAD(2c6d256). It contains to update vendored Molinillo to 0.5.0. https://github.com/rubygems/rubygems/pull/1638 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/remote_fetcher.rb')
-rw-r--r--lib/rubygems/remote_fetcher.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/rubygems/remote_fetcher.rb b/lib/rubygems/remote_fetcher.rb
index a2d8ba45e3..da4db724a1 100644
--- a/lib/rubygems/remote_fetcher.rb
+++ b/lib/rubygems/remote_fetcher.rb
@@ -328,20 +328,7 @@ class Gem::RemoteFetcher
end
if update and path
- begin
- open(path, 'wb') do |io|
- io.flock(File::LOCK_EX)
- io.write data
- end
- rescue Errno::ENOLCK # NFS
- if Thread.main != Thread.current
- raise
- else
- open(path, 'wb') do |io|
- io.write data
- end
- end
- end
+ Gem.write_binary(path, data)
end
data
@@ -427,4 +414,3 @@ class Gem::RemoteFetcher
end
end
end
-