From 98ea469e0004c08eae77114007abd4661598c3e7 Mon Sep 17 00:00:00 2001 From: Eugene Zolotarev Date: Wed, 22 Oct 2014 04:31:56 +0400 Subject: [PATCH] Sublime 3 support (backward-compatible with Sublime 2) --- run_ruby_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run_ruby_test.py b/run_ruby_test.py index 82bdacf..44bb457 100644 --- a/run_ruby_test.py +++ b/run_ruby_test.py @@ -198,8 +198,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*)"