ruby-tmbundle

Ruby TextMate bundle

Github星跟蹤圖

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.

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

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.

主要指標

概覽
名稱與所有者drnic/ruby-tmbundle
主編程語言Ruby
編程語言Ruby (語言數: 1)
平台
許可證
所有者活动
創建於2008-02-26 08:49:22
推送於2012-07-19 09:42:12
最后一次提交2012-07-19 09:42:12
發布數0
用户参与
星數163
關注者數0
派生數48
提交數623
已啟用問題?
問題數4
打開的問題數2
拉請求數6
打開的拉請求數6
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?