ruby / uri

URI is a module providing classes to handle Uniform Resource Identifiers
https://ruby.github.io/uri/
Other
79 stars 42 forks source link

Regression of `URI.parse` in 0.12.0 #47

Closed shioyama closed 1 year ago

shioyama commented 1 year ago

We noticed this issue bumping URI from 0.11.0 to 0.12.0:

# ruby/uri 0.12.0
URI.parse("https://").host
#=> ""

# ruby/uri 0.11.0
URI.parse("https://").host
=> nil

The issue seems to be https://github.com/ruby/uri/commit/81263c9e94bd67ca01deee238842a88c2c8885f3. Is this an intentional change? If so it should be mentioned in the release notes for 0.12.0 no?

casperisfine commented 1 year ago

I believe this was intentional https://github.com/ruby/uri/commit/81263c9e94bd67ca01deee238842a88c2c8885f3

hsbt commented 1 year ago

It's intentional changes. I added entry to https://github.com/ruby/uri/releases/tag/v0.12.0