Changeset 53700 in webkit


Ignore:
Timestamp:
Jan 22, 2010 6:13:27 AM (14 years ago)
Author:
hamaji@chromium.org
Message:

2010-01-22 Janusz Lewandowski <lew21@xtreeme.org>

Reviewed by Maciej Stachowiak.

run-webkit-tests fails on Ruby 1.9
https://bugs.webkit.org/show_bug.cgi?id=33554
inject does not work with strings any more, so BugsSite/PrettyPatch/PrettyPatch.rb prints lots of errors.

  • PrettyPatch/PrettyPatch.rb:
Location:
trunk/BugsSite
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BugsSite/ChangeLog

    r53544 r53700  
     12010-01-22  Janusz Lewandowski  <lew21@xtreeme.org>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        run-webkit-tests fails on Ruby 1.9
     6        https://bugs.webkit.org/show_bug.cgi?id=33554
     7        inject does not work with strings any more, so BugsSite/PrettyPatch/PrettyPatch.rb prints lots of errors.
     8
     9        * PrettyPatch/PrettyPatch.rb:
     10
    1112010-01-20  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
    212
  • trunk/BugsSite/PrettyPatch/PrettyPatch.rb

    r51826 r53700  
    295295        def self.parse(string)
    296296            haveSeenDiffHeader = false
    297             linesForDiffs = string.inject([]) do |diffChunks, line|
     297            linesForDiffs = []
     298            string.each_line do |line|
    298299                if (PrettyPatch.diff_header?(line))
    299                     diffChunks << []
     300                    linesForDiffs << []
    300301                    haveSeenDiffHeader = true
    301302                elsif (!haveSeenDiffHeader && line =~ /^--- /)
    302                     diffChunks << []
     303                    linesForDiffs << []
    303304                    haveSeenDiffHeader = false
    304305                end
    305                 diffChunks.last << line unless diffChunks.last.nil?
    306                 diffChunks
     306                linesForDiffs.last << line unless linesForDiffs.last.nil?
    307307            end
    308308
Note: See TracChangeset for help on using the changeset viewer.