1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Merge RubyGems-2.7.5 from upstream.

Please see its details: http://blog.rubygems.org/2018/02/06/2.7.5-released.html

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2018-02-06 02:58:35 +00:00
parent eb537609ba
commit 7112c6a1c1
50 changed files with 252 additions and 175 deletions

View file

@ -23,11 +23,11 @@ class Gem::Package::FileSource < Gem::Package::Source # :nodoc: all
end
def with_write_io &block
open path, 'wb', &block
File.open path, 'wb', &block
end
def with_read_io &block
open path, 'rb', &block
File.open path, 'rb', &block
end
end