Permalink
Browse files

Merge pull request #242 from EugZol/sublime-3

Sublime 3 support (backward-compatible with Sublime 2)
  • Loading branch information...
2 parents 4f0d32b + 98ea469 commit 4fca35b44648d4f46b1dc447ee7b9a45cc8f4768 @maltize committed Oct 22, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 run_ruby_test.py
View
@@ -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*)",

0 comments on commit 4fca35b

Please sign in to comment.