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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83617a85524edc8d1a9615a12b955a4a01ce8a0a
4
- data.tar.gz: 480ac61418d818621282531ce74680bb99bdce19
3
+ metadata.gz: 7375b2e8bf804169e687385be6f37911f5325948
4
+ data.tar.gz: 8857ac536401ce1695b2f049824a57bb3fefb906
5
5
  SHA512:
6
- metadata.gz: 15373025eec71b3dfe679406f3a12e74aac836536c616d0d37196b6f253760ffb91124ffb4d0c86dc7c37d406a6ed038cd459137024ac52f1ca7b10491890096
7
- data.tar.gz: 38f1a2cd62d2271151b698529a17d1eeac07317baf0bca91523569e465c383e1d6644aca42d8ba0cc41ee6603a3c7e94c468c51c8fec32773a998b9f3328e2d4
6
+ metadata.gz: 478278c8c758da57a4148c870b8ce0d8dde902d87734661d7a9aa485ab66231107e462fa86e15d09b2aad868b85f81d7cac994400287e7d186845f98bc0fae7f
7
+ data.tar.gz: fcdf9be7016591b00ee036a2de7dc58a940a3a1bdefe440aa6fced1d049baa51a39bec1245d53de9f40eabe3c6fc298b14b7a24bd403a864f6ea8edeb1aa0f6a
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ 1.1.2 - release to create DOI
2
+
1
3
  1.1.1 - revert changes which changed API
2
4
 
3
5
  1.1.0 - create gem with bundle instead of jeweler, refactoring
@@ -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
@@ -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) #TODO put block 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
-
@@ -1,5 +1,5 @@
1
1
  module Taxamatch
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
 
4
4
  def self.version
5
5
  VERSION
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.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: 2015-04-21 00:00:00.000000000 Z
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