Tarpaulin

The Lowdown

My small attempt to make the world a better place to live in. Tarpaulin is a set of utilities to use when you are Camping. Whenever I coded something that I felt could live in any Camping app rather than solely in the web app I’m developing (Poetify) I broke it out and placed it into Tarpaulin. I would have called it Bivouac but somebody beat me to it :) Here is a list of the things in Tarpaulin at the moment:

  • ClearSilver templating library integration with Tilt … this should be pushed towards the Tilt project when I am sure it is robust

  • Rack-Flash integration to bring Camping to a par with Sinatra and vanilla Rack apps (contains a tiny monkey patch for Camping)

  • Before and after filters robbed from judofyr but stored here as it is just one file

  • a html5 #r403 and #r404 (should be many more) and #stylesheet_link_tag and #javascript_link_tag

  • a class called Endless that can work with a magic controller in your app to pattern match any length URL

  • a context class that helps give a bit of introspection to the call stack

  • a nifty logger that uses this context

  • File.here

Contributing to Tarpaulin

  • install the gem and use it

  • email me patches

How to achieve Gem Goodness, step by step howto

  • sirupsen.com/create-your-first-ruby-gem-and-release-it-to-gemcutter/

    • gem install jeweler

  • cd to where you want it

    • jeweler proj

  • (optional) create Eclipse/Your Fave IDE project based off of proj folder

  • edit Rakefile

  • edit proj.rb

    • rake

  • uh oh (make tests)

    • bundle install

    • bundle show [gemname]

    • bundle install –binstubs

  • now bin/… bin/rake bin/jeweler bin/rcov

  • bin/rake -T

  • bin/rake version:write

  • bin/rake install

  • hackety hack

  • bin/rake -T

  • bin/rake version:bump:X

  • bin/rake gemspec

  • git commit -m “all my hackz r kool”

  • bin/rake gemcutter:release

Copyright © 2011/2012 Anthony Durity. See LICENSE.txt for further details.