lib/emaildiff.rb in diff-0.3.4.3 vs lib/emaildiff.rb in diff-0.3.4.4
- old
+ new
@@ -2,31 +2,22 @@
class EmailDiff < Diff
GREATER = 62
attr_reader :orig_a, :orig_b
+ attr_reader :strip_a, :strip_b
def initialize(diffs_or_a, b = nil, isstring = nil)
if b.nil?
@diffs = diffs_or_a
@isstring = isstring
super
else
@diffs = []
@curdiffs = []
- strip_a = striplines(diffs_or_a)
- strip_b = striplines(b)
- if defined? logger
- logger.info "---------------------------------------------------------"
- logger.info "Previous stripped notes."
- logger.info "---------------------------------------------------------"
- logger.info strip_a
- logger.info "---------------------------------------------------------"
- logger.info "Current stripped notes."
- logger.info "---------------------------------------------------------"
- logger.info strip_b
- end
- makediff(strip_a, strip_b)
+ @strip_a = striplines(diffs_or_a)
+ @strip_b = striplines(b)
+ makediff(@strip_a, @strip_b)
@orig_a = diffs_or_a
@orig_b = b
@difftype = diffs_or_a.class
end
end