zevarito/mixpanel — pull request #84 by ihunter (2013-03-29 22:05:02+00:00)
Title: Change out Base64 encoder + JSON building

I was finding that the call to MP was always erroring when trying to hit http://api.mixpanel.com/engage. After peeking at the response in verbose mode, this is what I was getting:

```
{
status: 0,
error: "data, invalid base64 encoding"
}
```

I found a reference on their end on how they do Base64 and JSON generation here: https://mixpanel.com/docs/integration-libraries/ruby

This is that implementation swapped in for the previous way.