Skip to content

Commit

Permalink
Point to ruby 1.8 shim
Browse files Browse the repository at this point in the history
Using a shim allows us to catch when 1.8 of ruby is not present and provide other options.

#ignore
  • Loading branch information
infininight committed Jun 18, 2014
1 parent ab349b3 commit fc3957b
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Commands/CodeCompletion HTML Attributes.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>bundleUUID</key>
<string>467B298F-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
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
TextmateCodeCompletion.go!</string>
<key>fallbackInput</key>
Expand Down
2 changes: 1 addition & 1 deletion Commands/CodeCompletion HTML Tags.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>bundleUUID</key>
<string>467B298F-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
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
TextmateCodeCompletion.go!
</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Convert Line : Selection to URL Escapes.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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
print STDIN.read.gsub(/([^a-zA-Z0-9_.-]+)/n) {
'%' + $1.unpack('H2' * $1.size).join('%').upcase
Expand Down
2 changes: 1 addition & 1 deletion Commands/Convert to HTML Entities.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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
$KCODE = 'U'
$char_to_entity = { }
Expand Down
2 changes: 1 addition & 1 deletion Commands/Convert to named entities excl tags.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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
$KCODE = 'U'
$char_to_entity = { }
Expand Down
2 changes: 1 addition & 1 deletion Commands/Decode HTML Entities.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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
$KCODE = 'U'
$entity_to_char = { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 'cgi'
print CGI.unescape(STDIN.read)
</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Documentation for Tag.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
# Lookup current word as a tag name on w3c.org
#
Expand Down
2 changes: 1 addition & 1 deletion Commands/Encrypt Line : Selection (ROT 13).tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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 e_js(str)
str.gsub(/(?=[\\"])/, '\\').gsub(/\n/, '\n').gsub(/[@.\/]/) { |ch| sprintf('\\%03o', ch[0]) }
Expand Down
2 changes: 1 addition & 1 deletion Commands/Insert Close Tag.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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
doc = STDIN.read
line = ENV['TM_LINE_NUMBER'].to_i
Expand Down
2 changes: 1 addition & 1 deletion Commands/Insert Entity….plist
Original file line number Diff line number Diff line change
Expand Up @@ -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 -w
<string>#!/usr/bin/env ruby18 -w
require "#{ENV['TM_SUPPORT_PATH']}/lib/osx/plist"
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape"
Expand Down
2 changes: 1 addition & 1 deletion Commands/Insert Tag Pair.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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 -wKU
<string>#!/usr/bin/env ruby18 -wKU
#
# This script will expand the current word into: &lt;word&gt;&lt;/word&gt;
# It will recognize HTML 4.0 tags that need no close tag.
Expand Down
2 changes: 1 addition & 1 deletion Commands/Persistent Include.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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']}/tminclude.rb"
TextMate::Includes.instance.include_command
</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Preview in All Active Browsers.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
<string>#!/usr/bin/env ruby18 -wKU
#
# Open Document in Running Browser(s)
#
Expand Down
2 changes: 1 addition & 1 deletion Commands/Tidy.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>capturePattern</key>
<string>line (\d+) column (\d+) - (.*?)$</string>
<key>command</key>
<string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
<string>#!/usr/bin/env ruby18 -wKU
require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes.rb'
Expand Down
2 changes: 1 addition & 1 deletion Commands/Update Includes.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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']}/tminclude.rb"
TextMate::Includes.instance.process_persistent_includes
</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Update Project.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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']}/tminclude.rb"
TextMate::Includes.instance.process_persistent_includes_for_project
</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/W3C validation.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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 -wKU
<string>#!/usr/bin/env ruby18 -wKU
STDOUT.sync = true
page = STDIN.read
Expand Down
2 changes: 1 addition & 1 deletion DragCommands/Image Tag.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape"
require "shellwords"
require "cgi"
Expand Down
2 changes: 1 addition & 1 deletion DragCommands/Insert Flash Movie (Swf).tmDragCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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 "zlib"

Expand Down

0 comments on commit fc3957b

Please sign in to comment.