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

[rubygems/rubygems] Read path binarily

I believe this should fix a flaky test on Windows.

https://github.com/rubygems/rubygems/commit/a516b49a0a
This commit is contained in:
David Rodríguez 2020-06-25 11:43:41 +02:00 committed by Hiroshi SHIBATA
parent cba805536e
commit f80020bc50
Notes: git 2020-07-31 21:08:06 +09:00

View file

@ -39,7 +39,7 @@ class Gem::FakeFetcher
end
def find_data(path, nargs = 3)
return File.read path.path if URI === path and 'file' == path.scheme
return Gem.read_binary path.path if URI === path and 'file' == path.scheme
if URI === path and "URI::#{path.scheme.upcase}" != path.class.name
raise ArgumentError,