opener-tokenizer 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opener/tokenizer.rb +6 -2
- data/lib/opener/tokenizer/version.rb +1 -1
- data/opener-tokenizer.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5682da5a1e0514f1c96bdad314127b3ca3ff1db
|
4
|
+
data.tar.gz: f63f04ee390547cc68ee98082b798ff058dda3d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9bd85ac6eae7c5e91575c8fdd813b4d47408754fc9c301aa600eca0ef162ac59211be3ba74ae4400b1e3599e3bcf2aca97359ce9e8cf394b90e73fef96264e7
|
7
|
+
data.tar.gz: ceece2314d07a28dc6c878426292121a1f592db7d60a3c57c5794597fda8c3da08a0590c461d1fe601bdcb21ed3bb48aaea2262ecb84ef9d008804c392c0f393
|
data/lib/opener/tokenizer.rb
CHANGED
@@ -105,14 +105,18 @@ module Opener
|
|
105
105
|
# @return [Class]
|
106
106
|
#
|
107
107
|
def language_constant(language)
|
108
|
-
|
108
|
+
name = Core::LanguageCode.constant_name(language)
|
109
|
+
|
110
|
+
Tokenizers.const_get(name)
|
109
111
|
end
|
110
112
|
|
111
113
|
##
|
112
114
|
# @return [TrueClass|FalseClass]
|
113
115
|
#
|
114
116
|
def valid_language?(language)
|
115
|
-
|
117
|
+
name = Core::LanguageCode.constant_name(language)
|
118
|
+
|
119
|
+
return Tokenizers.const_defined?(name)
|
116
120
|
end
|
117
121
|
end # Tokenizer
|
118
122
|
end # Opener
|
data/opener-tokenizer.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |gem|
|
|
27
27
|
gem.add_dependency 'opener-tokenizer-base', '~> 1.0'
|
28
28
|
gem.add_dependency 'opener-webservice', '~> 2.1'
|
29
29
|
gem.add_dependency 'opener-daemons', '~> 2.1'
|
30
|
-
gem.add_dependency 'opener-core', '~> 2.
|
30
|
+
gem.add_dependency 'opener-core', '~> 2.4'
|
31
31
|
|
32
32
|
gem.add_dependency 'nokogiri'
|
33
33
|
gem.add_dependency 'slop', '~> 3.5'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-tokenizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.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:
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opener-tokenizer-base
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.4'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: nokogiri
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|