Skip to content

Commit

Permalink
Point to ruby 1.8 shim
Browse files Browse the repository at this point in the history
Using a shim allows us to catch when 1.8 of ruby is not present and provide other options.

#ignore
  • Loading branch information
infininight committed Jun 18, 2014
1 parent 9e72770 commit 1c1debf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Commands/enum field.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Commands/struct field.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Macros/enum field.tmMacro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Macros/struct field.tmMacro
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1c1debf

Please sign in to comment.