This diff file shows the patches I made to get the Ruby bundle support file run_script.rb to work with ruby 1.9.0 (2007-12-25 revision 14709) [i686-darwin9.4.0]
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!
This code might work on any version of Ruby courtesy of James Gray...
Zip of the diff attached below.
-Charles
--- /Users/cturner/Desktop/run_script.rb
+++ run_script.rb
@@ -62,7 +62,7 @@
htmlize(str).gsub(/[EF]+/, "<span style=\"color:
red\">\\&</span>") +
"<br style=\"display: none\"/>"
elsif is_test_script
- out = str.map do |line|
+ out = str.send(str.respond_to?(:lines) ? :lines : :to_s).map do
|line|
if line =~ /^(\s+)(\S.*?):(\d+)(?::in\s*`(.*?)')?/
indent, file, line, method = $1, $2, $3, $4
url, display_name = '', 'untitled document';
run_script.diff
Description: Binary data
_______________________________________________ textmate-dev mailing list [email protected] http://lists.macromates.com/listinfo/textmate-dev
