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:
parent
cba805536e
commit
f80020bc50
Notes:
git
2020-07-31 21:08:06 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue