maltize / sublime-text-2-ruby-tests

Sublime Text 2 plugin for running ruby tests! (Unit, RSpec, Cucumber)
722 stars 119 forks source link

Suggestion: Set bundler mode and automatically prepend bundler command #157

Open deiga opened 11 years ago

deiga commented 11 years ago

Instead of asking the user to prepend all his commands with bundle exec make an option like bundle_mode: true/false and `bundle_command: bundle exec``

Then if bundle_mode is true prepend bundle_exec to commands.

If you think this is a good Idea I could implement it.

gs commented 11 years ago

Hi @deiga,

sry for delay! :) If you still would like to do it then please implement it :))

RaVbaker commented 11 years ago

I would rather recommend to do it with something similar to check_for_rvm When it will check for Gemfile presence and if it's available then it will run bundle exec before command and if not then bare rspec and rake test

RaVbaker commented 11 years ago

I have implemented it in above commit. Please comment and if you will like my solution I will make pull request for it.