capybara
capybara copied to clipboard
`URI::DEFAULT_PARSER.make_regexp` is deprecated in Ruby 3.4.0-preview2
Capybara calls the method in a couple places:
- https://github.com/teamcapybara/capybara/blob/master/lib/capybara/session/config.rb#L86C37-L86C68
- https://github.com/teamcapybara/capybara/blob/master/lib/capybara/session/config.rb#L95
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 (https://github.com/rack/rack/commit/3d0b9f377a4753d1fca40fca011c2c0e9282ab50), you may want to use a similar approach.