Sirupsen/can-has-lolcat — pull request #1 by josephruscio (2011-10-29 17:15:50+00:00)
Title: Add puppeh support and fix video link handling

Still need to update the tests, but wanted to get the review process started. The main goal of this pull request is to add support for randomly pulling down dog URL's as well as cat ones in a backwards compatible manner.

In the course of developing it I also came across a bug/gap in the original implementation. About 15-20% of the time, the `?random` query returns a video page instead of the normal image page. The original cat version has a display ad embedded on the lower right hand side of the page that matches the regex, so the bug is manifested as returning an ad URL 15-20% of the time.

Assuming you're open to merging this in (post tests) and revving the gem to 0.2.0, I'll go fix the tests up too. I'm using this gem to implement [a plugin for our campfire bot](https://github.com/josephruscio/twke/blob/master/plugins/lolcats.rb).