From 1cf111774f03c6d1ddba735cb8cc79483f16f699 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 25 Jun 2021 13:38:01 +0200 Subject: [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 --- lib/uri/ldap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/uri/ldap.rb') diff --git a/lib/uri/ldap.rb b/lib/uri/ldap.rb index 14e6163292..4544349f18 100644 --- a/lib/uri/ldap.rb +++ b/lib/uri/ldap.rb @@ -257,5 +257,5 @@ module URI end end - @@schemes['LDAP'] = LDAP + register_scheme 'LDAP', LDAP end -- cgit v1.2.3