Skip to content

URI::DEFAULT_PARSER.make_regexp is deprecated in Ruby 3.4.0-preview2 #2778

@jeremyevans

Description

@jeremyevans

Capybara calls the method in a couple places:

This results in a verbose-mode warning when using Ruby 3.4.0-preview2:

lib/capybara/session/config.rb:95: warning: URI::RFC3986_PARSER.make_regexp is obsoleted. Use URI::RFC2396_PARSER.make_regexp explicitly.

We recently worked around this issue in Rack (rack/rack@3d0b9f3), you may want to use a similar approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions