[SVN] linked_ri.rb: Changes for Ruby 1.9

Charles Turner vze26m98 at optonline.net
Thu Aug 28 18:35:15 UTC 2008

This diff file shows the patches I made to get the Ruby bundle support 
file linked_ri.rb to work with ruby 1.9.0 (2007-12-25 revision 14709) 

My apologies that this presentation is so crude. The previous diff were 
"backwards" from the point of readability, and now I've compounded the 
issue by switching the "left and right handedness" of the files. Sorry!

No attempt to make this code work on previous versions of Ruby.
Zip of the diff attached below.


--- /Users/cturner/Desktop/linked_ri.rb
+++ linked_ri.rb
@@ -106,7 +106,7 @@
   elsif documentation =~ 
     nesting   = $1
     constants = nesting.split("::")
-    linked    = constants.enum_with_index.map do |const, i|
+    linked    = constants.each_with_index.map do |const, i|
     documentation.sub!(nesting, linked.join("::"))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linked_ri.diff.zip
Type: application/zip
Size: 451 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate-dev/attachments/20080828/04908a62/attachment.zip>

More information about the textmate-dev mailing list