[TxMt] Re: Ruby version

Tim Rand timrandg at gmail.com
Mon Nov 14 21:04:33 UTC 2011


Hi Phil,
Preferences>Advanced>Shell Variables

add the following variable/value pair:

TM_RUBY   /Path/to/ruby

if you use ruby version manager you can add:

TM_RUBY   /Users/username/.rvm/bin/rvm-auto-ruby

which will automatically detect which version RVM is set to use and use
that one in textmate.
Tim


On Mon, Nov 14, 2011 at 12:38 PM, Phil Dobbin <phildobbin at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20111114/97c6e9a8/attachment.html>


More information about the textmate mailing list