[TxMt] Ruby version

Phil Dobbin phildobbin at gmail.com
Mon Nov 14 20:38:15 UTC 2011


Hi, all.

I've just started to use TextMate & I'm wondering how to get it to recognise
the Ruby version I use.

I've altered my $PATH in TM's Prefs to reflect the change, Terminal shows:

[Mon Nov 14 20:00:55 dobbin at darkstar:~ ] $ which ruby
/usr/local/rvm/rubies/ruby-1.9.3-p0/bin/ruby

but running the example script even with a shebang line returns this:

#!/usr/local/rvm/rubies/ruby-1.9.3-p0/bin/ruby

RUBY_VERSION # => "1.8.7"
data    = %w[one two three four five]
results = data.select { |n| n[0] == ?t } # => ["two", "three"]

Any help appreciated.

Cheers,

    Phil...


-- 
Nothing to see here... move along, move along



More information about the textmate mailing list