Permalink
Browse files

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
  • Loading branch information...
1 parent 9e72770 commit 1c1debf7582238fa98d31625ba4742fda2e8ab73 @infininight infininight committed Jun 18, 2014
Showing with 4 additions and 4 deletions.
  1. +1 −1 Commands/enum field.tmCommand
  2. +1 −1 Commands/struct field.tmCommand
  3. +1 −1 Macros/enum field.tmMacro
  4. +1 −1 Macros/struct field.tmMacro
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
if ENV['TM_CURRENT_LINE'] =~ /^\s*[\w.]+\s*=\s*(\d+)\s*[,;]?\s*$/
idx = $1.to_i + 1
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/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.
@@ -14,7 +14,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
if ENV['TM_CURRENT_LINE'] =~ /^\s*[\w.]+\s*=\s*(\d+)\s*[,;]?\s*$/
idx = $1.to_i + 1
@@ -14,7 +14,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/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.

0 comments on commit 1c1debf

Please sign in to comment.