String#each removed in ruby1.9.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2914 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9cd662f8dc
commit
4450e6f24b
|
@ -20,6 +20,7 @@ module Redmine
|
||||||
class UnifiedDiff < Array
|
class UnifiedDiff < Array
|
||||||
def initialize(diff, options={})
|
def initialize(diff, options={})
|
||||||
options.assert_valid_keys(:type, :max_lines)
|
options.assert_valid_keys(:type, :max_lines)
|
||||||
|
diff = diff.split("\n") if diff.is_a?(String)
|
||||||
diff_type = options[:type] || 'inline'
|
diff_type = options[:type] || 'inline'
|
||||||
|
|
||||||
lines = 0
|
lines = 0
|
||||||
|
|
Loading…
Reference in New Issue