Skip to content

Commit

Permalink
Adding #!/usr/bin/env sh causes TextMate not to set the RUBYLIB varia…
Browse files Browse the repository at this point in the history
…ble, which was causing the builder gem issue with rails to surface.
  • Loading branch information
timcharper committed Sep 27, 2008
1 parent d951e57 commit b0af1ce
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Commands/Alternate File.tmCommand
Expand Up @@ -5,7 +5,8 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
<string>#!/usr/bin/env sh
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate/switch_command"
Spec::Mate::SwitchCommand.new.go_to_twin(ENV['TM_PROJECT_DIRECTORY'], ENV['TM_FILEPATH'])
Expand Down
3 changes: 2 additions & 1 deletion Commands/Run Focussed Specification.tmCommand
Expand Up @@ -5,7 +5,8 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
<string>#!/usr/bin/env sh
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
Spec::Mate::Runner.new.run_focussed STDOUT
Expand Down
3 changes: 2 additions & 1 deletion Commands/Run Specifications - Normal.tmCommand
Expand Up @@ -5,7 +5,8 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
<string>#!/usr/bin/env sh
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
Spec::Mate::Runner.new.run_file STDOUT
Expand Down
Expand Up @@ -5,7 +5,8 @@
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
<string>#!/usr/bin/env sh
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
Spec::Mate::Runner.new.run_files STDOUT
Expand Down

0 comments on commit b0af1ce

Please sign in to comment.