Skip to content

Ruby 3.3 compatibility#1

Open
danielxvu wants to merge 1 commit into
masterfrom
ruby-3.3
Open

Ruby 3.3 compatibility#1
danielxvu wants to merge 1 commit into
masterfrom
ruby-3.3

Conversation

@danielxvu

Copy link
Copy Markdown

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant