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 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.3') do |s|
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"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{diff}
5
- s.version = "0.3.4.3"
5
+ s.version = "0.3.4.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Wayne Walter"]
@@ -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
- if defined? logger
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
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 3
8
8
  - 4
9
- - 3
10
- version: 0.3.4.3
9
+ - 4
10
+ version: 0.3.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wayne Walter
metadata.gz.sig CHANGED
Binary file