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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ada1330f710b28f61b681f2d0ae9e81a13c7fdb3
4
- data.tar.gz: 4d4a9535bd443320324d0c7b0915a7d6ba6f6e81
3
+ metadata.gz: a5682da5a1e0514f1c96bdad314127b3ca3ff1db
4
+ data.tar.gz: f63f04ee390547cc68ee98082b798ff058dda3d4
5
5
  SHA512:
6
- metadata.gz: a81e30c025377291c49364268c6a0956128870af82dfaeb593f99e299004055851aae34b3930c22c2003e0c0e8a33e8484f44ca37489ea1915a27df308d7364b
7
- data.tar.gz: 39489dc2ed36e66913782dc50df7bf3ad4c77c06a366132dcaccdb305e7a370890ab1c2555ced4e7ce7ea220d530613ce46176b05683a711a4103101074f2ccc
6
+ metadata.gz: c9bd85ac6eae7c5e91575c8fdd813b4d47408754fc9c301aa600eca0ef162ac59211be3ba74ae4400b1e3599e3bcf2aca97359ce9e8cf394b90e73fef96264e7
7
+ data.tar.gz: ceece2314d07a28dc6c878426292121a1f592db7d60a3c57c5794597fda8c3da08a0590c461d1fe601bdcb21ed3bb48aaea2262ecb84ef9d008804c392c0f393
@@ -105,14 +105,18 @@ module Opener
105
105
  # @return [Class]
106
106
  #
107
107
  def language_constant(language)
108
- Opener::Tokenizers.const_get(language.upcase)
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
- return Opener::Tokenizers.const_defined?(language.upcase)
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
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class Tokenizer
3
- VERSION = '2.1.1'
3
+ VERSION = '2.1.2'
4
4
  end
5
5
  end
@@ -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.3'
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.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: 2014-12-04 00:00:00.000000000 Z
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.3'
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.3'
68
+ version: '2.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nokogiri
71
71
  requirement: !ruby/object:Gem::Requirement