Patrik Ragnarsson

Results 301 comments of Patrik Ragnarsson

@KelseyDH your problem does not sound related to this issue, you have a perfectly valid URI, with [a fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Syntax). You could do this: ```ruby irb(main):003:0> Addressable::VERSION::STRING => "2.8.0" irb(main):004:0> uri...

> `Addressable::URI.parse("https://user:[email protected]").omit(:scheme, :port, :user, :password, :host)` @noff what do you expect this to return? This? ```ruby irb(main):009:0> Addressable::URI.parse("") => # ``` --- Tested this myself with a few variants, seems...

@AnthonyClark I don't think there's been any attempt to address this (links to the blame views: [unencode_component](https://github.com/sporkmonger/addressable/blame/f839fb28344567c792e148d7a74c529748455d11/lib/addressable/uri.rb#L450), [normalize_component](https://github.com/sporkmonger/addressable/blame/f839fb28344567c792e148d7a74c529748455d11/lib/addressable/uri.rb#L532))

What do you expect to happen? What version of Addressable are you using?

What does the URL look like before the first normalize? Did you normalize it with Addressable? Please share a complete code example (see https://guides.github.com/features/mastering-markdown/#examples for how to format code)

Feels very similar to #366 (in #366 the issue is in the query parameters, not sure how that matters)

Related to https://github.com/sporkmonger/addressable/issues/282

If not before, this has to be fixed to be compatible with [Ruby 3](https://bugs.ruby-lang.org/issues/11473). :) ```ruby $ RUBYOPT="-w --enable-frozen-string-literal" irb irb(main):001:0> require 'addressable/uri' => true irb(main):002:0> Addressable::URI.parse("http://google.com").normalize RuntimeError: can't modify...

@ShaneWilton @bloomdido what is the reason you can't use Addressable with Ruby 2.5? is it something in regards to IceNine + Ruby 2.5 that changed versus IceNine + Ruby 2.4?...