pderichs / sublime_rubocop

A Sublime Text RuboCop plugin.
238 stars 41 forks source link

Supporting other Ruby executables #2

Closed petehamilton closed 11 years ago

petehamilton commented 11 years ago

Firstly, this is an awesome plugin :+1:

How hard would it be to enable people to set their ruby executable via a preference rather than hardcoding RVM?

e.g. rubocop_ruby_executable: "some/direct/executable/path/ruby"

I would be happy to have a bash but it might me take a while to get my head around the plugin and how to add preferences and I figure for you it's probably 10 seconds work.

Let me know either way :)

pderichs commented 11 years ago

Thanks, glad to hear you like it!

I thought about implementing an option where the user can specify the rubocop location too, but since my team just needed the "RVM way" until now, I did not implement it. But you are right - a feature like that was definitely missing ;-)

I pushed the new version a few minutes ago. The user is now able to specify the folder which contains the (executable) rubocop script (5a125980f127f). So there is an alternative to RVM now.

Cheers, Patrick

petehamilton commented 11 years ago

Awesome, thanks!