Skip to content

Instantly share code, notes, and snippets.

@yuriihabrusiev
Created December 23, 2013 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriihabrusiev/8099426 to your computer and use it in GitHub Desktop.
Save yuriihabrusiev/8099426 to your computer and use it in GitHub Desktop.
Sublime Text Ruby build system
{
"selector": "source.ruby",
"path": "$HOME/.rbenv/shims:$PATH",
"file_regex": "^(.*):([\\d]+):(.*) (.*)$",
"variants": [
{
"cmd": ["ruby", "-wv", "$file"],
"name": "Run"
},
{
"cmd": ["ruby", "-wvc", "$file"],
"name": "Check"
}
]
}
[
{ "keys": ["f9"], "command": "build", "args": {"variant": "Check"} },
{ "keys": ["f10"], "command": "build", "args": {"variant": "Run"} },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment