gn_list_resolver 3.0.1.5 → 3.0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +15 -0
- data/gn_list_resolver.gemspec +1 -1
- data/lib/gn_list_resolver/column_collector.rb +13 -6
- data/lib/gn_list_resolver/sci_name_collector.rb +1 -1
- data/lib/gn_list_resolver/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c5c38ceab98be7417378b8f86492ec26001707
|
4
|
+
data.tar.gz: fcec9bc1608b8c3e9f27fabd3f557a5aba2d0cbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7ea7bda9fd8948a78155ff310246a7aa3f9a181eaafc86dec2c7e91a37b9c257a0baf013be062a8f7b4b1edc3e562c6a4c361eb979c1f958ea2c1ca09eb6cc6
|
7
|
+
data.tar.gz: d41e042c3584e69e72174c83343d8888433d57923bb04f10bdc9d99c8909f2427abd3b2402364fd80dd9a3ec3f9723659249e74378bb07d6242936a1b010d83d
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# ``gn_list_resolver`` CHANGELOG
|
2
2
|
|
3
|
+
## 3.0.3.1
|
4
|
+
|
5
|
+
* @dimus - Rebase of `gn_crossmap` v3.0.3 to `gn_list_resolver`
|
6
|
+
|
7
|
+
## 3.0.3
|
8
|
+
|
9
|
+
* @dimus - Fixes #33 infraspecies rank is given for all 'unknown' infra-specific
|
10
|
+
ranks (when rank is not given)
|
11
|
+
|
12
|
+
* @dimus - Fixes #32 normalize capitalization of ranks according to Codes
|
13
|
+
|
14
|
+
## 3.0.2
|
15
|
+
|
16
|
+
* @dimus - Fixes #32 normalize capitalization of ranks according to Codes
|
17
|
+
|
3
18
|
## 3.0.1.5
|
4
19
|
|
5
20
|
* @dimus - handles errors on server side
|
data/gn_list_resolver.gemspec
CHANGED
@@ -8,7 +8,7 @@ require "gn_list_resolver/version"
|
|
8
8
|
# rubocop:disable Metrics/BlockLength:
|
9
9
|
|
10
10
|
Gem::Specification.new do |gem|
|
11
|
-
gem.required_ruby_version = ">= 2.
|
11
|
+
gem.required_ruby_version = ">= 2.4"
|
12
12
|
gem.name = "gn_list_resolver"
|
13
13
|
gem.version = GnListResolver::VERSION
|
14
14
|
gem.license = "MIT"
|
@@ -42,9 +42,10 @@ module GnListResolver
|
|
42
42
|
def assemble_name(name_rank)
|
43
43
|
name = @row[name_rank]
|
44
44
|
if SPECIES_RANKS[1..-1].include?(name_rank)
|
45
|
-
|
45
|
+
assemble_species_name(name, name_rank)
|
46
|
+
else
|
47
|
+
name.capitalize
|
46
48
|
end
|
47
|
-
name
|
48
49
|
end
|
49
50
|
|
50
51
|
def assemble_species_name(name, name_rank)
|
@@ -61,17 +62,23 @@ module GnListResolver
|
|
61
62
|
end
|
62
63
|
end
|
63
64
|
|
65
|
+
# rubocop:disable Metrics/MethodLength
|
66
|
+
|
64
67
|
def add_infrarank(name, rank)
|
65
68
|
case rank
|
69
|
+
when :species
|
70
|
+
name.downcase
|
66
71
|
when :subspecies
|
67
|
-
"subsp. #{name}"
|
72
|
+
"subsp. #{name.downcase}"
|
68
73
|
when :variety
|
69
|
-
"var. #{name}"
|
74
|
+
"var. #{name.downcase}"
|
70
75
|
when :form
|
71
|
-
"f. #{name}"
|
76
|
+
"f. #{name.downcase}"
|
72
77
|
else
|
73
|
-
name
|
78
|
+
name.capitalize
|
74
79
|
end
|
75
80
|
end
|
81
|
+
|
82
|
+
# rubocop:enable all
|
76
83
|
end
|
77
84
|
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.0.1
|
4
|
+
version: 3.0.3.1
|
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-
|
12
|
+
date: 2017-07-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: trollop
|
@@ -258,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
258
|
requirements:
|
259
259
|
- - ">="
|
260
260
|
- !ruby/object:Gem::Version
|
261
|
-
version: '2.
|
261
|
+
version: '2.4'
|
262
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
263
|
requirements:
|
264
264
|
- - ">="
|