Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby Warning: URI::RFC3986_PARSER.escape is obsoleted. Use URI::RFC2396_PARSER.escape explicitly #816

Open
andreavocado opened this issue Jan 13, 2025 · 0 comments

Comments

@andreavocado
Copy link

Expected behavior

With Ruby warnings enabled there should be no warnings in the logs. URI::RFC2396_PARSER is used instead of URI::RFC3986_PARSER

Actual behavior

When enabling Ruby warnings with RUBYOPT="-W2 -W:deprecated -W:experimental -W:performance" there is a warning like this:
/baseimage/cache/bundler/ruby/3.3.0/gems/sprockets-4.2.1/lib/sprockets/uri_utils.rb:66: warning: URI::RFC3986_PARSER.escape is obsolete. Use URI::RFC2396_PARSER.escape explicitly.

AND other cases
/baseimage/cache/bundler/ruby/3.3.0/gems/sprockets-4.2.1/lib/sprockets/uri_utils.rb:165
/baseimage/cache/bundler/ruby/3.3.0/gems/sprockets-4.2.1/lib/sprockets/uri_utils.rb:48
/baseimage/cache/bundler/ruby/3.3.0/gems/sprockets-4.2.1/lib/sprockets/uri_utils.rb:185

System configuration

  • 4.2.1
  • 3.3.4

Related PR

#812

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

No branches or pull requests

1 participant