charlotte-ruby/image_scraper — pull request #6 by syoder (2013-02-14 02:22:24+00:00)
Title: URI parse fix

URI.parse crashes on URLs that contain square brackets (example: "image[1].jpg"), but URI.escape doesn't escape them! Apparently we need to do some extra work to escape these URLs. I've added the extra escaping and a test to verify that image_scraper can handle image URLs that contain square brackets (and fixed up some of the other tests to make them pass again).