Reviewed by Adam Roben.
REGRESSION (r85657): webkitpy.common.prettypatch_unittest.PrettyPatchTest.test_pretty_diff_encodings failing on Leopard
https://bugs.webkit.org/show_bug.cgi?id=60164
Use Array#length to get the number of elements in an array. Array#count
was added in Ruby 1.8.7, but Leopard have Ruby 1.8.6.
* PrettyPatch/PrettyPatch.rb:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@85750
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-05-04 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
+
+ Reviewed by Adam Roben.
+
+ REGRESSION (r85657): webkitpy.common.prettypatch_unittest.PrettyPatchTest.test_pretty_diff_encodings failing on Leopard
+ https://bugs.webkit.org/show_bug.cgi?id=60164
+
+ Use Array#length to get the number of elements in an array. Array#count
+ was added in Ruby 1.8.7, but Leopard have Ruby 1.8.6.
+
+ * PrettyPatch/PrettyPatch.rb:
+
2011-05-03 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Reviewed by Adam Roben.
break
end
- $last_prettify_file_count = fileDiffs.count
+ $last_prettify_file_count = fileDiffs.length
str += fileDiffs.collect{ |diff| diff.to_html }.join
end