Skip to content

Commit

Permalink
Prep for v0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ezkl committed Jun 26, 2013
1 parent 6179dc5 commit de3af51
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 23 deletions.
52 changes: 32 additions & 20 deletions README.md
Expand Up @@ -25,32 +25,40 @@ Bundler:
`gem 'sniffles'`

## Usage
require 'sniffles'
require 'typhoeus' # Optional: Use your favorite HTTP client.

response = Typhoeus::Request.get("http://www.squidoo.com/")

```
require 'sniffles'
require 'typhoeus' # Optional: Use your favorite HTTP client.
response = Typhoeus::Request.get("http://www.squidoo.com/")
```

You can pass in a single sniffer:

Sniffles.sniff(response.body, :google_analytics)
# => { :google_analytics=> { :found=>true, :ua=>"UA-185209-2" } }
```
Sniffles.sniff(response.body, :google_analytics)
# => { :google_analytics=> { :found=>true, :ua=>"UA-185209-2" } }
```

Or multiple sniffers:

Sniffles.sniff(response.body, :google_analytics, :kissmetrics)
# => { :google_analytics=> { :found=>true, :ua=>"UA-185209-2"}, :kissmetrics=>{:found=>false} }
Or an entire group of sniffers:
```
Sniffles.sniff(response.body, :google_analytics, :kissmetrics)
# => { :google_analytics=> { :found=>true, :ua=>"UA-185209-2"}, :kissmetrics=>{:found=>false} }
```

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}}
Or an entire group of sniffers:

## Sniffers (v0.1.3)
```
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}}
```

## Sniffers (v0.1.5)
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
Expand All @@ -67,6 +75,7 @@ Here are a list of currently implemented sniffers, grouped by category. You can
* ChartBeat
* Clicky
* Google Analytics
* Facebook Insights
* KISSMetrics
* MixPanel
* Piwik
Expand All @@ -76,16 +85,19 @@ Here are a list of currently implemented sniffers, grouped by category. You can
* BigCommerce
* Blogger
* CS-Cart
* Drupal
* FlatPress
* Invision
* Joomla
* Magento
* MovableType
* MyBB
* osCommerce
* phpBB
* Posterous
* PrestaShop
* Shopify
* Sitefinity
* Tumblr
* TypePad
* Vanilla
Expand All @@ -102,4 +114,4 @@ For a complete list see [github](https://github.com/ezkl/sniffles/contributors).

### Special Thanks
* [Jake Austwick](https://github.com/JakeAustwick)
* [dchuk](https://github.com/dchuk)
* [dchuk](https://github.com/dchuk)
2 changes: 1 addition & 1 deletion lib/sniffles/version.rb
@@ -1,3 +1,3 @@
module Sniffles
VERSION = "0.1.4"
VERSION = "0.1.5"
end
4 changes: 2 additions & 2 deletions sniffles.gemspec
Expand Up @@ -13,9 +13,9 @@ Gem::Specification.new do |gem|
gem.name = "sniffles"
gem.require_paths = ["lib"]
gem.version = Sniffles::VERSION

gem.add_runtime_dependency("nokogiri", "~> 1.5.0")

gem.add_development_dependency("rspec", "~> 2.9.0")
gem.add_development_dependency("typhoeus", "~> 0.3.3")
gem.add_development_dependency("vcr", "~> 2.0.0")
Expand Down

0 comments on commit de3af51

Please sign in to comment.