Use ruby 1.8 in the shebang for new commands

Using the ruby found via PATH would require the command to be tested with ruby 1.8, 1.9, 2.0 and possibly alternative ruby implementations (rubinus, jruby, …) so best to be explicit about which version the command is written for.
This commit is contained in:
Allan Odgaard
2013-07-19 21:19:59 +02:00
parent 1b61c9c688
commit 60d07b061e
2 changed files with 3 additions and 3 deletions

View File

@@ -1,2 +1,2 @@
{ command = '#!/usr/bin/env ruby -wKU\nputs "Hello world"\n';
{ command = '#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU\nputs "Hello world"\n';
}

View File

@@ -1,4 +1,4 @@
{ draggedFileExtensions = ( txt );
command = '#!/usr/bin/env ruby -wKU\nputs "» #{ENV[\'TM_DROPPED_FILE\']}"\n';
command = '#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU\nputs "» #{ENV[\'TM_DROPPED_FILE\']}"\n';
output = insertAsSnippet;
}
}