Sinatra application for installs-over-time-statistics of your greasemonkey userscripts from userscript.org.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gems
.gitignore
README.markdown
Rakefile
config.ru
pinky.rb

README.markdown

Pinky

Pinky generates graphs on installs-over-time of your greasemonkey userscripts hosted on userscripts.org. Pinky is written in Ruby using Sinatra, DataMapper and Googlecharts (with help of the loved-by-everybody Haml and Hpricot).

Requirements

See .gems for required gems:

    hpricot --version '>= 0.2' --source code.whytheluckystiff.net
    dm-core --version 0.9.10
    haml --version 2.0.6
    mattetti-googlecharts --version 1.3.6 --source gems.github.com/
    do_sqlite3 --version 0.9.11

Pinky is currently using sqlite3 for data storage. You may of course use any other database supported by datamapper.

Fetch data from userscripts.org

To parse the current number of installs of your userscripts run a rake task: rake fetch

set up a cron job for daily parsing of the current number of installs. There is a rake task rake cron which is currently used by heroku for periodic jobs.

Installation

The most easy way is to deploy Pinky on heroku.

Copying

All sources included in this distribution are made available under the MIT license.