gn_list_resolver 3.0.3.1 → 3.0.3.2
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/exe/list_resolver +2 -0
- data/lib/gn_list_resolver.rb +2 -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: 35a9019ca55c9e7ed980434a9a80b4b2ab6f64c8
|
4
|
+
data.tar.gz: 7ba4f1ede2ead0a6cf00623b90cc391c73e530a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29bb8944a94088d2dc0fba9852eaf629d6cfa866668bf3a789a01ed8dffcd6fb817aa753c4094cc27c73c1bca9ec9f41af792861c8aefe52341c3ea47c285cf3
|
7
|
+
data.tar.gz: e1b7db51c4d6cb9889de27674145ded55e3721d169309a8e6a7fe1371db1d4981002547a40255e1011a4a73bbdda4840d0540e6c7e40dfdbb6c41dc91c144bb8
|
data/CHANGELOG.md
CHANGED
data/exe/list_resolver
CHANGED
@@ -20,6 +20,8 @@ opts = Trollop.options do
|
|
20
20
|
default: CATALOGUE_OF_LIFE)
|
21
21
|
opt(:skip_original, "If given, only 'taxonID' is shown " \
|
22
22
|
"from the original input", type: :boolean)
|
23
|
+
opt(:debug, "If given, prints statistics of name resolution to STDOUT",
|
24
|
+
short: "D", type: :boolean)
|
23
25
|
end
|
24
26
|
|
25
27
|
Trollop.die :input, "must be set" if opts[:input].nil?
|
data/lib/gn_list_resolver.rb
CHANGED
@@ -6,6 +6,7 @@ require "rest_client"
|
|
6
6
|
require "tempfile"
|
7
7
|
require "logger"
|
8
8
|
require "logger/colors"
|
9
|
+
require "pp"
|
9
10
|
require "biodiversity"
|
10
11
|
require "gn_uuid"
|
11
12
|
require "graphql/client"
|
@@ -38,7 +39,7 @@ module GnListResolver
|
|
38
39
|
writer = create_writer(reader, output_io, opts)
|
39
40
|
resolver = create_resolver(writer, opts)
|
40
41
|
block_given? ? resolver.resolve(data, &Proc.new) : resolver.resolve(data)
|
41
|
-
|
42
|
+
logger.warn(resolver.stats.stats.pretty_inspect) if opts[:debug]
|
42
43
|
resolver.stats
|
43
44
|
end
|
44
45
|
|
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.2
|
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-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: trollop
|