I found the RVM wrapper method very inconvenient, and since you found that it doesnβt work at all with gemset unless you do a lot of tedious installation.
I had some success using the following script as TM_RUBY :
#!/bin/bash base_dir=${TM_PROJECT_DIRECTORY:-$PWD} cd $base_dir exec $MY_RUBY_HOME/bin/ruby $*
While you are working in the TextMate project, and you have the .rvmrc file in the root of the project, it will run your code in the Ruby and gemset version specified in .rvmrc . cd ensures that RVM detects .rvmrc .
Put the code above in ~/bin/textmate_ruby_wrapper , and then go to Settings> Advanced> Shell Variables and set TM_RUBY to the same path.
Theo
source share