Read my latest article: Lesson Learned: Git Ref Naming (posted Fri, 19 Sep 2008 04:23:00 GMT)

RSpec Bundle for TextMate

Posted by Robby Russell Mon, 12 Feb 2007 13:58:00 GMT

9 comments Latest by Ben Fri, 06 Jun 2008 10:10:55 GMT

Just a quick follow up to my post last night, Sharing Custom TextMate Bundles with Subversion. It appears that I missed the RSpec bundle for TextMate, which is listed on the RSpec webpage.

Install the RSpec Bundle

Installation is quite simple, just change directories to your TextMate bundle directory.


    $ cd ~/Library/Application\ Support/TextMate/Bundles/

Check out the RSpec bundle from the subversion repository.


    $ svn co svn://rubyforge.org/var/svn/rspec/trunk/RSpec.tmbundle
    # lots of files...
    A    RSpec.tmbundle/Support/spec/fixtures/example_failing_spec.rb
    A    RSpec.tmbundle/Support/spec/fixtures/example_passing_spec.rb
    A    RSpec.tmbundle/Support/spec/spec_mate_spec.rb
    Checked out revision 1489.

Now, just reload your bundles in TextMate and you’re good to go!

Bundles > Bundle Editor > Reload Bundles

I’d like to thank Aslak Hellesøy for pointing me to this and for also providing me with the correct subversion URL, which is currently outdated on the RSpec page until the next release.

Subscribe to my RSS feed Enjoying the content? Be sure to subscribe to my RSS feed.
Comments

Leave a response

  1. Avatar
    Chad Humphries Mon, 12 Feb 2007 18:02:51 GMT

    The rspec and ruby-debug bundles never leave my default install.

  2. Avatar
    Tim Lucas Mon, 12 Feb 2007 23:13:03 GMT

    noice. Hadn’t got round to installing that one yet.

  3. Avatar
    Sam Aaron Tue, 13 Feb 2007 13:31:59 GMT

    I’m slightly confused about how TextMate deals with the various types of bundles (global, local, edited, etc.). From my rather poor understanding of this, I can’t see why you would put it in

    /Library/Application\ Support/TextMate/Bundles/

    rather than

    /Library/Application\ Support/TextMate/Pristine Copy/Bundles/

    I’m interested to know how all this stuff works :-)

  4. Avatar
    Robby Russell Tue, 13 Feb 2007 13:52:14 GMT Recommend me on Working with Rails

    Sam,

    Yeah, it can be a little confusing. :-)

    When you create your own bundle, it saves it to the first directory path, which means that it’s a local user path. The documentation on the TextMate site also tell you to put it there. Beyond that… I’m just doing what I’ve been told to do. ;-)

  5. Avatar
    Sam Aaron Tue, 13 Feb 2007 14:38:20 GMT

    Thanks for the help Robby :-)

    I also noticed that Typos seems to have eaten the tilde on both of the paths above, oh the confusion, the confusion!

    I’m not too worried about getting things to work (I’m sure TextMate doesn’t really care which directory the bundle is in too much, and so things should pretty much just work). However, I am concerned about making sure I know how to update all this stuff.

    Currently my global bundle directory

    /Library/Application\ Support/TextMate/Bundles/

    contains a svn co of the TM bundle repository

    My local bundle directory:

    Users/sam/Library/Application\ Support/TextMate/Pristine Copy/Bundles/

    contains bundles I’ve downloaded as files and double-clicked to install. Finally,

    /Users/sam/Library/Application\ Support/TextMate/Bundles/

    contains my own personal bundles which I created using the bundle editor.

    At the moment I have a command: `mateup`, which checks out the latest copy of the TM bundles. However, if I start adding other svn stored bundles, I’d want my `mateup` command to keep those up to date too.

    I’m currently thinking that I should probably keep all the external svn bundles in the global bundle directory, and keep all the personal bespoke stuff in my local bundle directories.

    However I’m interested in how other people manage this stuff too :-)

  6. Avatar
    Amos Thu, 19 Jul 2007 04:14:33 GMT

    I get errors when I run my specs and have to run them from iterm to get them to work.

  7. Avatar
    Pei Mei Mon, 10 Sep 2007 13:59:09 GMT

    Thank you so much for sharing this. I was really irritated when I started using RSpec and typed describe and hit tab without thinking and got a tab. :)

  8. Avatar
    Lake Denman Thu, 24 Apr 2008 17:10:50 GMT

    Thanks!

  9. Avatar
    Ben Fri, 06 Jun 2008 10:10:55 GMT

    Thanks Robby, this was really helpful although it seems out of date. I wrote a quick blog entry for getting the latest bundle:

    http://blog.emson.co.uk/2008/06/installing-the-latest-rspec-textmate-bundle/

    Thanks, Ben…

Share your thoughts... (really...I want to hear them)

Comments