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:
TM_RUBY=rvm-auto-ruby
actually do?Setting TM_RUBY to your-path/rvm-auto-ruby
http://rvm.io/integration/textmate/
should load whatever ruby and gemset is indicated in the .rvmrc file located in the project and if none default to rvm default. I just got this working and it is very smooth. I did need to get the latest version of rvm
rvm get head
to make it work and restart Textmate. Hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With