Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update bin/readability to work with Ruby 3.x
These changes should be backwards compatible with older Ruby versions according to the docs and testing it on Ruby 2.7. Changes: 1. Use `require_relative` to avoid loading errors. 2. Use `URI.parse(...).read` instead of `open(...).read` - This seems to be backwards compatible with older Ruby versions. - Ex. https://www.rubydoc.info/stdlib/open-uri/2.3.1/OpenURI - The behavior should be identical to what we saw before. - `open(...).read` got deprecated in Ruby 3.0
- Loading branch information