diff 0.3.4.3 → 0.3.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/Rakefile +1 -1
- data/diff.gemspec +1 -1
- data/lib/emaildiff.rb +4 -13
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('diff','0.3.4.
|
5
|
+
Echoe.new('diff','0.3.4.4') do |s|
|
6
6
|
s.description = "Diff Algorithm Implementation"
|
7
7
|
s.url = "http://users.cybercity.dk/~dsl8950/ruby/diff.html"
|
8
8
|
s.author = "Wayne Walter"
|
data/diff.gemspec
CHANGED
data/lib/emaildiff.rb
CHANGED
@@ -4,6 +4,7 @@ class EmailDiff < Diff
|
|
4
4
|
GREATER = 62
|
5
5
|
|
6
6
|
attr_reader :orig_a, :orig_b
|
7
|
+
attr_reader :strip_a, :strip_b
|
7
8
|
|
8
9
|
def initialize(diffs_or_a, b = nil, isstring = nil)
|
9
10
|
if b.nil?
|
@@ -13,19 +14,9 @@ class EmailDiff < Diff
|
|
13
14
|
else
|
14
15
|
@diffs = []
|
15
16
|
@curdiffs = []
|
16
|
-
strip_a = striplines(diffs_or_a)
|
17
|
-
strip_b = striplines(b)
|
18
|
-
|
19
|
-
logger.info "---------------------------------------------------------"
|
20
|
-
logger.info "Previous stripped notes."
|
21
|
-
logger.info "---------------------------------------------------------"
|
22
|
-
logger.info strip_a
|
23
|
-
logger.info "---------------------------------------------------------"
|
24
|
-
logger.info "Current stripped notes."
|
25
|
-
logger.info "---------------------------------------------------------"
|
26
|
-
logger.info strip_b
|
27
|
-
end
|
28
|
-
makediff(strip_a, strip_b)
|
17
|
+
@strip_a = striplines(diffs_or_a)
|
18
|
+
@strip_b = striplines(b)
|
19
|
+
makediff(@strip_a, @strip_b)
|
29
20
|
@orig_a = diffs_or_a
|
30
21
|
@orig_b = b
|
31
22
|
@difftype = diffs_or_a.class
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|