summaryrefslogtreecommitdiff
path: root/lib/uri/file.rb
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2021-06-25 13:38:01 +0200
committerHiroshi SHIBATA <[email protected]>2021-07-27 16:54:27 +0900
commit1cf111774f03c6d1ddba735cb8cc79483f16f699 (patch)
treeb90249839fb24c0d350544eda50666e95c5d968b /lib/uri/file.rb
parent090d799c2496f4c0e1f25c9970f4015fc693ff0e (diff)
[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. https://github.com/ruby/uri/commit/883567fd81
Diffstat (limited to 'lib/uri/file.rb')
-rw-r--r--lib/uri/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/file.rb b/lib/uri/file.rb
index 561ec703c4..7671ad6470 100644
--- a/lib/uri/file.rb
+++ b/lib/uri/file.rb
@@ -90,5 +90,5 @@ module URI
end
end
- @@schemes['FILE'] = File
+ register_scheme 'FILE', File
end