This is a fork of the nice sinatra-authentication gem to add ajax-ready responses to all the routes.
To install:
git clone git@github.com:/wakely/sinatra-authentication-ajax
cd ./sinatra-authentication-ajax
as root:
gem build ./sinatra-authentication-ajax.gemspec
gem install ./sinatra-authentication-ajax-0.4.x.gem
Or?
gem 'sinatra-authentication-ajax', :git => 'git://github.com/wakely/sinatra-authentication-ajax.git'
gem install 'sinatra-authentication-ajax', github: 'wakely/sinatra-authentication-ajax'