http_router
http_router copied to clipboard
New rubygems release needed for fix in `request`
The latest release, 0.11.2, elicits the following error in Ruby 3.1.2
NoMethodError:
undefined method `unescape' for URI:Module
@path = URI.unescape(path).split(/\//)
^^^^^^^^^
# /home/********/.rubygems/gems/http_router-0.11.2/lib/http_router/request.rb:10:in `initialize'
The issue is already fixed on the main branch, we just need a new release that contains this fix --
https://github.com/joshbuddy/http_router/blob/master/lib/http_router/request.rb#L10
@path = URI::DEFAULT_PARSER.unescape(path).split(/\//)