README.md in sniffles-0.1.5 vs README.md in sniffles-0.2.0

- old
+ new

@@ -1,10 +1,10 @@ # Sniffles ## Description Sniffles parses HTML pages and searches for common patterns suggesting a page is using a popular CMS or advertising platform as well as CSS and JS libraries. -The master branch is continuously tested against Rubies 1.8.7, 1.9.2, and 1.9.3 thanks to the fantastic [Travis-CI](http://travis-ci.org/#!/ezkl/sniffles). +The master branch is continuously tested against Rubies 1.9.3, 2.0.0, 2.1.0 thanks to the fantastic [Travis-CI](http://travis-ci.org/#!/ezkl/sniffles). Current CI status: [![Build Status](https://secure.travis-ci.org/ezkl/sniffles.png?branch=master)](http://travis-ci.org/ezkl/sniffles) ### What is a sniffer? @@ -23,52 +23,50 @@ Bundler: `gem 'sniffles'` ## Usage -``` +```ruby require 'sniffles' require 'typhoeus' # Optional: Use your favorite HTTP client. -response = Typhoeus::Request.get("http://www.squidoo.com/") +response = Typhoeus::Request.get("http://www.fastly.com/") ``` You can pass in a single sniffer: -``` +```ruby Sniffles.sniff(response.body, :google_analytics) -# => { :google_analytics=> { :found=>true, :ua=>"UA-185209-2" } } +# => { :google_analytics=> { :found=>true, :ua=>"UA-25770359-1" } } ``` Or multiple sniffers: -``` +```ruby Sniffles.sniff(response.body, :google_analytics, :kissmetrics) -# => { :google_analytics=> { :found=>true, :ua=>"UA-185209-2"}, :kissmetrics=>{:found=>false} } +# => { :google_analytics=> { :found=>true, :ua=>"UA-25770359-1"}, :kissmetrics=>{:found=>false} } ``` Or an entire group of sniffers: -``` +```ruby Sniffles.sniff(response.body, :analytics) # => {:chartbeat=>{:found=>false}, # :clicky=>{:found=>false}, # :google_analytics=>{:found=>true, :ua=>"UA-185209-2"}, # :kissmetrics=>{:found=>false}, -# :mixpanel=>{:found=>true}, -# :quantcast=>{:found=>true}} +# :mixpanel=>{:found=>false}, +# :quantcast=>{:found=>false}} ``` -## Sniffers (v0.1.5) +## Sniffers ([HEAD](https://github.com/ezkl/sniffles/tree/master)) Here are a list of currently implemented sniffers, grouped by category. You can see a list of unimplemented sniffers by [filtering issues by "sniffer"](https://github.com/ezkl/sniffles/issues?labels=sniffer&state=open). ### Advertising -* AdMeld * AdSense * BuySellAds * Casale -* GumGum * Kontera * TheDeck * TribalFusion ### Analytics @@ -101,9 +99,10 @@ * Tumblr * TypePad * Vanilla * vBulletin * WordPress +* Xcart * XenForo * ZenCart ### Javascript * jQuery