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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68d71ae2a35ea80f943a1603cf192ac7191273f9
4
- data.tar.gz: c98e24a0c1f1d5822594a7758bf060ef49b5faa6
3
+ metadata.gz: f926c33ac22edb678ce33830dcbb67f024feb0fd
4
+ data.tar.gz: 746879e697fc1d50f9edd74c8f09358066be4aa0
5
5
  SHA512:
6
- metadata.gz: 92affc4e7b1a595628599b2649b445d3feefbd571cd94f2d6e5836ab735bc84f89ea01942577d7c0c466e62faf00d76cd344d2e0bc3f7adc179215b006b16b44
7
- data.tar.gz: 210ed739493c5d011ed74b7480bf5cf616ce14bdd0cca6b66d5b1a3915211bda0081ed785c84b9c443c129947b917756530ce0674e2eb4c8a13de5b52a365b48
6
+ metadata.gz: 6583de51beb9a6ea7225a972facb6806dbeca4a5b5972f93c39c708ee0b0a8db9fe6095f83e538ba7b9a144d34e8ab0b568ef1c43a950c2c7d8823fc566d0533
7
+ data.tar.gz: da5fcd76e92e40a1546ca23a48c0be84b94f8c463d25e112118b2c75e266fe7c65761653ed8e6cd3cebeb9b2f6bdeb667524693bb1e556b75d9c99614599d2a5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 3.2.0.2
4
4
 
5
+ @dimus - bring tests in accordance to changes in gnindex database
6
+
7
+ ## 3.2.0.2
8
+
5
9
  @alexander-myltsev - bring tests in accordance to changes in gnindex API
6
10
 
7
11
  ## 3.2.0.1
@@ -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
- ranks = result.classification.path_ranks.split("|")
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Namespace module for crossmapping checklists to GN sources
4
4
  module GnListResolver
5
- VERSION = "3.2.0.2"
5
+ VERSION = "3.2.0.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.2.0.2
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-08-28 00:00:00.000000000 Z
12
+ date: 2017-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: biodiversity