sroberts / hubot-vtr-scripts

Scripts for making Hubot a CND Sidekick
MIT License
59 stars 15 forks source link

Google Safebrowsing #46

Closed snipe closed 10 years ago

snipe commented 10 years ago

Added Google Safebrowsing API and updated documentation.

Usage:

Hubot> hubot gsafe ianfette.org
Hubot> [SUSPICIOUS] The URL ianfette.org is listed as malware in Google Safebrowsing. More info: at http://www.google.com/safebrowsing/diagnostic?site=ianfette.org
Hubot> hubot gsafe www.google.com
Hubot> [CLEAN] The URL is NOT curently listed as suspicious in Google Safebrowsing. More info: at http://www.google.com/safebrowsing/diagnostic?site=www.google.com

Requires a Google Safebrowsing API key, GOOGLE_SAFEBROWSING_API_KEY, available at https://developers.google.com/safe-browsing/key_signup.

mattjay commented 10 years ago

Anybody want to take a stab at a unit test before we merge? If not I can try to get my head back into whatever weird zone was required to test CoffeeScript.

snipe commented 10 years ago

Oh come on, live dangerously! Just kidding, I actually don't know how to unit test Coffeescript. I've never written a line of it before last night. If someone can point me to some docs, I can try tho.

mattjay commented 10 years ago

@snipe I wrote all of these: https://github.com/sroberts/hubot-vtr-scripts/tree/master/src/spec

Might point you in the direction of what you need to do since most of these act very similarly. If not I can take a stab tonight.

mattjay commented 10 years ago

also image

snipe commented 10 years ago

Test added, and passes for me locally.

mattjay commented 10 years ago

Looks all good to me. :shipit: