Permalink
Browse files

Use version 1.8 of ruby for bundle items

10.7 and 10.8 only include ruby 1.8, so all bundle items have been written to work with that. Optionally supporting ruby 1.9 and 2.0 is problematic as these versions are not fully backwards compatible.

#ignore
  • Loading branch information...
1 parent cb9bc21 commit 191b7d784860955fe882fa9efc246945bf6b8ee4 @infininight infininight committed Jul 27, 2013
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>ruby "$TM_BUNDLE_SUPPORT/bin/add_file.rb"</string>
+ <string>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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>ruby "$TM_BUNDLE_SUPPORT/bin/insert_class.rb" doxygen</string>
+ <string>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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>ruby "$TM_BUNDLE_SUPPORT/bin/insert_class.rb"</string>
+ <string>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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.
-ruby "$TM_BUNDLE_SUPPORT/bin/declaration_to_implementation.rb" doxygen</string>
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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.
-ruby "$TM_BUNDLE_SUPPORT/bin/declaration_to_implementation.rb"</string>
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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>ruby "$TM_BUNDLE_SUPPORT/bin/search.rb" input</string>
+ <string>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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>ruby "$TM_BUNDLE_SUPPORT/bin/search.rb" fuzzy input</string>
+ <string>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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>#!/usr/bin/env ruby
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
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.
-ruby "$TM_BUNDLE_SUPPORT/bin/search.rb" fuzzy</string>
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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.
-ruby "$TM_BUNDLE_SUPPORT/bin/search.rb"</string>
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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>ruby "$TM_BUNDLE_SUPPORT/bin/implementation_to_declaration.rb"</string>
+ <string>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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.
-ruby "$TM_BUNDLE_SUPPORT/bin/insert_super.rb"</string>
+/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby "$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>#!/usr/bin/env ruby
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# By Allan Odgaard:
# http://macromates.com/blog/archives/2006/04/12/customization-screencast/
View
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
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 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
$bundle = ENV['TM_BUNDLE_SUPPORT']
$support = ENV['TM_SUPPORT_PATH']
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
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 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# Based on find_xcode_project.rb by Chris Thomas.
require 'pathname'
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
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 @@
-#! /usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
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 @@
-#! /usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
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 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require ENV['TM_BUNDLE_SUPPORT'] + "/bin/find_qt_project"
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/run_helper"
View
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rails_bundle_tools'
# NOTE: In order to use this script, you must

0 comments on commit 191b7d7

Please sign in to comment.