opener-language-identifier 4.2.1 → 4.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b0ad863a41e9866efa8852bf2c7580503e2ff7c
|
4
|
+
data.tar.gz: f83c2953ff093e72ac460f70a1a250c5350edf72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7559934086f7c1b0e669b8bdcd0706a8724ad007bb01563641da7a365563f9d8a879fce06061bdb20fe20ada8c7a327f9823c12a9b5f40b2654db458766cf330
|
7
|
+
data.tar.gz: cd97178ed250c759ced83a122cf3f4792f2efd3edd50738fa571b788f38d7ac4630f00296e7abc070136898cdc89a3d6d6ccc2797636785dfdd428df8f1aa984
|
Binary file
|
@@ -82,6 +82,12 @@ module Opener
|
|
82
82
|
#
|
83
83
|
def detect(input)
|
84
84
|
return new_detector(input).detect
|
85
|
+
|
86
|
+
# The core Java code raise an exception when it can't detect a language.
|
87
|
+
# Since this isn't actually something fatal we'll capture this and return
|
88
|
+
# "unknown" instead.
|
89
|
+
rescue com.cybozu.labs.langdetect.LangDetectException
|
90
|
+
return 'unknown'
|
85
91
|
end
|
86
92
|
|
87
93
|
##
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-language-identifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- development@olery.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opener-daemons
|