diff options
author | Hiroshi SHIBATA <[email protected]> | 2021-07-27 17:34:13 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-07-27 17:34:13 +0900 |
commit | 6656309fe22b799016f3bc20a5f466da543a44c0 (patch) | |
tree | a85da48a33f0f6a705a8a438165a80463e303e46 /lib/uri/common.rb | |
parent | b875a85c5367b9dff96e1ca1e78a2e35580a2f80 (diff) |
Fix test failure for parallel testing
Diffstat (limited to 'lib/uri/common.rb')
-rw-r--r-- | lib/uri/common.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 2df0536215..2bb13adf23 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -79,6 +79,10 @@ module URI }.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+. |