Permalink
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 700 Bytes
#-----------------------------------------------------------------------
# -*- vim: set ft=ruby: -*-
#
# An Example remote repository that implements all the methods that are
# required to satisfy being talked to by a Respository::Remote client.
# This means it needs to speak:
# - the gem cutter api
# - the modern gem server ai
#
#-----------------------------------------------------------------------
$:.unshift File.expand_path( File.join( File.dirname(__FILE__), "..", "lib" ) )
require 'stickler'
gem_dir = File.expand_path( "../test/tmp", File.dirname( __FILE__ ) )
use ::Stickler::Middleware::Compression
use ::Stickler::Middleware::Gemcutter, :repo_root => gem_dir
run ::Sinatra::Base