ruby/ruby — pull request #453 by richo (2013-11-21 05:42:34+00:00)
Title: Treat bare hostnames as the host when parsing as into a URI

The spec essentially leaves incomplete URI's as undefined behaviour

(http://www.ietf.org/rfc/rfc2396.txt Appendix F: Abbreviated URLs)

But inline with the behaviour of browsers and the like, it makes the
most sense to assume that a pattern that matches a hostname should be
treated as such.