Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ruby 3.1's uri's register_scheme if available
Ruby 3.1 adopted uri 0.11.0. That version changes how schemes can be registered. There is now a register_scheme method. ruby/uri#26 as part of https://github.com/ruby/uri/releases/tag/v0.11.0 This commit supports both ways and works with the new method if available. The old way errors out when run on uri>=0.11.0/ruby>=3.1.
- Loading branch information