SublimeLinter / SublimeLinter-rubocop

SublimeLinter 3 plugin for Ruby, using rubocop.
MIT License
159 stars 40 forks source link

Bundle exec so that all dependant libraries are available #9

Closed DanielHeath closed 9 years ago

DanielHeath commented 10 years ago

Using bundler means you run the version of rubocop specified in your Gemfile.

It also avoids an error I was getting where rubocop-rspec wasn't installed globally.

reconbot commented 10 years ago

This isn't a bad idea

aparajita commented 10 years ago

What if bundler isn't installed?

aparajita commented 10 years ago

I'm looking for a ruby programmer to take responsibility (maintenance and support) for this plugin. I don't use ruby, so I won't take any responsibility for changes such as this.

reconbot commented 10 years ago

Well bundler is getting integrated into ruby. It's rare that it isn't being used but we can check for it.

aparajita commented 10 years ago

You can override the cmd method and check for the presence of bundler using util.which, then build the command to execute accordingly.

I'd be very happy if one or more of you would take over, I'll be happy to make you collaborators on the repo.

reconbot commented 10 years ago

I'm happy to help. On Aug 15, 2014 7:22 PM, "Aparajita Fishman" notifications@github.com wrote:

You can override the cmd method and check for the presence of bundler using util.which, then build the command to execute accordingly.

I'd be very happy if one or more of you would take over, I'll be happy to make you collaborators on the repo.

— Reply to this email directly or view it on GitHub https://github.com/SublimeLinter/SublimeLinter-rubocop/pull/9#issuecomment-52372886 .

aparajita commented 10 years ago

@reconbot Hallelujah! I sent you an invite to become a collab.

reconbot commented 9 years ago

This has been open for far too long. We've got another issue (with RVM) that's related and I'm working on a fix.

reconbot commented 9 years ago

@DanielHeath can you try with the latest version? If your rvm or chruby is working you might not need bundler. We just covered a few more use cases with our latest version. I'm going to close this due to age, but please reopen if it's not working for you.