<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
+&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
 &lt;plist version=&quot;1.0&quot;&gt;
 &lt;dict&gt;
 	&lt;key&gt;autoScrollOutput&lt;/key&gt;
@@ -7,7 +7,9 @@
 	&lt;key&gt;beforeRunningCommand&lt;/key&gt;
 	&lt;string&gt;nop&lt;/string&gt;
 	&lt;key&gt;command&lt;/key&gt;
-	&lt;string&gt;export RUBYLIB=&quot;$TM_BUNDLE_SUPPORT/RubyMate${RUBYLIB:+:$RUBYLIB}&quot;
+	&lt;string&gt;#!/bin/sh
+
+export RUBYLIB=&quot;$TM_BUNDLE_SUPPORT/RubyMate${RUBYLIB:+:$RUBYLIB}&quot;
 export TM_RUBY=$(type -p &quot;${TM_RUBY:-ruby}&quot;)
 
 &quot;${TM_RUBY}&quot; -- &quot;$TM_BUNDLE_SUPPORT/RubyMate/run_script.rb&quot;</diff>
      <filename>Commands/Run.tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-require &quot;ui&quot;
+require &quot;#{ENV['TM_SUPPORT_PATH']}/lib/ui&quot;
 require &quot;io/wait&quot;
 
 class TextMateSTDIN &lt; IO</diff>
      <filename>Support/RubyMate/stdin_dialog.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7ba0db4e1dbc73f6c9429d24be968002e592f860</id>
    </parent>
  </parents>
  <author>
    <name>duff</name>
    <email>duff@dfb7d73b-c2ec-0310-8fea-fb051d288c6d</email>
  </author>
  <url>http://github.com/subtleGradient/ruby.tmbundle/commit/8959f4dbf9796172876b4348e72762efb8d88ec4</url>
  <id>8959f4dbf9796172876b4348e72762efb8d88ec4</id>
  <committed-date>2007-11-30T22:07:43-08:00</committed-date>
  <authored-date>2007-11-30T22:07:43-08:00</authored-date>
  <message>&#8226; use #!/bin/sh as shebang for &#8220;Ruby &#8594; Run&#8221; and &#8220;TextMate &#8594; Relaunch&#8221;.

This is to prevent running &#8216;Support/lib/bash_init.sh&#8217; which sets up RUBYLIB. Having RUBYLIB set to include Support/lib means users who run scripts that require libraries named the same as those we have in TextMate will likely get the wrong one.

Very few commands actually make use of the fact that RUBYLIB is set, so maybe we should edit &#8216;bash_init.sh&#8217; to simply not set it, although I am waiting with such change till after next build, so we have time to thoroughly test that everything still works.

The downside by this change is that running a ruby script in TM intended to be used by a TM command, now require TM support libraries to be included using the full path (or the Support/lib folder be added to the include path).

On that note, RubyMate/stdin_dialog.rb had to be updated to do so, since it is indirectly loaded when running scripts (now in an environment w/o Support/lib in RUBYLIB).


git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/Ruby.tmbundle@8572 dfb7d73b-c2ec-0310-8fea-fb051d288c6d</message>
  <tree>869241e5db8e12b499cbcd1d168de628f91cea75</tree>
  <committer>
    <name>duff</name>
    <email>duff@dfb7d73b-c2ec-0310-8fea-fb051d288c6d</email>
  </committer>
</commit>
