Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 670 Bytes
#-----------------------------------------------------------------------
#-*- vim: set ft=ruby: -*-
#
# Example rackup file for serving up a single repository. This repository
# will respond to index and gem requests.
#-----------------------------------------------------------------------
$:.unshift File.expand_path( File.join( File.dirname(__FILE__), "..", "lib" ) )
require 'stickler/middleware/compression'
require 'stickler/middleware/local'
gem_dir = File.expand_path( File.join( File.dirname( __FILE__ ), *%w[ .. test data ]))
puts gem_dir
use ::Stickler::Middleware::Compression
use ::Stickler::Middleware::Local, :repo_root => gem_dir
run ::Sinatra::Base