[SVN] Ruby bundle: Toggle String command: Changes for Ruby 1.9
Charles Turner
vze26m98 at optonline.net
Thu Aug 28 18:41:32 UTC 2008
This diff file shows the patches I made to get the Ruby bundle
command file Toggle String to work with ruby 1.9.0 (2007-12-25 revision
14709) [i686-darwin9.4.0]
I made no attempt to write code that works for another Ruby version.
Zip of the diff attached below.
-Charles
--- /Users/cturner/Desktop/Toggle String : Symbol.tmDelta
+++ Toggle String:Symbol.plist
@@ -1,25 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>changed</key>
- <dict>
- <key>command</key>
- <string>#!/usr/bin/env ruby
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>bundleUUID</key>
+ <string>467B298F-6227-11D9-BFB1-000D93589AF6</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby
print case str = STDIN.read
# Handle standard quotes
- when /\A["'](\w+)["']\z/ then ":" + $1
- when /\A:(\w+)\z/ then '"' + $1 + '"'
+ when /\A["'](\w+)["']\z/: ":" + $1
+ when /\A:(\w+)\z/: '"' + $1 + '"'
# Default case
else str
end
</string>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ruby-Toggle-String.diff.zip
Type: application/zip
Size: 1270 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate-dev/attachments/20080828/c63f4e09/attachment.zip>
More information about the textmate-dev
mailing list