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...
infininight committed Jul 27, 2013
1 parent 8f8417e commit d683ad348ec9bcbfba450056425e40a324f50f1b
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
@@ -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`
@@ -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`
@@ -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"
@@ -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: ')
@@ -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+$/
@@ -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+$/
@@ -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+$/
@@ -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"
@@ -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"
@@ -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== ""
@@ -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"
@@ -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"
@@ -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)
@@ -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
@@ -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"
@@ -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",
@@ -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'
@@ -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)
@@ -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"
@@ -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"
@@ -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..
@@ -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
@@ -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
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require "escape"
@@ -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
@@ -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"
@@ -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.
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.