Skip to content

Commit

Permalink
Use version 1.8 of ruby for bundle items
Browse files Browse the repository at this point in the history
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
  • Loading branch information
infininight committed Jul 27, 2013
1 parent 002541a commit 4e6ec99
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Commands/Decode Base 64 Line : Selection.plist
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>ruby -e 'print STDIN.read.unpack("m*")[0]'</string>
<string>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -e 'print STDIN.read.unpack("m*")[0]'</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Decode Quoted Printables.tmCommand
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby -wKU
<string>#!/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 }
</string>
<key>input</key>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Encode Base 64 Line : Selection.plist
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>ruby -e 'print [STDIN.read].pack("m*")'</string>
<string>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -e 'print [STDIN.read].pack("m*")'</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Unwrap Paragraphs.plist
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
<string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
def quote_level (line)
/^[&gt; ]*/.match(line.to_s)[0].count "&gt;"
Expand Down

0 comments on commit 4e6ec99

Please sign in to comment.