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 69e84e1 commit a011c1fe62a64ef96874fe838682c4967b3d37cb @infininight infininight committed Jul 27, 2013
View
2 Commands/Align Assignments.tmCommand
@@ -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
#
# Assignment block tidier, version 0.1.
#
View
2 Commands/Insert Block Comment.tmCommand
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/usr/bin/env ruby -wKU
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
require ENV['TM_SUPPORT_PATH'] + '/lib/escape.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes.rb'
View
2 Commands/Insert Source Header.tmCommand
@@ -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
#
# Notes:
View
2 Commands/Move to EOL and Insert ";".plist
@@ -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
termchar = ENV['TM_LINE_TERMINATOR'] || ";"
View
2 Commands/Reformat Comment.tmCommand
@@ -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
$LOAD_PATH &lt;&lt; "#{ENV["TM_SUPPORT_PATH"]}/lib"
require "escape"
View
2 Commands/Tabify.plist
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
- <string>#!/usr/bin/env ruby
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# This is a little more convoluted than it needs to be
# just to ensure that we can do an OK job on really long
View
2 Commands/Toggle CamelCase vs Underscore.tmCommand
@@ -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'
View
2 Commands/Toggle Single:Double String Quotes.plist
@@ -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
print case str = STDIN.read
when /\A"(.*)"\z/m; "'" + $1 + "'"
View
2 Commands/Toggle comment.plist
@@ -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 James Edward Gray II &lt;james (at) grayproductions.net&gt;
View
2 Commands/Unwrap Braces.tmCommand
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/usr/bin/env ruby -wKU
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
def tab
ENV['TM_SOFT_TABS'] == 'YES' ? ' ' * ENV['TM_TAB_SIZE'].to_i : "\t"
View
2 Commands/Wrap in Braces.tmCommand
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/usr/bin/env ruby -wKU
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
require "pp"
def indent(text)
View
2 Macros/Move to EOL and Insert Terminator + LF.plist
@@ -12,7 +12,7 @@
<key>bundlePath</key>
<string>/Users/dpowers/Library/Application Support/TextMate/Bundles/Source.tmbundle</string>
<key>command</key>
- <string>#!/usr/bin/env ruby
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
termchar = ";"
if ENV['TM_LINE_TERMINATOR']
View
2 Support/bin/reindent.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
#
# ReIndent v0.1
# By Sune Foldager <cryo at cyanite.org>
View
2 Support/bin/rubywrap.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
#
# File: rubywrap.rb

0 comments on commit a011c1f

Please sign in to comment.