No commit activity in last 3 years
No release in over 3 years
A full-featured metrics extension for the sinatra webapp framework
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.0.0
>= 1.0.0
 Project 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