gn_crossmap 3.1.0 → 3.1.1

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: 540a1ea4dd47918c8d98c6de7e38f0f6cc116798
4
- data.tar.gz: eca75610cb8974aced0dbed71a51c38c865c4a27
3
+ metadata.gz: 1e139da6675dabb5f5b1b7398df4df15710f82e5
4
+ data.tar.gz: 9702bc486be5af06429738be56f7c828632c9ecc
5
5
  SHA512:
6
- metadata.gz: 4f008fac59680bac5c8160f8a5e3f8caf22b801b67be088145b0ef1d8ed3657fa50f72d36960efac54410f11f2853cdd6354a1bd2bc7535d87e30d84558ad45e
7
- data.tar.gz: ba229e5d5f0d954e9884a7bb31ace418eeb3c5131e77ebc70df945706d66990a042a8e73865ca925da5c16eb4dfd1ca021aba82a9e2ebed35447ce159990ff00
6
+ metadata.gz: 2cec272dcc72f66f80b926d229c0cd6bc68d00d35e771ad1dd02aaf450b4c5ec09def11f2ddf0d56688ac34bccb2e9f17f7d1e4a732062a44cccf1f536ae1161
7
+ data.tar.gz: 6f3ad491f7d4275154955e76df628ee05388f895484ce69ba0bbf876ae4da0d4c0ea430cb14014293d83bf18b079ef5bf8ef99a312c0dcaedb432bb68aeaa22d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # ``gn_crossmap`` CHANGELOG
2
2
 
3
+ ## 3.1.1
4
+
5
+ * @dimus - Fixes #36 move edit distance close to canonical forms in output
6
+
3
7
  ## 3.1.0
4
8
 
5
9
  * @dimus - Fixes #34 add canonical form input
@@ -60,10 +60,10 @@ module GnCrossmap
60
60
  synonym = result[:current_name_string] ? "synonym" : nil
61
61
  res = [matched_type(result), datum[:supplied_name_string],
62
62
  result[:name_string], canonical(datum[:supplied_name_string]),
63
- result[:canonical_form], @input[datum[:supplied_id]][:rank],
64
- matched_rank(result), synonym,
63
+ result[:canonical_form], result[:edit_distance],
64
+ @input[datum[:supplied_id]][:rank], matched_rank(result), synonym,
65
65
  result[:current_name_string] || result[:name_string],
66
- result[:edit_distance], result[:score], result[:taxon_id]]
66
+ result[:score], result[:taxon_id]]
67
67
  res << classification(result) if @with_classification
68
68
  res
69
69
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Namespace module for crossmapping checklists to GN sources
4
4
  module GnCrossmap
5
- VERSION = "3.1.0"
5
+ VERSION = "3.1.1"
6
6
 
7
7
  def self.version
8
8
  VERSION
@@ -27,8 +27,8 @@ module GnCrossmap
27
27
 
28
28
  def output_fields(original_fields)
29
29
  original_fields + %i[matchedType inputName matchedName inputCanonicalForm
30
- matchedCanonicalForm inputRank matchedRank
31
- synonymStatus acceptedName matchedEditDistance
30
+ matchedCanonicalForm matchedEditDistance inputRank
31
+ matchedRank synonymStatus acceptedName
32
32
  matchedScore matchTaxonID]
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gn_crossmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin