On 31 Dec 2010, at 20:38, Michael Sheets wrote:
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.
Actually the “Execute Line as Ruby” probably should use TM_RUBY since we are executing user content.