aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-19 03:05:37 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-19 03:05:37 +0000
commitf8bcd57cb7223c59901cb9c73a4be976f3a583e8 (patch)
treebaa2c8a7badab14460fb28d17aaefb1cb021a055 /lib/rubygems.rb
parent4cd675ea9edeaeee7a640dd10037b92318ad6844 (diff)
downloadruby-f8bcd57cb7223c59901cb9c73a4be976f3a583e8.tar.gz
* lib/rubygems: Update to RubyGems master af60443. Changes include:
* Improved speed of `gem install --ignore-dependencies`. * Open read-write for exclusive flock. [ruby-trunk - Bug #9257] * Remove specification before install to prevent infinite loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 7dea86c3dd..5e106c7976 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -764,7 +764,7 @@ module Gem
# Safely read a file in binary mode on all platforms.
def self.read_binary(path)
- File.open path, binary_mode do |f|
+ open path, 'rb+' do |f|
f.flock(File::LOCK_EX)
f.read
end