taxamatch_rb 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -0
- data/LICENSE.txt +1 -1
- data/lib/taxamatch_rb/base.rb +1 -5
- data/lib/taxamatch_rb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7375b2e8bf804169e687385be6f37911f5325948
|
4
|
+
data.tar.gz: 8857ac536401ce1695b2f049824a57bb3fefb906
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 478278c8c758da57a4148c870b8ce0d8dde902d87734661d7a9aa485ab66231107e462fa86e15d09b2aad868b85f81d7cac994400287e7d186845f98bc0fae7f
|
7
|
+
data.tar.gz: fcdf9be7016591b00ee036a2de7dc58a940a3a1bdefe440aa6fced1d049baa51a39bec1245d53de9f40eabe3c6fc298b14b7a24bd403a864f6ea8edeb1aa0f6a
|
data/CHANGELOG
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2015 Marine Biological Laboratory
|
3
|
+
Copyright (c) 2009-2015 Marine Biological Laboratory
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/lib/taxamatch_rb/base.rb
CHANGED
@@ -1,13 +1,10 @@
|
|
1
1
|
module Taxamatch
|
2
|
-
|
3
2
|
class Base
|
4
|
-
|
5
3
|
def initialize
|
6
4
|
@parser = Taxamatch::Atomizer.new
|
7
5
|
@dlm = DamerauLevenshtein
|
8
6
|
end
|
9
7
|
|
10
|
-
|
11
8
|
# takes two scientific names and returns true
|
12
9
|
# if names match and false if they don't
|
13
10
|
def taxamatch(str1, str2, return_boolean = true)
|
@@ -104,7 +101,7 @@ module Taxamatch
|
|
104
101
|
sp2[:phonetized] = Taxamatch::Phonetizer.normalize_ending sp2[:phonetized]
|
105
102
|
match = false
|
106
103
|
ed = @dlm.distance(sp1[:normalized],
|
107
|
-
sp2[:normalized], 1, 4)
|
104
|
+
sp2[:normalized], 1, 4)
|
108
105
|
return { 'edit_distance' => ed,
|
109
106
|
'phonetic_match' => false,
|
110
107
|
'match' => false } if ed/min_length.to_f > 0.3334
|
@@ -159,4 +156,3 @@ module Taxamatch
|
|
159
156
|
|
160
157
|
end
|
161
158
|
end
|
162
|
-
|
data/lib/taxamatch_rb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taxamatch_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Mozzherin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: biodiversity
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.4.5
|
188
|
+
rubygems_version: 2.4.5.1
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Fuzzy matching of scientific names
|