Skip to content

Commit

Permalink
Merge pull request #242 from EugZol/sublime-3
Browse files Browse the repository at this point in the history
Sublime 3 support (backward-compatible with Sublime 2)
  • Loading branch information
maltize committed Oct 22, 2014
2 parents 4f0d32b + 98ea469 commit 4fca35b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run_ruby_test.py
Expand Up @@ -202,8 +202,10 @@ def run_shell_command(self, command, working_dir):
self.save_test_run(command, working_dir)
if COMMAND_PREFIX:
command = COMMAND_PREFIX + ' ' + command
if int(sublime.version().split('.')[0]) <= 2:
command = [command]
self.view.window().run_command("exec", {
"cmd": [command],
"cmd": command,
"shell": True,
"working_dir": working_dir,
"file_regex": r"([^ ]*\.rb):?(\d*)",
Expand Down

0 comments on commit 4fca35b

Please sign in to comment.