textmate / ruby-on-rails-tmbundle

Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
http://groups.google.com/group/rails-textmate
MIT License
15 stars 22 forks source link

Fix "Jump to Method Definition" #24

Open kaiwood opened 8 years ago

kaiwood commented 8 years ago

This command fails because of the missing "rubygems" library for the custom Ruby 1.8 interpreter of TextMate 2. The only thing its used for is finding the paths of all installed gems. This makes no sense nowadays anyway, as every supported Rails version requires Bundler, which in turn can list only the gems used in a Rails project.

Shelling out and using bundle show --paths restores the functionality of this command, adds no additional dependencies and, needing to search fewer directories, is quicker too.

Fixes #23

aarti commented 7 years ago

Can we merge this, it works fine and also gets rid of rubygems dependency for this command.