family-reunion 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{family-reunion}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dmitry Mozzherin", "David Shorthouse"]
12
- s.date = %q{2011-06-14}
12
+ s.date = %q{2011-06-15}
13
13
  s.description = %q{An algorithm to merge related nodes of two taxonomic hierarchies with synonym information}
14
14
  s.email = %q{dmozzherin@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -41,14 +41,17 @@ class FamilyReunion
41
41
  @secondary_valid_names_set = Set.new(@secondary_node.valid_names_hash.keys)
42
42
  @primary_synonyms_set = Set.new(@primary_node.synonyms_hash.keys)
43
43
  @secondary_synonyms_set = Set.new(@secondary_node.synonyms_hash.keys)
44
- @merges = {}
44
+ @merges = nil
45
45
  end
46
46
 
47
- def merge(with_fuzzy_matching = true)
48
- merge_exact_matches
49
- merge_fuzzy_matches if with_fuzzy_matching
50
- merge_no_matches
51
- FamilyReunion.logger_write(self.object_id, "Merging is complete")
47
+ def merge
48
+ unless @merges
49
+ @merges = {}
50
+ merge_exact_matches
51
+ merge_fuzzy_matches
52
+ merge_no_matches
53
+ FamilyReunion.logger_write(self.object_id, "Merging is complete")
54
+ end
52
55
  @merges
53
56
  end
54
57
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dmitry Mozzherin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-14 00:00:00 -04:00
18
+ date: 2011-06-15 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -233,7 +233,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - ">="
235
235
  - !ruby/object:Gem::Version
236
- hash: 4425929328463574267
236
+ hash: -1421116425701370926
237
237
  segments:
238
238
  - 0
239
239
  version: "0"