Closed kvokka closed 3 years ago
IMHO this should be reverted, or improved in a way that:
Yet another possibility, since we are going to break @@schemes['FOO'] = FOO
anyway, how about simply limiting URI to the built-in schemes, and if needed provide a way to pass extra schemes e.g., via some Hash argument?
I worked on a clean solution in https://github.com/ruby/uri/pull/26
This PR is targeting to solve the same problem as #15 and some ideas are similar, but in contrast this one does not have the problem with multiple constant removal on the start up
https://bugs.ruby-lang.org/issues/17592