rngtng/webmaster_tools — pull request #1 by ArthurD (2012-07-29 00:43:59+00:00)
Title: Adds removal type to remove_url() method.

Pretty simple addition... Just adds 'removal_type' as a second string argument to the remove_url() method to unlock the full URL removal functionality offered by the Webmaster Tools UI.

This new arg is defaulted to 'PAGE' so that nothing changes if the arg isn't passed in.

Possible values as of now are: "PAGE", "PAGE_CACHE", "DIRECTORY"

One semi-poor test was added although TBH I'm not super familiar with the VCR gem (and don't have a WebmasterTools-verified test site handy either) or I would have added more and played with it further. Going to take a closer look at it though as it looks great for some of my other projects as well so just LMK if you'd like more tests on this or anything like that. :-)