ruby-changes:62481
From: David <ko1@a...>
Date: Fri, 31 Jul 2020 21:08:57 +0900 (JST)
Subject: [ruby-changes:62481] f80020bc50 (master): [rubygems/rubygems] Read path binarily
https://git.ruby-lang.org/ruby.git/commit/?id=f80020bc50 From f80020bc50f106a8e20c4868f76228add97048a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Thu, 25 Jun 2020 11:43:41 +0200 Subject: [rubygems/rubygems] Read path binarily I believe this should fix a flaky test on Windows. https://github.com/rubygems/rubygems/commit/a516b49a0a diff --git a/lib/rubygems/test_utilities.rb b/lib/rubygems/test_utilities.rb index a41b224..3bbe68c 100644 --- a/lib/rubygems/test_utilities.rb +++ b/lib/rubygems/test_utilities.rb @@ -39,7 +39,7 @@ class Gem::FakeFetcher https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_utilities.rb#L39 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, -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/