зеркало из https://github.com/github/ruby.git
[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:
Родитель
cba805536e
Коммит
f80020bc50
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче