zevarito/mixpanel — pull request #46 by GBH (2012-10-04 15:27:10+00:00)
Title: Adding engage endpoint

So now it's possible to manage people via /engage endpoint. I added `engage_set` and `engage_add` methods, also the generic `engage` one to keep thing dry.

I reshuffled some code inside tracker.rb. The only adjustment I needed to do is remove endpoints from @url attribute as I wanted to reuse initialized @mixpanel tracker. Otherwise you need to spin up a separate one if yo want to track events and people.

Moved special person properties parser into it's own method. It won't mutate passed in hash either. Wanted to do similar thing for event tracking, but can't find any documentation. I know `$signup` is a thing, can't find others.

Added all necessary tests.