public
Description: TextMate bundle - Amplified Mate Productivity
Homepage: http://code.leadmediapartners.com/tools/rubyamp
Clone URL: git://github.com/timcharper/rubyamp.git
Adding #!/usr/bin/env sh causes TextMate not to set the RUBYLIB variable, 
which was causing the builder gem issue with rails to surface.
timcharper (author)
Sat Sep 27 10:33:57 -0700 2008
commit  142c7c25aa82c21c44f6e0b33712230428e333f6
tree    13ba82313e859545e17bbd6bd9c456b7586d8924
parent  0c420a4d83ba30fd400cad29f90910f2d5f05f29
...
7
8
9
10
 
 
11
12
13
...
7
8
9
 
10
11
12
13
14
0
@@ -7,7 +7,8 @@
0
   <key>bundleUUID</key>
0
   <string>255629A2-F227-467B-91B3-21D145908E78</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 require 'rubygems'
0
 require 'appscript'
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_tm_helpers.rb"
0
 require "#{ENV['TM_SUPPORT_PATH']}/lib/ui.rb"
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_tm_helpers.rb"
0
 input = $stdin.read
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/ruby_amp.rb"
0
 
0
 project_directory = ENV['TM_PROJECT_DIRECTORY']
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 d = RubyAMP::RemoteDebugger.new
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 require RubyAMP::LIB_ROOT + "/ruby_tm_helpers"
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 d = RubyAMP::RemoteDebugger.new
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>saveActiveFile</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/ruby_amp.rb"
0
 RubyAMP::Launcher.open_controller_terminal
0
 
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 d = RubyAMP::RemoteDebugger.new
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 d = RubyAMP::RemoteDebugger.new
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>saveActiveFile</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/rspec_debugger.rb"
0
 
0
 if ENV['TM_SCOPE'].include?("story")
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>saveActiveFile</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/ruby_amp.rb"
0
 
0
 run_file = RubyAMP::RemoteDebugger.prepare_debug_wrapper &lt;&lt;-EOF
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
   def short_path(path, paths_to_display = 2)
0
     path.split("/")[(-1 - paths_to_display)..(-1)] * "/"
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_tm_helpers.rb"
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_tm_helpers.rb"
...
5
6
7
8
 
 
9
10
11
12
13
 
14
15
16
...
5
6
7
 
8
9
10
11
12
13
 
14
15
16
17
0
@@ -5,12 +5,13 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
     require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/go_to_external.rb"
0
   
0
 RUBYEOF
0
 
0
- ${TM_RUBY:-ruby} /tmp/ruby-amp-$$.rb; exit_status=$?; rm /tmp/ruby-amp-$$.rb; exit $exit_status</string>
0
+${TM_RUBY:-ruby} /tmp/ruby-amp-$$.rb; exit_status=$?; rm /tmp/ruby-amp-$$.rb; exit $exit_status</string>
0
   <key>fallbackInput</key>
0
   <string>word</string>
0
   <key>input</key>
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_tm_helpers.rb"
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/grep_helpers.rb"
...
7
8
9
10
 
 
11
12
13
...
7
8
9
 
10
11
12
13
14
0
@@ -7,7 +7,8 @@
0
   <key>bundleUUID</key>
0
   <string>5A9D4FC6-6CBE-11D9-A21B-000D93589AF6</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/grep_helpers.rb"
0
 
0
 grepper = GrepperMenu.new("Grep in Project")
...
7
8
9
10
 
 
11
12
13
...
7
8
9
 
10
11
12
13
14
0
@@ -7,7 +7,8 @@
0
   <key>bundleUUID</key>
0
   <string>5A9D4FC6-6CBE-11D9-A21B-000D93589AF6</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/grep_helpers.rb"
0
 
0
 grepper = GrepperMenu.new("Grep for Fixture")
...
7
8
9
10
 
 
11
12
13
...
7
8
9
 
10
11
12
13
14
0
@@ -7,7 +7,8 @@
0
   <key>bundleUUID</key>
0
   <string>5A9D4FC6-6CBE-11D9-A21B-000D93589AF6</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/grep_helpers.rb"
0
 
0
 grepper = GrepperMenu.new("Grep for Method")
...
7
8
9
10
 
 
11
12
13
...
7
8
9
 
10
11
12
13
14
0
@@ -7,7 +7,8 @@
0
   <key>bundleUUID</key>
0
   <string>5A9D4FC6-6CBE-11D9-A21B-000D93589AF6</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/grep_helpers.rb"
0
 
0
 grepper = GrepperHTML.new("Grep in Project", :include_files =&gt; (%w[rb erb rhtml rxml yml js css html].map{ |i| "*.#{i}"}))
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
0
 d = RubyAMP::RemoteDebugger.new
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require 'rubygems'
0
 require 'appscript'
0
 include Appscript
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require 'rubygems'
0
 require 'appscript'
0
 include Appscript
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 %w{ui}.each { |lib| require "%s/lib/%s" % [ENV['TM_SUPPORT_PATH'], lib] }
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>saveActiveFile</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/rspec_debugger.rb"
0
 
0
 if ENV['TM_SCOPE'].include?("story")
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>saveActiveFile</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require 'rubygems'
0
 require 'appscript'
0
 include Appscript
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_tm_helpers.rb"
0
 require "#{ENV['TM_SUPPORT_PATH']}/lib/ui.rb"
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 
0
   def short_path(path, paths_to_display = 2)
0
     path.split("/")[(-1 - paths_to_display)..(-1)] * "/"
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require ENV['TM_SUPPORT_PATH'] + '/lib/escape.rb'
0
 
0
 doc = STDIN.read
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require 'rubygems'
0
 require 'appscript'
0
 include Appscript
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@
0
   <key>beforeRunningCommand</key>
0
   <string>nop</string>
0
   <key>command</key>
0
- <string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
+ <string>#!/usr/bin/env sh
0
+cat &lt;&lt;'RUBYEOF' &gt; /tmp/ruby-amp-$$.rb
0
 require ENV['TM_SUPPORT_PATH'] + '/lib/escape.rb'
0
 
0
 doc = STDIN.read

Comments

    No one has commented yet.