README.md in keen-0.8.1 vs README.md in keen-0.8.2

- old
+ new

@@ -81,10 +81,12 @@ Next, run an instance of EventMachine. If you're using an EventMachine-based web server like thin or goliath you're already doing this. Otherwise, you'll need to start an EventMachine loop manually as follows: ```ruby +require 'em-http-request' + Thread.new { EventMachine.run } ``` The best place for this is in an initializer, or anywhere that runs when your app boots up. Here's a useful blog article that explains more about this approach - [EventMachine and Passenger](http://railstips.org/blog/archives/2011/05/04/eventmachine-and-passenger/). @@ -114,10 +116,12 @@ Keen.count("purchases") # => 100 Keen.sum("purchases", :target_property => "price") # => 10000 Keen.minimum("purchases", :target_property => "price") # => 20 Keen.maximum("purchases", :target_property => "price") # => 100 Keen.average("purchases", :target_property => "price") # => 60 +Keen.median("purchases", :target_property => "price") # => 60 +Keen.percentile("purchases", :target_property => "price", :percentile => 90) # => 100 Keen.sum("purchases", :target_property => "price", :group_by => "item.id") # => [{ "item.id": 123, "result": 240 }, { ... }] Keen.count_unique("purchases", :target_property => "username") # => 3 Keen.select_unique("purchases", :target_property => "username") # => ["Bob", "Linda", "Travis"] @@ -280,9 +284,13 @@ If you write a script that uses `publish_async`, you need to keep the script alive long enough for the call(s) to complete. EventMachine itself won't do this because it runs in a different thread. Here's an [example gist](https://gist.github.com/dzello/7472823) that shows how to exit the process after the event has been recorded. ### Changelog + +##### 0.8.2 ++ Add support for `median` and `percentile` analysis ++ Support arrays for extraction `property_names` option ##### 0.8.1 + Add support for asynchronous batch publishing ##### 0.8.0