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 191b7d7 commit 5a2a10734dad293fc1aee558d7872feb9c8030f3 @infininight infininight committed Jun 18, 2014
@@ -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 "$TM_BUNDLE_SUPPORT/bin/add_file.rb"</string>
+ <string>ruby18 "$TM_BUNDLE_SUPPORT/bin/add_file.rb"</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
@@ -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 "$TM_BUNDLE_SUPPORT/bin/insert_class.rb" doxygen</string>
+ <string>ruby18 "$TM_BUNDLE_SUPPORT/bin/insert_class.rb" doxygen</string>
<key>input</key>
<string>none</string>
<key>name</key>
@@ -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 "$TM_BUNDLE_SUPPORT/bin/insert_class.rb"</string>
+ <string>ruby18 "$TM_BUNDLE_SUPPORT/bin/insert_class.rb"</string>
<key>input</key>
<string>none</string>
<key>name</key>
@@ -15,7 +15,7 @@
# It's possible to override Doxygen placeholders
# after specifying name of the class.
-/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$TM_BUNDLE_SUPPORT/bin/declaration_to_implementation.rb" doxygen</string>
+ruby18 "$TM_BUNDLE_SUPPORT/bin/declaration_to_implementation.rb" doxygen</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
@@ -11,7 +11,7 @@
# Could be applied to bunch of methods in
# selection.
-/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$TM_BUNDLE_SUPPORT/bin/declaration_to_implementation.rb"</string>
+ruby18 "$TM_BUNDLE_SUPPORT/bin/declaration_to_implementation.rb"</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
@@ -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 "$TM_BUNDLE_SUPPORT/bin/search.rb" input</string>
+ <string>ruby18 "$TM_BUNDLE_SUPPORT/bin/search.rb" input</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
@@ -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 "$TM_BUNDLE_SUPPORT/bin/search.rb" fuzzy input</string>
+ <string>ruby18 "$TM_BUNDLE_SUPPORT/bin/search.rb" fuzzy input</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
@@ -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
require ENV['TM_SUPPORT_PATH']+'/lib/exit_codes'
word = (ENV['TM_SELECTED_TEXT'] or ENV['TM_CURRENT_WORD'] or '')
@@ -10,7 +10,7 @@
# each displayed method, and then displaying an
# option to pick one of them using text box.
-/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$TM_BUNDLE_SUPPORT/bin/search.rb" fuzzy</string>
+ruby18 "$TM_BUNDLE_SUPPORT/bin/search.rb" fuzzy</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
@@ -13,7 +13,7 @@
# there are multiple matches, there's an option
# to select one of them.
-/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$TM_BUNDLE_SUPPORT/bin/search.rb"</string>
+ruby18 "$TM_BUNDLE_SUPPORT/bin/search.rb"</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
@@ -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 "$TM_BUNDLE_SUPPORT/bin/implementation_to_declaration.rb"</string>
+ <string>ruby18 "$TM_BUNDLE_SUPPORT/bin/implementation_to_declaration.rb"</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
@@ -11,7 +11,7 @@
# same file, and prior to the current line. If
# it's unable to find superclass, QWidget is used.
-/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$TM_BUNDLE_SUPPORT/bin/insert_super.rb"</string>
+ruby18 "$TM_BUNDLE_SUPPORT/bin/insert_super.rb"</string>
<key>input</key>
<string>document</string>
<key>name</key>
@@ -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
# By Allan Odgaard:
# http://macromates.com/blog/archives/2006/04/12/customization-screencast/
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rails_bundle_tools'
$add_file = ENV['TM_BUNDLE_SUPPORT'] + '/AddFile/build/Release/AddFile.app/Contents/MacOS/AddFile'
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
$bundle = ENV['TM_BUNDLE_SUPPORT']
$support = ENV['TM_SUPPORT_PATH']
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rails_bundle_tools'
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/ctags'
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/common'
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
# Based on find_xcode_project.rb by Chris Thomas.
require 'pathname'
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rails_bundle_tools'
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/ctags'
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/common'
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rails_bundle_tools'
# TODO: camel-case the file name. So 'foo_bar.h' would name the class as 'FooBar'
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rails_bundle_tools'
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/ctags'
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/common'
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
require ENV['TM_BUNDLE_SUPPORT'] + "/bin/find_qt_project"
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/run_helper"
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rails_bundle_tools'
# NOTE: In order to use this script, you must

0 comments on commit 5a2a107

Please sign in to comment.