Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (23 sloc) 1.278 kb
1cf7335 @drnic simple README
authored
1 Ruby TextMate bundle
2 --------------------
3
77e6938 @drnic Added README for the 'Validate and Save'-with Rubinius feature
authored
4 The TextMate bundle that first appeared in the famous "Rails 15 minute video." This is it, many years later.
5
6 Installation
7 ============
8
9 To install via Git:
10
11 mkdir -p ~/Library/Application\ Support/TextMate/Bundles
12 cd ~/Library/Application\ Support/TextMate/Bundles
13 git clone git://github.com/drnic/ruby-tmbundle.git "Ruby.tmbundle"
14 osascript -e 'tell app "TextMate" to reload bundles'
15
16 Source can be viewed or forked via GitHub: [http://github.com/drnic/ruby-tmbundle](http://github.com/drnic/ruby-tmbundle)
17
18 Validate and Save
19 =================
20
21 When you save a Ruby file, it will first validate the syntax and print any validation error as a tooltip.
22
23 You can get more detailed syntax error information if you have Rubinius installed (and `rbx` in TextMate's $PATH).
24
25 If you have Homebrew installed:
26
27 brew install rubinius
28
29 Then in TextMate, add your homebrew `bin` folder to the $PATH.
30
31 * Go to TextMate's Preferences (Cmd+,)
32 * Go to "Advanced", then "Shell Variables"
33 * Edit the `PATH` variable, and add ":/path/to/homebrew/bin"
34
35 For example, if you have homebrew installed in `~/.homebrew` then you might add `:/Users/drnic/.homebrew/bin`
36
37 Save a dodgy Ruby file and see the beautifully helpful syntax message.
Something went wrong with that request. Please try again.