ruby-changes:66910
From: Hiroshi <ko1@a...>
Date: Tue, 27 Jul 2021 17:35:23 +0900 (JST)
Subject: [ruby-changes:66910] 6656309fe2 (master): Fix test failure for parallel testing
https://git.ruby-lang.org/ruby.git/commit/?id=6656309fe2 From 6656309fe22b799016f3bc20a5f466da543a44c0 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Tue, 27 Jul 2021 17:34:13 +0900 Subject: Fix test failure for parallel testing --- lib/uri.rb | 6 ------ lib/uri/common.rb | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/uri.rb b/lib/uri.rb index 539365a..394c156 100644 --- a/lib/uri.rb +++ b/lib/uri.rb @@ -101,9 +101,3 @@ require_relative 'uri/ldap' https://github.com/ruby/ruby/blob/trunk/lib/uri.rb#L101 require_relative 'uri/ldaps' require_relative 'uri/mailto' require_relative 'uri/ws' - -module URI - INITIAL_SCHEMES = scheme_list - private_constant :INITIAL_SCHEMES - Ractor.make_shareable(INITIAL_SCHEMES) if defined?(Ractor) -end diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 2df0536..2bb13ad 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -79,6 +79,10 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/common.rb#L79 }.to_h end + INITIAL_SCHEMES = scheme_list + private_constant :INITIAL_SCHEMES + Ractor.make_shareable(INITIAL_SCHEMES) if defined?(Ractor) + # # Construct a URI instance, using the scheme to detect the appropriate class # from +URI.scheme_list+. -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/