Skip to content
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 8f8417e commit d683ad348ec9bcbfba450056425e40a324f50f1b @infininight infininight committed
Showing with 32 additions and 32 deletions.
  1. +1 −1 Commands/Check ERB Syntax.plist
  2. +1 −1 Commands/Check Ruby Syntax.plist
  3. +1 −1 Commands/Completion: Ruby (rcodetools).tmCommand
  4. +1 −1 Commands/Convert Ruby hash to 1_9 syntax.tmCommand
  5. +1 −1 Commands/Enclose in * (RDoc comments).tmCommand
  6. +1 −1 Commands/Enclose in + (RDoc comments).tmCommand
  7. +1 −1 Commands/Enclose in _ (RDoc comments).tmCommand
  8. +1 −1 Commands/Insert Missing Requires.plist
  9. +1 −1 Commands/New Method.plist
  10. +1 −1 Commands/Omit from RDoc.tmCommand
  11. +1 −1 Commands/Open Require.tmCommand
  12. +1 −1 Commands/Toggle ERb Tags.tmCommand
  13. +1 −1 Commands/Toggle Quote Style.plist
  14. +1 −1 Commands/Toggle String:Symbol.tmCommand
  15. +1 −1 Commands/Toggle ‘do … end’ : ‘{ … }’.tmCommand
  16. +1 −1 Commands/word_wrap() (worw).plist
  17. +1 −1 DragCommands/Require Ruby File.tmDragCommand
  18. +1 −1 Preferences/Completion: require strings.tmPreferences
  19. +1 −1 Support/RakeMate/rake_mate.rb
  20. +1 −1 Support/RakeMate/run_rake_task.rb
  21. +1 −1 Support/bin/execute_line.rb
  22. +1 −1 Support/bin/insert_requires.rb
  23. +1 −1 Support/bin/linked_ri.rb
  24. +1 −1 Support/bin/make_destructive.rb
  25. +1 −1 Support/bin/snippet_paren.rb
  26. +1 −1 Support/lib/ruby_requires.rb
  27. +1 −1 Support/vendor/rcodetools/lib/rcodetools/xmpfilter.rb
  28. +1 −1 Support/vendor/rcodetools/test/data/attic/completion_detect_rbtest-input.rb
  29. +1 −1 Support/vendor/rcodetools/test/data/attic/completion_rbtest-input.rb
  30. +1 −1 Support/vendor/rcodetools/test/data/attic/doc_detect_rbtest2-input.rb
  31. +1 −1 Support/vendor/rcodetools/test/data/attic/doc_rbtest-input.rb
  32. +1 −1 Tests/rubylexer/regtest.rb
View
2 Commands/Check ERB Syntax.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
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
puts "Using " + `"${TM_RUBY:=ruby}" -e'puts "ruby-" + RUBY_VERSION.to_s'`.chomp + " / " + `"${TM_ERB:=erb}" --version 2&gt;&amp;1`.chomp
result = `"${TM_ERB:=erb}" -T - -x | "${TM_RUBY:=ruby}" -c 2&gt;&amp;1`
View
2 Commands/Check Ruby Syntax.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
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
puts `"${TM_RUBY:=ruby}" -e'puts "Using ruby-" + RUBY_VERSION.to_s'`
result = `"${TM_RUBY:=ruby}" -wc 2&gt;&amp;1`
View
2 Commands/Completion: Ruby (rcodetools).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"
require "#{ENV["TM_SUPPORT_PATH"]}/lib/ui"
View
2 Commands/Convert Ruby hash to 1_9 syntax.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
print case str = STDIN.read
when /=&gt;/; str.gsub(/:(\w+)[\s]+=&gt;[\s]+/, '\1: ')
View
2 Commands/Enclose in * (RDoc comments).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
s = STDIN.read
case s
when /^\w+$/
View
2 Commands/Enclose in + (RDoc comments).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
s = STDIN.read
case s
when /^\w+$/
View
2 Commands/Enclose in _ (RDoc comments).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
s = STDIN.read
case s
when /^\w+$/
View
2 Commands/Insert Missing Requires.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
$: &lt;&lt; "#{ENV['TM_SUPPORT_PATH']}/lib"
require "escape"
View
2 Commands/New Method.plist
@@ -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/exit_codes"
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape"
View
2 Commands/Omit from RDoc.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
s = STDIN.read
puts "\#--"
if s== ""
View
2 Commands/Open Require.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/ui.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/textmate.rb"
View
2 Commands/Toggle ERb Tags.tmCommand
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/usr/bin/env ruby -w
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w
require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape"
require "enumerator"
View
2 Commands/Toggle Quote Style.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
class String
def escape(char)
View
2 Commands/Toggle String:Symbol.tmCommand
@@ -7,7 +7,7 @@
<key>bundleUUID</key>
<string>467B298F-6227-11D9-BFB1-000D93589AF6</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
# Handle standard quotes
View
2 Commands/Toggle ‘do … end’ : ‘{ … }’.tmCommand
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/usr/bin/env ruby -KU
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -KU
# encoding: UTF-8
require "rexml/text"
View
2 Commands/word_wrap() (worw).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
$: &lt;&lt; ENV['TM_SUPPORT_PATH'] + '/lib'
require "ui"
TextMate::UI.request_string(:title =&gt; "Wrap Size",
View
2 DragCommands/Require Ruby File.tmDragCommand
@@ -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 'pathname'
View
2 Preferences/Completion: require strings.tmPreferences
@@ -9,7 +9,7 @@
<key>settings</key>
<dict>
<key>completionCommand</key>
- <string>#!/usr/bin/env ruby
+ <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
ptrn = /^#{Regexp.escape ENV["TM_CURRENT_WORD"].to_s}[^.]+\..+/
puts( $LOAD_PATH.inject([]) do |res, path|
res &lt;&lt; Dir.new(path).grep(ptrn) { |file| file[/^[^.]+/] } if File.exists?(path)
View
2 Support/RakeMate/rake_mate.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape"
require "#{ENV["TM_SUPPORT_PATH"]}/lib/ui"
View
2 Support/RakeMate/run_rake_task.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby -w
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w
require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape"
View
2 Support/bin/execute_line.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# encoding: utf-8
# be smart, dont print something if we already have..
View
2 Support/bin/insert_requires.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
$: << "#{ENV['TM_BUNDLE_SUPPORT']}/lib" if ENV.has_key?('TM_BUNDLE_SUPPORT')
require "ruby_requires"
View
2 Support/bin/linked_ri.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby -w
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w
# encoding: utf-8
# if we are not called directly from TM (e.g. JavaScript) the caller
View
2 Support/bin/make_destructive.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require "escape"
View
2 Support/bin/snippet_paren.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby -wKU
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
minimize = ENV["TM_MINIMIZE_PARENS"].to_s =~ /\byes\b/i
View
2 Support/lib/ruby_requires.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
$: << "#{ENV['TM_SUPPORT_PATH']}/lib" if ENV.has_key?('TM_SUPPORT_PATH')
require "escape"
View
2 Support/vendor/rcodetools/lib/rcodetools/xmpfilter.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# Copyright (c) 2005-2008 Mauricio Fernandez <mfp@acm.org> http://eigenclass.org
# rubikitch <rubikitch@ruby-lang.org>
# Use and distribution subject to the terms of the Ruby license.
View
2 Support/vendor/rcodetools/test/data/attic/completion_detect_rbtest-input.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
=begin test_bar
assert_equal "BAR", bar("bar")
=end
View
2 Support/vendor/rcodetools/test/data/attic/completion_rbtest-input.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
=begin test_bar
assert_equal "BAR", bar("bar")
=end
View
2 Support/vendor/rcodetools/test/data/attic/doc_detect_rbtest2-input.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
=begin test_bar
assert_equal "BAR", bar("bar")
=end
View
2 Support/vendor/rcodetools/test/data/attic/doc_rbtest-input.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
=begin test_bar
assert_equal "BAR", bar("bar")
=end
View
2 Tests/rubylexer/regtest.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby -w -d
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w -d
require "reg"
require "regarray"
require "reglogic"

0 comments on commit d683ad3

Please sign in to comment.
Something went wrong with that request. Please try again.