daff 1.1.13 → 1.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -550,7 +550,7 @@ module Coopy
550
550
  class << self
551
551
  attr_accessor :version
552
552
  end
553
- @version = "1.1.13"
553
+ @version = "1.1.14"
554
554
 
555
555
  def Coopy.compare_tables(local,remote,flags = nil)
556
556
  ct = ::Coopy::CompareTable.new
@@ -45,7 +45,12 @@ module Coopy
45
45
  item = ::Coopy::IndexItem.new
46
46
  @items[key] = item
47
47
  end
48
- ct = item.add(i)
48
+ ct = nil
49
+ begin
50
+ item.lst = Array.new if item.lst == nil
51
+ item.lst.push(i)
52
+ ct = item.lst.length
53
+ end
49
54
  @top_freq = ct if ct > @top_freq
50
55
  end
51
56
  end
@@ -15,6 +15,14 @@ module Coopy
15
15
  return @lst.length
16
16
  end
17
17
 
18
+ def length
19
+ return @lst.length
20
+ end
21
+
22
+ def value
23
+ return @lst[0]
24
+ end
25
+
18
26
  end
19
27
 
20
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daff
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.13
4
+ version: 1.1.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-10-14 00:00:00.000000000 Z
13
+ date: 2014-10-15 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Diff and patch tables
16
16
  email: