gnfinder 0.9.0 → 0.9.0.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
  SHA256:
3
- metadata.gz: dffcaa8904b1b9a47761b66aff325c86615aedec1600b9abe13194035c4aa061
4
- data.tar.gz: f33a382799901181d3092f2c05585318accd1e5baebb6bb053d6ac7bc015e7d6
3
+ metadata.gz: b96851cdebc9043949a0c68e3c7e2819d85a625726757288ab3c7e1309908fac
4
+ data.tar.gz: 2efdd6a4b7bfbb1da91227176e0629997bcda15c64ecf0c4e709ae5d6bda2538
5
5
  SHA512:
6
- metadata.gz: 7a0358fac8b9f05532be3f5434c07a8fd5bd242d35545f45faa4798d8cc0eb540b21a7e11c292c624cbc6608c633106812fcc1ab219bcd2ce9a72b5e9d17fa66
7
- data.tar.gz: 5dfc5b032530c7fea01672bdf3a0a5ce595832110b665a680ca575f1916cd17e84b33991da9462f6c35927513cf6cd71e7df3dd87bd65027480129489e793f1a
6
+ metadata.gz: 569e08ae23fdd91769d2183f193e8b5c40d4a832d0556d6333b5717f37d4bc9e2be4d9cd9386a958291059313273b24574122c628ecc444fba242a1a806e1166
7
+ data.tar.gz: 60d51aa23f0a0f6b03cb7dfb48b974f7e528b3b2f3953b69501014f0e02153ed28a76523baf341ad1cb353b9746802da4957932fd93a0590480c7a87cbef4acc
data/.gitignore CHANGED
@@ -10,6 +10,7 @@
10
10
  /test/tmp/
11
11
  /test/version_tmp/
12
12
  /tmp/
13
+ .vscode
13
14
 
14
15
  # Used by dotenv library to load environment variables.
15
16
  # .env
@@ -25,7 +25,9 @@ module Gnfinder
25
25
 
26
26
  # rubocop:disable all
27
27
  def find_names(text, opts = {})
28
- raise 'Text cannot be empty' if text.to_s.strip == ''
28
+ if text.to_s.strip == ''
29
+ return Protob::Output.new
30
+ end
29
31
 
30
32
  params = { text: text }
31
33
  params[:no_bayes] = true if opts[:no_bayes]
@@ -3,7 +3,7 @@
3
3
  # Gnfinder is a namespace module for gndinfer gem.
4
4
  module Gnfinder
5
5
  # Version corresponds to the minimal supported version of Go gnfinder
6
- VERSION = '0.9.0'
6
+ VERSION = '0.9.0.1'
7
7
 
8
8
  def self.version
9
9
  VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnfinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-15 00:00:00.000000000 Z
11
+ date: 2019-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler