http_router icon indicating copy to clipboard operation
http_router copied to clipboard

New rubygems release needed for fix in `request`

Open Deconstrained opened this issue 1 year ago • 0 comments

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(/\//)

Deconstrained avatar Aug 09 '24 20:08 Deconstrained