Conversation
data_uri 0.1.0 (the latest published release) breaks on Ruby 3.x: * `@@schemes['DATA'] = Data` — URI's @@schemes class variable was removed. Use URI.register_scheme (public API since Ruby 2.7), guarded for older Ruby. * `URI.decode(@DaTa)` — URI.decode was removed in Ruby 3.0. Use URI::DEFAULT_PARSER.unescape, which does the same RFC-2396 percent-decoding. Also bump the gemspec version 0.0.3 -> 0.1.0 (master's source equals the 0.1.0 release) and drop the removed s.has_rdoc=. Kept 2.7-compatible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ruby 3.3 compatibility patch consumed by Roll20/d20app (ODSY-1142, PR https://github.com/Roll20/d20app/pull/10896). URI.decode -> URI::DEFAULT_PARSER.unescape + URI.register_scheme for Ruby 3.x. Kept 2.7-safe so it can land before the d20app runtime flip.