gn_list_resolver 3.0.3.2 → 3.0.3.3

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: 35a9019ca55c9e7ed980434a9a80b4b2ab6f64c8
4
- data.tar.gz: 7ba4f1ede2ead0a6cf00623b90cc391c73e530a5
3
+ metadata.gz: 824b45e3ccff2cd0c10206804c8f7b7b59165fab
4
+ data.tar.gz: 5748627b41997945249f2db90ac55cf615c4b81b
5
5
  SHA512:
6
- metadata.gz: 29bb8944a94088d2dc0fba9852eaf629d6cfa866668bf3a789a01ed8dffcd6fb817aa753c4094cc27c73c1bca9ec9f41af792861c8aefe52341c3ea47c285cf3
7
- data.tar.gz: e1b7db51c4d6cb9889de27674145ded55e3721d169309a8e6a7fe1371db1d4981002547a40255e1011a4a73bbdda4840d0540e6c7e40dfdbb6c41dc91c144bb8
6
+ metadata.gz: 6c92a2ac6619d84723ad4a60ea3fc8183bdaf354649661f8f3aa3dbe8eb5307482baf368c3b977f167dc5befa2df5ce3f6bbdf3d80494858c3c414d2acb4b4c2
7
+ data.tar.gz: 6fc3e912bc42d287159fa61112443f322c617edcf3e18ffbf924fd7cf81173d1e0962450813e0849afa0320e76742fdac14e4854f6c67b24bc17ec6a3e2d9b52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # ``gn_list_resolver`` CHANGELOG
2
2
 
3
+ ## 3.0.3.3
4
+
5
+ @alexander-myltsev - make compatible with API changes
6
+
3
7
  ## 3.0.3.2
4
8
 
5
9
  @alexander-myltsev, @dimus - add debug to show stats
@@ -14,8 +14,8 @@ module GnListResolver
14
14
  nameResolver(names: $names, dataSourceIds: $dataSourceIds) {
15
15
  total suppliedId suppliedInput
16
16
  results {
17
- name { name }
18
- canonicalName { name }
17
+ name { value }
18
+ canonicalName { value }
19
19
  synonym
20
20
  matchType { kind score editDistance }
21
21
  taxonId classification { pathRanks }
@@ -62,11 +62,11 @@ module GnListResolver
62
62
 
63
63
  def prepare_data(datum, result)
64
64
  [MATCH_TYPES[result.match_type.kind.to_sym],
65
- datum.supplied_input, result.name.name,
66
- result.canonical_name.name, @input[datum.supplied_id][:rank],
65
+ datum.supplied_input, result.name.value,
66
+ result.canonical_name.value, @input[datum.supplied_id][:rank],
67
67
  matched_rank(result),
68
68
  result.synonym,
69
- result.name.name, # TODO: should be `current_name_string` field
69
+ result.name.value, # TODO: should be `current_name_string` field
70
70
  result.match_type.edit_distance,
71
71
  result.score.value ? result.score.value.round(3) : nil,
72
72
  result.taxon_id]
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Namespace module for crossmapping checklists to GN sources
4
4
  module GnListResolver
5
- VERSION = "3.0.3.2"
5
+ VERSION = "3.0.3.3"
6
6
 
7
7
  def self.version
8
8
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gn_list_resolver
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3.2
4
+ version: 3.0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-07-29 00:00:00.000000000 Z
12
+ date: 2017-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop
@@ -245,7 +245,6 @@ files:
245
245
  - lib/gn_list_resolver/stats.rb
246
246
  - lib/gn_list_resolver/version.rb
247
247
  - lib/gn_list_resolver/writer.rb
248
- - t.csv
249
248
  homepage: https://github.com/GlobalNamesArchitecture/gn_list_resolver
250
249
  licenses:
251
250
  - MIT