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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/gn_list_resolver/graphql.rb +2 -2
- data/lib/gn_list_resolver/result_processor.rb +3 -3
- data/lib/gn_list_resolver/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 824b45e3ccff2cd0c10206804c8f7b7b59165fab
|
4
|
+
data.tar.gz: 5748627b41997945249f2db90ac55cf615c4b81b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c92a2ac6619d84723ad4a60ea3fc8183bdaf354649661f8f3aa3dbe8eb5307482baf368c3b977f167dc5befa2df5ce3f6bbdf3d80494858c3c414d2acb4b4c2
|
7
|
+
data.tar.gz: 6fc3e912bc42d287159fa61112443f322c617edcf3e18ffbf924fd7cf81173d1e0962450813e0849afa0320e76742fdac14e4854f6c67b24bc17ec6a3e2d9b52
|
data/CHANGELOG.md
CHANGED
@@ -14,8 +14,8 @@ module GnListResolver
|
|
14
14
|
nameResolver(names: $names, dataSourceIds: $dataSourceIds) {
|
15
15
|
total suppliedId suppliedInput
|
16
16
|
results {
|
17
|
-
name {
|
18
|
-
canonicalName {
|
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.
|
66
|
-
result.canonical_name.
|
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.
|
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]
|
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.
|
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-
|
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
|