In the TextMate RVM instructions in the text that he says to install TM_RUBYin /Users/wayne/.rvm/bin/textmate_rubyand in the image , it shows that it is set to rvm-auto-ruby. I decided to install it in rvm-auto-ruby, thinking that it would use the default RVM for Ruby.
When you run Command Rin RSpec.bundle with TM_RUBYinstalled on rvm-auto-ruby, you will get a loading error . When you install it on textmate_ruby, it will work.
The only problem here is that TextMate does not always use the default version of Ruby, as it is hard-coded in this 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 do
TM_RUBY=rvm-auto-ruby? - , TextMate RVM ?