textmate / ruby.tmbundle

TextMate support for Ruby
178 stars 91 forks source link

Fix `Executable.find` with RVM when used from other bundle. #112

Closed noniq closed 7 years ago

noniq commented 7 years ago

If the Ruby bundle is not the primary bundle but used from another bundle (by declaring a dependency), $TM_BUNDLE_SUPPORT_PATH will point to that bundle’s support directory. This lead to a wrong path being generated for the rvw_wrapper script in these cases. See https://github.com/rspec/rspec.tmbundle/issues/108 for an example.

noniq commented 7 years ago

Ping :) (Disclaimer: The buggy code was originally written by me, so I’m rather sure that this is the correct fix. And currently this functionality is broken for people using RVM and binstubs for example to run RSpec …)