Before using this plugin, you must ensure that rubycritic is installed on your system. To install rubycritic, do the following:
-
Install Ruby. Sugestion:
rbenv. -
Install
rubycriticby typing the following in a terminal:[sudo] gem install rubycritic -
If you are using
rbenv, ensure that they are loaded in your shell’s correct startup file.
rbenv rehash
- test in sublime console (View > show console)
import os
os.system("rubycritic")
-
If is result 0, then there is no need to do the next steps.
-
If result is 32512, then sublime cannot find rubycritic. Please do these instructions in you command line:
which rubycritic
- copy the output and do this
ln -s [OUTPUT] /usr/local/bin/rubycritic
# rbenv example: ln -s /Users/YOURUSERNAME/.rbenv/shims/rubycritic /usr/local/bin/rubycritic
If you would like to contribute enhancements or fixes, please do the following:
- Fork the plugin repository.
- Hack on a separate topic branch created from the latest
master. - Commit and push the topic branch.
- Make a pull request.
- Be patient. ;-)