[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:
parent
cba805536e
commit
f80020bc50
Notes:
git
2020-07-31 21:08:06 +09:00
@ -39,7 +39,7 @@ class Gem::FakeFetcher
|
|||||||
end
|
end
|
||||||
|
|
||||||
def find_data(path, nargs = 3)
|
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
|
if URI === path and "URI::#{path.scheme.upcase}" != path.class.name
|
||||||
raise ArgumentError,
|
raise ArgumentError,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user