Sublime Text Build without Saving - Anypreter
Sublimetext2 Build System
Sublimetext2 ships with its Build System. You can run a ruby file by Cmd + B (or through Tools -> Build menu).
One thing bothers me is you have to SAVE that file first, you can’t run “untitled” ruby code even you specified which build system (language) to use. This was the reason I still keep Textmate in my Mac, thanks to this plugin called Anypreter I can finally say goodbye to Textmate.
You can install it through Package Control. It supports PHP, Python and Ruby.
After specify the language (suppose you haven’t saved it),
Ctrl + Shift + X to run and check the result. Rightclick in the document works too.