In the TextMate RVM instructions the text it says to set TM_RUBY
to /Users/wayne/.rvm/bin/textmate_ruby
and in the image it shows it set to rvm-auto-ruby
. I decided to set it to rvm-auto-ruby
thinking that it would use RVM's default Ruby version.
When running Command R
in the RSpec.bundle having TM_RUBY
set to rvm-auto-ruby
will result in a load error. When you set it to textmate_ruby
it works.
The only problem here is that TextMate doesn't always use the default version of Ruby since it's hardcoded in that file.
/Users/jspooner/.rvm/bin/textmate_ruby
:
#!/usr/bin/env bash
if [[ -s "/Users/jspooner/.rvm/environments/ruby-1.9.2-head" ]] ; then
source "/Users/jspooner/.rvm/environments/ruby-1.9.2-head"
exec ruby "$@"
else
echo "ERROR: Missing RVM environment file: '/Users/jspooner/.rvm/environments/ruby-1.9.2-head'" >&2
exit 1
fi
So two questions:
- What should
TM_RUBY=rvm-auto-ruby
actually do? - Is there a way to have TextMate use the RVM default?