[TxMt] Re: RVM, Ruby, Textmate and me?

Michael Sheets mummer at whitefalls.org
Fri Dec 31 19:38:18 UTC 2010


On Dec 29, 2010, at 2:53 PM, Shane Knysh wrote:

> When I use the run command textmate execute the file using the correct ruby, for example the "puts RUBY_DESCRIPTION" returns the expected ruby 1.9.2. However, when I "Execute line/ selection as ruby" I still get ruby 1.8.7 (the system ruby). 
> 
> Looking at the bundles the "Execute line/ selection as ruby" command starts with "#!/usr/bin/env ruby"
> 
> How should I modify the bundles such that it run the selection or line via the TM_RUBY environment variable rather than the system ruby?

The included bundle items are designed to work with the system-supplied version of ruby, TM_RUBY is used only when running ruby scripts, etc. So it's working as designed, if change it to use 1.9 everywhere you'll see issues with some commands.


More information about the textmate mailing list