sporkmonger/addressable — pull request #92 by delano (2012-12-01 22:39:31+00:00)
Title: Rudimentary support for Data URIs (RFC 2397)

When parsing the URIs in a page, I was getting the following error in cases where images were [data URIs](http://www.ietf.org/rfc/rfc2397.txt):

Invalid port number: "image"
/usr/local/lib/ruby/gems/1.9.1/gems/addressable-2.2.6/lib/addressable/uri.rb:1157:in `port='

This is a really basic patch that checks if it's a data URI before trying to parse it. If you're interesting in supporting them, I'm happy to extend the patch or make changes as necessary.