Ruby TextMate bundle
Ruby
Latest commit 686d46d Jul 18, 2012 @drnic Merge pull request #16 from tinogomes/patch-1
Highlight for symbol on Ruby 1.9
Permalink
Failed to load latest commit information.
Commands Filter out annoying warnings in RSpec Apr 5, 2012
DragCommands
Macros Introducing a pair of snippets for XML parsing and XPath queries. Nov 15, 2007
Preferences The require completion would fail if there was an entry in $LOAD_PATH… Feb 22, 2008
Snippets Little adjust on Ruby language for annotations words (private, public… Feb 23, 2012
Support
Syntaxes Highlight for symbol on Ruby 1.9 Jul 19, 2012
Tests Add a very simple test file. Oct 1, 2010
README.md Added image examples of the 'Validate and Save' feature Jun 1, 2010
info.plist Little adjust on Ruby language for annotations words (private, public… Feb 23, 2012

README.md

Ruby TextMate bundle

The TextMate bundle that first appeared in the famous "Rails 15 minute video." This is it, many years later.

Installation

To install via Git:

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/drnic/ruby-tmbundle.git "Ruby.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'

Source can be viewed or forked via GitHub: http://github.com/drnic/ruby-tmbundle

Validate and Save

When you save a Ruby file, it will first validate the syntax and print any validation error as a tooltip.

Validate and Save - No Rubinius

You can get more detailed syntax error information if you have Rubinius installed (and rbx in TextMate's $PATH).

Validate and Save - Rubinius installed

If you have Homebrew installed:

brew install rubinius

Then in TextMate, add your homebrew bin folder to the $PATH.

  • Go to TextMate's Preferences (Cmd+,)
  • Go to "Advanced", then "Shell Variables"
  • Edit the PATH variable, and add ":/path/to/homebrew/bin"

For example, if you have homebrew installed in ~/.homebrew then you might add :/Users/drnic/.homebrew/bin

Save a dodgy Ruby file and see the beautifully helpful syntax message.