Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Point to ruby 1.8 shim

Using a shim allows us to catch when 1.8 of ruby is not present and provide other options.

#ignore
  • Loading branch information...
commit 10f84f4d8cb28b05b004120e856abe7d91bd9556 1 parent 63fcd2b
Michael Sheets infininight authored
Showing with 34 additions and 34 deletions.
  1. +1 −1  Commands/Add Column.tmCommand
  2. +1 −1  Commands/Bibliography Completion.plist
  3. +1 −1  Commands/Build Citation.tmCommand
  4. +1 −1  Commands/Change Current.tmCommand
  5. +1 −1  Commands/Command Based on Current Word : Selection….tmCommand
  6. +1 −1  Commands/Convert Selection to Table.tmCommand
  7. +1 −1  Commands/Create Table.plist
  8. +1 −1  Commands/Enhanced Insert Label From Document.plist
  9. +1 −1  Commands/Greek letter.plist
  10. +1 −1  Commands/Insert Command Based on Current Word.plist
  11. +1 −1  Commands/Insert Item Based on Current Environment.plist
  12. +1 −1  Commands/Insert LaTeX Command Based on Current Word.plist
  13. +1 −1  Commands/Insert LaTeX Template.tmCommand
  14. +1 −1  Commands/Insert environment closers.plist
  15. +1 −1  Commands/LaTeX and view.plist
  16. +1 −1  Commands/Open Included Item.tmCommand
  17. +1 −1  Commands/Open Master File.tmCommand
  18. +1 −1  Commands/Reformat.tmCommand
  19. +1 −1  Commands/Remove Column.tmCommand
  20. +1 −1  Commands/Set Engine Parameters for this File.tmCommand
  21. +1 −1  Commands/Set Engine for this File.tmCommand
  22. +1 −1  Commands/Set Master File.tmCommand
  23. +1 −1  Commands/Show Label as Tool Tip.tmCommand
  24. +1 −1  Commands/Show Outline.tmCommand
  25. +1 −1  Commands/Toggle Starred.tmCommand
  26. +1 −1  Commands/Wrap in Command.tmCommand
  27. +1 −1  DragCommands/Include Image.plist
  28. +1 −1  DragCommands/Include file.plist
  29. +1 −1  Support/bin/LatexCiteKeys.rb
  30. +1 −1  Support/bin/LatexCommandCompletions.rb
  31. +1 −1  Support/bin/LatexLabelCompletions.rb
  32. +1 −1  Support/bin/arrowShortcuts.rb
  33. +1 −1  Support/bin/toggle_style.rb
  34. +1 −1  Templates/Letter/info.plist
2  Commands/Add Column.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require 'pp'
require ENV["TM_SUPPORT_PATH"] + "/lib/escape.rb"
data=STDIN.readlines
2  Commands/Bibliography Completion.plist
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes.rb"
require ENV["TM_SUPPORT_PATH"] + "/lib/ui.rb"
require ENV["TM_BUNDLE_SUPPORT"] + "/lib/LaTeXUtils.rb"
2  Commands/Build Citation.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
# A reftex-style citation command
2  Commands/Change Current.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV['TM_SUPPORT_PATH'] + "/lib/escape.rb"
lines = STDIN.readlines
fi = lines.shift
2  Commands/Command Based on Current Word : Selection….tmCommand
View
@@ -9,7 +9,7 @@
<key>capturePattern</key>
<string>^([^:]*):([^:]*):(.*)$</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes.rb"
require ENV["TM_SUPPORT_PATH"] + "/lib/ui.rb"
# require ENV["TM_BUNDLE_SUPPORT"] + "/lib/LaTeXUtils.rb"
2  Commands/Convert Selection to Table.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
def escape(str)
esc_str = str.gsub(/\t/," &amp; ") + "\\\\"
esc_str.gsub(/(\d)E([+-]?)(\d{1,2})/) do |m|
2  Commands/Create Table.plist
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui.rb"
2  Commands/Enhanced Insert Label From Document.plist
View
@@ -9,7 +9,7 @@
<key>capturePattern</key>
<string>^([^:]*):([^:]*):(.*)$</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV["TM_SUPPORT_PATH"] + "/lib/escape.rb"
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes.rb"
require ENV["TM_SUPPORT_PATH"] + "/lib/ui.rb"
2  Commands/Greek letter.plist
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes"
require "#{ENV['TM_SUPPORT_PATH']}/lib/current_word"
2  Commands/Insert Command Based on Current Word.plist
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/config_helper.rb"
@plist = Config.load
shortcuts = @plist['commands']
2  Commands/Insert Item Based on Current Environment.plist
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
#
# Produces the right enumeration command for each environment.
# For instance in a itemize environment, will produce \item
2  Commands/Insert LaTeX Command Based on Current Word.plist
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
SUPPORT = ENV['TM_BUNDLE_SUPPORT']
require ENV['TM_SUPPORT_PATH'] + '/lib/ui'
require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes'
2  Commands/Insert LaTeX Template.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
# This command is meant to be used for quick insertion of your LaTeX template files. They should be placed
# in the directory ~/Library/Application Support/LaTeX/Templates. A pop-up is provided, letting you pick
# the template file you want inserted, and then it gets inserted as a snippet. See
2  Commands/Insert environment closers.plist
View
@@ -8,7 +8,7 @@
<string># This command inserts any missing \end{environment} at the caret position
# It is analogous with Insert Closing Tag for HTML.
-/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -- "$TM_SUPPORT_PATH/bin/checknest.rb" '\\begin(?&gt;\{(.+?)\})' '\\end(?&gt;\{(.+?)\})' '\end{$1}' -n$TM_LINE_NUMBER</string>
+ruby18 -- "$TM_SUPPORT_PATH/bin/checknest.rb" '\\begin(?&gt;\{(.+?)\})' '\\end(?&gt;\{(.+?)\})' '\end{$1}' -n$TM_LINE_NUMBER</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>
2  Commands/LaTeX and view.plist
View
@@ -7,7 +7,7 @@
<key>bundleUUID</key>
<string>46788DCE-6227-11D9-BFB1-000D93589AF6</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
# coding: utf-8
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/process"
2  Commands/Open Included Item.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape.rb"
require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/LaTeXUtils.rb"
2  Commands/Open Master File.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape.rb"
require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/LaTeXUtils.rb"
2  Commands/Reformat.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require 'pp'
lines = STDIN.read
s = lines.slice!(/^.*?\}\s*\n/)
2  Commands/Remove Column.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require 'pp'
require ENV["TM_SUPPORT_PATH"] + "/lib/escape.rb"
data=STDIN.readlines
2  Commands/Set Engine Parameters for this File.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb'
2  Commands/Set Engine for this File.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb'
2  Commands/Set Master File.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate.rb';
require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb';
2  Commands/Show Label as Tool Tip.tmCommand
View
@@ -9,7 +9,7 @@
<key>capturePattern</key>
<string>^([^:]*):([^:]*):(.*)$</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes.rb"
require ENV["TM_SUPPORT_PATH"] + "/lib/ui.rb"
require ENV["TM_BUNDLE_SUPPORT"] + "/lib/LaTeXUtils.rb"
2  Commands/Show Outline.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/escape.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/web_preview.rb'
2  Commands/Toggle Starred.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV['TM_SUPPORT_PATH'] + "/lib/escape.rb"
data = STDIN.read
location = [[ENV['TM_LINE_NUMBER'].to_i,ENV['TM_LINE_INDEX'].to_i]]
2  Commands/Wrap in Command.tmCommand
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require ENV['TM_SUPPORT_PATH'] +'/lib/escape.rb'
print "\\\\${1:emph}{#{if s = ENV['TM_SELECTED_TEXT'] then e_sn(s) else '$2' end}}"</string>
<key>fallbackInput</key>
2  DragCommands/Include Image.plist
View
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require 'pathname'
require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/LaTeXUtils.rb"
filename = ENV["TM_DROPPED_FILEPATH"]
2  DragCommands/Include file.plist
View
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+ <string>#!/usr/bin/env ruby18
require 'pathname'
require 'pp'
require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/LaTeXUtils.rb"
2  Support/bin/LatexCiteKeys.rb
View
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
require ENV["TM_BUNDLE_SUPPORT"] + "/lib/LaTeXUtils.rb"
phrase = STDIN.read.chomp
include LaTeX
2  Support/bin/LatexCommandCompletions.rb
View
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
#
#####################
# Helper function
2  Support/bin/LatexLabelCompletions.rb
View
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
require ENV["TM_BUNDLE_SUPPORT"] + "/lib/LaTeXUtils.rb"
phrase = ENV['TM_CURRENT_WORD']
include LaTeX
2  Support/bin/arrowShortcuts.rb
View
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby18
shortcutHash = {
"<=>" => "\\Leftrightarrow",
"<->" => "\\leftrightarrow",
2  Support/bin/toggle_style.rb
View
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -s
+#!/usr/bin/env ruby18 -s
$: << ENV['TM_SUPPORT_PATH'] + '/lib'
require 'escape'
def esc(str)
2  Templates/Letter/info.plist
View
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
+ <string>#!/usr/bin/env ruby18 -wKU
abort if File.exists? ENV['TM_NEW_FILE']
is_on_tiger = %x{ defaults read /System/Library/CoreServices/SystemVersion ProductVersion } =~ /\A10\.4/

3 comments on commit 10f84f4

martinpollow

Hi...
after that commit I am getting constantly "env: ruby18: No such file or directory" error messages for each of the possible bundle actions. Probably a symlink helps, but before that commit I did not have an issue.
I am using homebrew's ruby (/usr/local/bin/ruby) currently in version 2.1.2p95.

Best,
Martin

martinpollow
Please sign in to comment.
Something went wrong with that request. Please try again.