Completion.rb uses system ruby instead of TM_RUBY
Expected: If a TM_RUBY variable is present the bundle uses this over the system ruby. Ideally it would pick up the current ruby version specified by RVM as well.
Actual: No matter what is specified in the TM_RUBY shell variable it uses the default OSX system ruby.
Why this is an issue: You are not able to add gems to the current users ruby version. You instead have to use "rvm use system" and load the gem there in order for the completions to work. This is an automatic issue since the bundle relies on the json gem which is not installed with the default ruby version.
Steps to reproduce: Set the TM_RUBY variable in TextMate > Preferences > Advanced > Shell Variables Or use RVM to use a different ruby version than the osx default. Create an html page. Create an html element ( like div ) click into the div element between the < 'here' > hit the space bar. You should get a system runtime error stating that json could not be required. Install bundle