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

[rb] Resolve uri gem deprecation warning #14770

Merged
merged 1 commit into from
Nov 19, 2024

Commits on Nov 18, 2024

  1. [rb] Resolve uri gem deprecation warning

    > /home/user/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/selenium-webdriver-4.26.0/lib/selenium/webdriver/remote/bridge.rb:679: warning: URI::RFC3986_PARSER.escape is obsoleted. Use URI::RFC2396_PARSER.escape explicitly.
    
    Ruby switches the default parser from RFC2396 to RFC3986. This parser contains
    all methods from the old parser but delegates to RFC2396 for a few and warns.
    Namely `extract`, `make_regexp`, `escape`, and `unescape`.
    
    selenium currently supports Ruby >= 3.1, so the current old compatibility code is unnecessary.
    `RFC2396_PARSER` is a somewhat new addition, so some kind of check is still needed.
    It is available in Ruby 3.1 but early patch versions are missing it.
    Earlopain committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    17286dd View commit details
    Browse the repository at this point in the history