From 1c1debf7582238fa98d31625ba4742fda2e8ab73 Mon Sep 17 00:00:00 2001 From: Michael Sheets Date: Wed, 18 Jun 2014 03:57:30 -0500 Subject: [PATCH] Point to ruby 1.8 shim Using a shim allows us to catch when 1.8 of ruby is not present and provide other options. #ignore --- Commands/enum field.tmCommand | 2 +- Commands/struct field.tmCommand | 2 +- Macros/enum field.tmMacro | 2 +- Macros/struct field.tmMacro | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Commands/enum field.tmCommand b/Commands/enum field.tmCommand index 3af3eb6..f854fbb 100644 --- a/Commands/enum field.tmCommand +++ b/Commands/enum field.tmCommand @@ -5,7 +5,7 @@ beforeRunningCommand nop command - #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby + #!/usr/bin/env ruby18 if ENV['TM_CURRENT_LINE'] =~ /^\s*[\w.]+\s*=\s*(\d+)\s*[,;]?\s*$/ idx = $1.to_i + 1 diff --git a/Commands/struct field.tmCommand b/Commands/struct field.tmCommand index c609b7f..2cf0bb9 100644 --- a/Commands/struct field.tmCommand +++ b/Commands/struct field.tmCommand @@ -5,7 +5,7 @@ beforeRunningCommand nop command - #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby + #!/usr/bin/env ruby18 # this command is intended to be used to generate the struct field macro # the struct field macro is ^E followed by this command. diff --git a/Macros/enum field.tmMacro b/Macros/enum field.tmMacro index ff80c49..75e2e3f 100644 --- a/Macros/enum field.tmMacro +++ b/Macros/enum field.tmMacro @@ -14,7 +14,7 @@ beforeRunningCommand nop command - #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby + #!/usr/bin/env ruby18 if ENV['TM_CURRENT_LINE'] =~ /^\s*[\w.]+\s*=\s*(\d+)\s*[,;]?\s*$/ idx = $1.to_i + 1 diff --git a/Macros/struct field.tmMacro b/Macros/struct field.tmMacro index 8b19831..61a840a 100644 --- a/Macros/struct field.tmMacro +++ b/Macros/struct field.tmMacro @@ -14,7 +14,7 @@ beforeRunningCommand nop command - #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby + #!/usr/bin/env ruby18 # this command is intended to be used to generate the struct field macro # the struct field macro is ^E followed by this command.