Here is a simple bash script I use to get the latest RSpec gem and update the TextMate bundle:


#!/usr/bin/env bash

cd ~/Documents/Development/bdd/rspec-trunk
svn update
cd rspec
rake clobber
rake package
sudo gem install pkg/*.gem
svn update ~/Library/Application\ Support/\
              TextMate/Pristine Copy/Bundles/RSpec.tmbundle

You will have to adjust ~/Documents/Development/bdd/rspec-trunk - but make sure it refers to a checkout of svn://rubyforge.org/var/svn/rspec/trunk/

Also, the RSpec TextMate bundle is available in two places:

The MacroMates version will track the CURRENT tag in RSpec, ie the latest released version (currently 1.0.8). You will need to checkout the bundle from RSpec trunk if you want to use TextMate with the latest RSpec (as built above). Note that the bundle is built as part of rake package, so you could just copy it from the pkg directory if you wanted.

Leave a Reply