gn_list_resolver 3.2.0.2 → 3.2.0.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/result_processor.rb +3 -1
- data/lib/gn_list_resolver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f926c33ac22edb678ce33830dcbb67f024feb0fd
|
4
|
+
data.tar.gz: 746879e697fc1d50f9edd74c8f09358066be4aa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6583de51beb9a6ea7225a972facb6806dbeca4a5b5972f93c39c708ee0b0a8db9fe6095f83e538ba7b9a144d34e8ab0b568ef1c43a950c2c7d8823fc566d0533
|
7
|
+
data.tar.gz: da5fcd76e92e40a1546ca23a48c0be84b94f8c463d25e112118b2c75e266fe7c65761653ed8e6cd3cebeb9b2f6bdeb667524693bb1e556b75d9c99614599d2a5
|
data/CHANGELOG.md
CHANGED
@@ -97,6 +97,7 @@ module GnListResolver
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def matched_rank(result)
|
100
|
+
return nil unless result.classification.path_ranks
|
100
101
|
result.classification.path_ranks.split("|").last
|
101
102
|
end
|
102
103
|
|
@@ -105,7 +106,8 @@ module GnListResolver
|
|
105
106
|
def classification(result)
|
106
107
|
return nil if result.classification.path.to_s.strip == ""
|
107
108
|
path = result.classification.path.split("|")
|
108
|
-
|
109
|
+
ranks_data = result.classification.path_ranks
|
110
|
+
ranks = ranks_data ? ranks_data.split("|") : []
|
109
111
|
if path.size == ranks.size
|
110
112
|
path = path.zip(ranks).map { |e| "#{e[0]}(#{e[1]})" }
|
111
113
|
end
|
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.2.0.
|
4
|
+
version: 3.2.0.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-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: biodiversity
|