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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8c5c38ceab98be7417378b8f86492ec26001707
4
- data.tar.gz: fcec9bc1608b8c3e9f27fabd3f557a5aba2d0cbb
3
+ metadata.gz: 35a9019ca55c9e7ed980434a9a80b4b2ab6f64c8
4
+ data.tar.gz: 7ba4f1ede2ead0a6cf00623b90cc391c73e530a5
5
5
  SHA512:
6
- metadata.gz: d7ea7bda9fd8948a78155ff310246a7aa3f9a181eaafc86dec2c7e91a37b9c257a0baf013be062a8f7b4b1edc3e562c6a4c361eb979c1f958ea2c1ca09eb6cc6
7
- data.tar.gz: d41e042c3584e69e72174c83343d8888433d57923bb04f10bdc9d99c8909f2427abd3b2402364fd80dd9a3ec3f9723659249e74378bb07d6242936a1b010d83d
6
+ metadata.gz: 29bb8944a94088d2dc0fba9852eaf629d6cfa866668bf3a789a01ed8dffcd6fb817aa753c4094cc27c73c1bca9ec9f41af792861c8aefe52341c3ea47c285cf3
7
+ data.tar.gz: e1b7db51c4d6cb9889de27674145ded55e3721d169309a8e6a7fe1371db1d4981002547a40255e1011a4a73bbdda4840d0540e6c7e40dfdbb6c41dc91c144bb8
@@ -1,5 +1,9 @@
1
1
  # ``gn_list_resolver`` CHANGELOG
2
2
 
3
+ ## 3.0.3.2
4
+
5
+ @alexander-myltsev, @dimus - add debug to show stats
6
+
3
7
  ## 3.0.3.1
4
8
 
5
9
  * @dimus - Rebase of `gn_crossmap` v3.0.3 to `gn_list_resolver`
@@ -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?
@@ -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
- puts resolver.stats.stats if opts[:debug]
42
+ logger.warn(resolver.stats.stats.pretty_inspect) if opts[:debug]
42
43
  resolver.stats
43
44
  end
44
45
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Namespace module for crossmapping checklists to GN sources
4
4
  module GnListResolver
5
- VERSION = "3.0.3.1"
5
+ VERSION = "3.0.3.2"
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.3.1
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-26 00:00:00.000000000 Z
12
+ date: 2017-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop