1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/uri] Add proper Ractor support to URI

* Using a module to map scheme name to scheme class, which also works with Ractor.
* No constant redefinition, no ObjectSpace, still fast lookup for initial schemes.

883567fd81
This commit is contained in:
Benoit Daloze 2021-06-25 13:38:01 +02:00 committed by Hiroshi SHIBATA
parent 090d799c24
commit 1cf111774f
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
12 changed files with 60 additions and 18 deletions

View file

@ -90,5 +90,5 @@ module URI
end
end
@@schemes['FILE'] = File
register_scheme 'FILE', File
end