opener-tokenizer 2.1.0 → 2.1.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
  SHA1:
3
- metadata.gz: a01694d8c3c4cabbeadcee2b2e478ed699a21555
4
- data.tar.gz: 3513b6bd6fe22ea36edc82eb2248204f24dedc8e
3
+ metadata.gz: ada1330f710b28f61b681f2d0ae9e81a13c7fdb3
4
+ data.tar.gz: 4d4a9535bd443320324d0c7b0915a7d6ba6f6e81
5
5
  SHA512:
6
- metadata.gz: 3928380d43ccd980b675562c0a2b19e3ae45ebe410d300314685678b9c2829dac0c66b5cc805fbc4a22ed6267563869fe7fca5bee11ddc78e17cea6cabcec5f6
7
- data.tar.gz: dc0a947729d4f97f49a919a240c8ab73b8122315add3aeecc65cd8ada3c0474e5faca2d4c0e84f69dce77ad74937f22e7b65932bae146c5592b129d17f5ed42f
6
+ metadata.gz: a81e30c025377291c49364268c6a0956128870af82dfaeb593f99e299004055851aae34b3930c22c2003e0c0e8a33e8484f44ca37489ea1915a27df308d7364b
7
+ data.tar.gz: 39489dc2ed36e66913782dc50df7bf3ad4c77c06a366132dcaccdb305e7a370890ab1c2555ced4e7ce7ea220d530613ce46176b05683a711a4103101074f2ccc
@@ -1,6 +1,8 @@
1
+ require 'open3'
2
+
3
+ require 'opener/core'
1
4
  require 'opener/tokenizers/base'
2
5
  require 'nokogiri'
3
- require 'open3'
4
6
  require 'slop'
5
7
 
6
8
  require_relative 'tokenizer/version'
@@ -65,7 +67,7 @@ module Opener
65
67
  end
66
68
 
67
69
  unless valid_language?(language)
68
- raise ArgumentError, "The specified language (#{language}) is invalid"
70
+ raise Core::UnsupportedLanguageError, language
69
71
  end
70
72
 
71
73
  kernel = language_constant(language).new(:args => options[:args])
@@ -82,8 +84,6 @@ module Opener
82
84
 
83
85
  alias tokenize run
84
86
 
85
- private
86
-
87
87
  ##
88
88
  # Returns an Array containing the language an input from a KAF document.
89
89
  #
@@ -98,6 +98,8 @@ module Opener
98
98
  return language, text
99
99
  end
100
100
 
101
+ private
102
+
101
103
  ##
102
104
  # @param [String] language
103
105
  # @return [Class]
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class Tokenizer
3
- VERSION = '2.1.0'
3
+ VERSION = '2.1.1'
4
4
  end
5
5
  end
@@ -27,13 +27,12 @@ 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.0'
30
+ gem.add_dependency 'opener-core', '~> 2.3'
31
31
 
32
32
  gem.add_dependency 'nokogiri'
33
33
  gem.add_dependency 'slop', '~> 3.5'
34
34
 
35
35
  gem.add_development_dependency 'rspec'
36
- gem.add_development_dependency 'cucumber'
37
36
  gem.add_development_dependency 'pry'
38
37
  gem.add_development_dependency 'rake'
39
38
  end
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.0
4
+ version: 2.1.1
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-11-26 00:00:00.000000000 Z
11
+ date: 2014-12-04 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.0'
61
+ version: '2.3'
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.0'
68
+ version: '2.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nokogiri
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: cucumber
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: pry
127
113
  requirement: !ruby/object:Gem::Requirement