[rubygems/rubygems] Simplify Gem.read_binary and Gem.write_binary
Since Gem.open_file no longer locks the target file and is same as File.open now, simply Gem.read_binary should read in binary mode.
Also the body of Gem.write_binary is same as File.binwrite.
[rubygems/rubygems] Simplify
Gem.read_binary
andGem.write_binary
Since
Gem.open_file
no longer locks the target file and is same asFile.open
now, simplyGem.read_binary
should read in binary mode.Also the body of
Gem.write_binary
is same asFile.binwrite
.https://github.com/rubygems/rubygems/commit/44df9045df