From bbce64ada64626208414ddc4bdcc19c6b6dbf2e3 Mon Sep 17 00:00:00 2001 From: Michael Sheets <git@whitefalls.org> Date: Sun, 7 Oct 2018 23:32:03 -0500 Subject: [PATCH] Use ruby18 for ruby commands TextMate library methods still depend on this version of ruby and the Mojave update was tripping up some of the commands due to the default ruby version. --- Commands/Build.tmCommand | 4 ++-- Commands/Documentation.tmCommand | 2 +- Commands/Install.tmCommand | 4 ++-- Commands/Lint.tmCommand | 2 +- Commands/MetaLinter.tmCommand | 2 +- Commands/Run.tmCommand | 4 ++-- Commands/Test.tmCommand | 4 ++-- Commands/Vet.tmCommand | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Commands/Build.tmCommand b/Commands/Build.tmCommand index 2a55068..5616618 100644 --- a/Commands/Build.tmCommand +++ b/Commands/Build.tmCommand @@ -7,10 +7,10 @@ <key>beforeRunningCommand</key> <string>saveModifiedFiles</string> <key>command</key> - <string>#!/usr/bin/env ruby + <string>#!/usr/bin/env ruby18 require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate" -Go::go "build", :verb => "Building"</string> +Go::go "build", :verb => "Building"</string> <key>input</key> <string>document</string> <key>inputFormat</key> diff --git a/Commands/Documentation.tmCommand b/Commands/Documentation.tmCommand index 92cd95b..97c12bb 100644 --- a/Commands/Documentation.tmCommand +++ b/Commands/Documentation.tmCommand @@ -5,7 +5,7 @@ <key>beforeRunningCommand</key> <string>saveModifiedFiles</string> <key>command</key> - <string>#!/usr/bin/env ruby + <string>#!/usr/bin/env ruby18 require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate" Go::gogetdoc diff --git a/Commands/Install.tmCommand b/Commands/Install.tmCommand index 8eea558..a89b4ee 100644 --- a/Commands/Install.tmCommand +++ b/Commands/Install.tmCommand @@ -7,10 +7,10 @@ <key>beforeRunningCommand</key> <string>saveModifiedFiles</string> <key>command</key> - <string>#!/usr/bin/env ruby + <string>#!/usr/bin/env ruby18 require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate" -Go::go "install", :verb => "Installing"</string> +Go::go "install", :verb => "Installing"</string> <key>input</key> <string>document</string> <key>inputFormat</key> diff --git a/Commands/Lint.tmCommand b/Commands/Lint.tmCommand index a4405cc..0c2039b 100644 --- a/Commands/Lint.tmCommand +++ b/Commands/Lint.tmCommand @@ -5,7 +5,7 @@ <key>beforeRunningCommand</key> <string>saveActiveFile</string> <key>command</key> - <string>#!/usr/bin/env ruby + <string>#!/usr/bin/env ruby18 require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate" Go::golint diff --git a/Commands/MetaLinter.tmCommand b/Commands/MetaLinter.tmCommand index ad93c0e..7157449 100644 --- a/Commands/MetaLinter.tmCommand +++ b/Commands/MetaLinter.tmCommand @@ -5,7 +5,7 @@ <key>beforeRunningCommand</key> <string>nop</string> <key>command</key> - <string>#!/usr/bin/env ruby + <string>#!/usr/bin/env ruby18 require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate" Go::gometalinter diff --git a/Commands/Run.tmCommand b/Commands/Run.tmCommand index 9102e46..7d86543 100644 --- a/Commands/Run.tmCommand +++ b/Commands/Run.tmCommand @@ -7,10 +7,10 @@ <key>beforeRunningCommand</key> <string>saveModifiedFiles</string> <key>command</key> - <string>#!/usr/bin/env ruby + <string>#!/usr/bin/env ruby18 require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate" -Go::go "run", :verb => "Running" +Go::go "run", :verb => "Running" </string> <key>input</key> <string>document</string> diff --git a/Commands/Test.tmCommand b/Commands/Test.tmCommand index 1e27564..ba2c9f8 100644 --- a/Commands/Test.tmCommand +++ b/Commands/Test.tmCommand @@ -7,10 +7,10 @@ <key>beforeRunningCommand</key> <string>saveModifiedFiles</string> <key>command</key> - <string>#!/usr/bin/env ruby + <string>#!/usr/bin/env ruby18 require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate" -Go::go "test", :verb => "Testing" +Go::go "test", :verb => "Testing" </string> <key>input</key> <string>document</string> diff --git a/Commands/Vet.tmCommand b/Commands/Vet.tmCommand index bd9f47c..75ca575 100644 --- a/Commands/Vet.tmCommand +++ b/Commands/Vet.tmCommand @@ -5,7 +5,7 @@ <key>beforeRunningCommand</key> <string>nop</string> <key>command</key> - <string>#!/usr/bin/env ruby + <string>#!/usr/bin/env ruby18 require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate" Go::go "vet", :verb => "Vetting"