[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 коммит произвёл Hiroshi SHIBATA
Родитель cba805536e
Коммит f80020bc50
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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,