From 4e6ec99bd8d8b38bb696914e9653712aebbc2e8a Mon Sep 17 00:00:00 2001 From: Michael Sheets Date: Sat, 27 Jul 2013 03:11:54 -0500 Subject: [PATCH] Use version 1.8 of ruby for bundle items 10.7 and 10.8 only include ruby 1.8, so all bundle items have been written to work with that. Optionally supporting ruby 1.9 and 2.0 is problematic as these versions are not fully backwards compatible. #ignore --- Commands/Decode Base 64 Line : Selection.plist | 2 +- Commands/Decode Quoted Printables.tmCommand | 2 +- Commands/Encode Base 64 Line : Selection.plist | 2 +- Commands/Unwrap Paragraphs.plist | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Commands/Decode Base 64 Line : Selection.plist b/Commands/Decode Base 64 Line : Selection.plist index ad73965..e916e9c 100644 --- a/Commands/Decode Base 64 Line : Selection.plist +++ b/Commands/Decode Base 64 Line : Selection.plist @@ -5,7 +5,7 @@ beforeRunningCommand nop command - ruby -e 'print STDIN.read.unpack("m*")[0]' + /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -e 'print STDIN.read.unpack("m*")[0]' fallbackInput line input diff --git a/Commands/Decode Quoted Printables.tmCommand b/Commands/Decode Quoted Printables.tmCommand index 189d562..fc194c9 100644 --- a/Commands/Decode Quoted Printables.tmCommand +++ b/Commands/Decode Quoted Printables.tmCommand @@ -5,7 +5,7 @@ beforeRunningCommand nop command - #!/usr/bin/env ruby -wKU + #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU print STDIN.read.gsub(/=\n/, '').gsub(/=([0-9A-F]{2})/) { $1.to_i(16).chr } input diff --git a/Commands/Encode Base 64 Line : Selection.plist b/Commands/Encode Base 64 Line : Selection.plist index 163803f..829c85c 100644 --- a/Commands/Encode Base 64 Line : Selection.plist +++ b/Commands/Encode Base 64 Line : Selection.plist @@ -5,7 +5,7 @@ beforeRunningCommand nop command - ruby -e 'print [STDIN.read].pack("m*")' + /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -e 'print [STDIN.read].pack("m*")' fallbackInput line input diff --git a/Commands/Unwrap Paragraphs.plist b/Commands/Unwrap Paragraphs.plist index 480f9fc..db09321 100644 --- a/Commands/Unwrap Paragraphs.plist +++ b/Commands/Unwrap Paragraphs.plist @@ -5,7 +5,7 @@ beforeRunningCommand nop command - #!/usr/bin/env ruby + #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby def quote_level (line) /^[> ]*/.match(line.to_s)[0].count ">"