Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (24 sloc) 1.03 KB

Sinatra Extension Skeleton

Quick way to get the skeleton of an extension for Sinatra going.


git clone sinatra-MODULENAME

cd sinatra-MODULENAME

bundle install --binstubs --path vendor

bin/rake rename n=MODULENAME

Then fix the remotes:

vi .git/config


[remote "origin"]
fetch = +refs/heads/:refs/remotes/origin/
url =


[remote "origin"]
fetch = +refs/heads/:refs/remotes/origin/
url =

or you could do:

$ git remote rm origin
$ git remote add origin
$ git config master.remote origin
$ git config master.merge refs/heads/master


There is a licence in the LICENCE file, which you can replace with the licence you wish for your module. This, as the file says, is under MIT licence. In other words, be good!