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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bc21d13f3d2829fc80b07ab084a5069d7969883
4
- data.tar.gz: ae66ce593b1bc695766c1bff33b28e237ea9aa87
3
+ metadata.gz: f8c5c38ceab98be7417378b8f86492ec26001707
4
+ data.tar.gz: fcec9bc1608b8c3e9f27fabd3f557a5aba2d0cbb
5
5
  SHA512:
6
- metadata.gz: 8927048354be2aff1e48781d440bfbaff47afc501f71a5fb81e250368c7fe5074ee831274b48278cb4adb74bcafb6b1eda000a5412451a04f2b34ff11af66c6a
7
- data.tar.gz: e07bfd1acf6392a0763682f673000280e1338082f51e1decb8bd9e8c8718ee39f10ffba7f30904ed2c83279fcb19e5bd933bea2af817ac24900859620531958c
6
+ metadata.gz: d7ea7bda9fd8948a78155ff310246a7aa3f9a181eaafc86dec2c7e91a37b9c257a0baf013be062a8f7b4b1edc3e562c6a4c361eb979c1f958ea2c1ca09eb6cc6
7
+ data.tar.gz: d41e042c3584e69e72174c83343d8888433d57923bb04f10bdc9d99c8909f2427abd3b2402364fd80dd9a3ec3f9723659249e74378bb07d6242936a1b010d83d
data/.gitignore CHANGED
@@ -11,6 +11,7 @@
11
11
  output.csv
12
12
  .vim.custom
13
13
  t
14
+ t.*
14
15
  gn_list_resolver-*.gem
15
16
  .byebug_history
16
17
  .nvimlog
@@ -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
@@ -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.3"
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
- name = assemble_species_name(name, name_rank)
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
@@ -58,7 +58,7 @@ module GnListResolver
58
58
  when /^sub/
59
59
  "subspicies"
60
60
  else
61
- rank
61
+ "infraspecies"
62
62
  end
63
63
  end
64
64
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Namespace module for crossmapping checklists to GN sources
4
4
  module GnListResolver
5
- VERSION = "3.0.1.5"
5
+ VERSION = "3.0.3.1"
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.1.5
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-25 00:00:00.000000000 Z
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.3'
261
+ version: '2.4'
262
262
  required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  requirements:
264
264
  - - ">="