Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

i herd u liek counting

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.mkdn
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.mkdn

Umpire

Umpire is a simple counting application using Sinatra and Redis. Its goal is to count "strikes" against things. These could be instances of errors in logs, etc.

Developing

It's simple:

git clone git@github.com:wfarr/umpire.git
cd umpire/
gem install bundler
bundle install
rake # run tests
passenger start # run app

You're done!

API

The current API looks like so:

POST /new, :fqdn # attempts to create a new player with count 1
POST /incr, :fqdn # attempts to incremeny player's count by 1
POST /destroy, :fqdn # throw the player out of the game
Something went wrong with that request. Please try again.