Skip to content
kontagent, mixpanel, etc wrappers for sinatra
Ruby
Find file
Pull request Compare This branch is 9 commits ahead of lpetre:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
README
Rakefile
VERSION
stefl-sinmetrics.gemspec

README

sinmetrics: simple sinatra metrics helpers
  (c) 2010 Luke Petre (lpetre)

=== Usage

  require 'sinmetrics'
  require 'sinatra'

  mixpanel do
    token  '4579...cbb0'
  end

  get '/' do
    mp.log_event( 'play', @user.id)
    "hello world"
  end

=== Features

=== Other Options

=== Standalone Usage

  require 'sinmetrics'
  mp = MixPanel.new(
    :token  => '4579...cbb0',
  )

  >> mp.log_event( 'play', 1234 )
  => 1

=== Special Thanks
  This library is *heavily* inspired by sinbook, http://github.com/tmm1/sinbook
Something went wrong with that request. Please try again.