opener-opinion-detector 1.1.8 → 1.2.0

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: 704d9182e5376a1bbd5232df0d529815c407b6a3
4
- data.tar.gz: d44058d84e7d3263624d3e02926680ddc919b5cb
3
+ metadata.gz: e970449786cd7a7d5c31976bb12fbdcb784ee724
4
+ data.tar.gz: c4ef6b925a24d5385f5552f0c485998060c7bbcc
5
5
  SHA512:
6
- metadata.gz: 5f2ff1ac33f87f94c0f19230fcac6bbd0b21d5249dc0da184d1415444334cfe7d9e5ff7c462b8adcf5ff9204ea0a980479ec8dcf96aa7ebe05360cd9add44c8c
7
- data.tar.gz: 08cb1feafc21d2520f3edc7939b1a25c498aee44d4250d82b5fbf82ca747dc1a6b1261e5a4830251aa60a2080d2e3daea23f6f8ce01db14d709f65de3a1e2d8d
6
+ metadata.gz: 624550431e66fa3eed2286b53371ac883510f7f473aba7671e129f5502303ecf92af6f43fa876d453da621b5eb6dbc6bdb2f309ee0d2542f4918a796989961b6
7
+ data.tar.gz: b5c059110b0940e0a917a118f688778d15637c22d5bed944098cfef11ca0da60765781b51e05c084d41ef4b7511bb51099628a88710616bfc75ba8c0754d8ad0
@@ -42,7 +42,7 @@ module Opener
42
42
  # STDERR and an object containing process information.
43
43
  #
44
44
  # @param [String] input
45
- # @return [Array]
45
+ # @return [String]
46
46
  #
47
47
  def run(input)
48
48
  begin
@@ -53,10 +53,8 @@ module Opener
53
53
  end
54
54
 
55
55
  kernel = language_constant(language).new(:args => options[:args])
56
- stdout, stderr, process = kernel.run(input)
57
- raise stderr unless process.success?
58
- return stdout
59
-
56
+
57
+ return kernel.run(input)
60
58
  rescue Exception => error
61
59
  return Opener::Core::ErrorLayer.new(input, error.message, self.class).add
62
60
  end
@@ -61,11 +61,9 @@ Examples:
61
61
  def run(input)
62
62
  option_parser.parse!(options[:args])
63
63
 
64
- tagger = OpinionDetector.new(options)
64
+ detector = OpinionDetector.new(options)
65
65
 
66
- stdout, stderr, process = tagger.run(input)
67
-
68
- puts stdout
66
+ puts detector.run(input)
69
67
  end
70
68
 
71
69
  private
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class OpinionDetector
3
- VERSION = "1.1.8"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,189 +1,189 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-opinion-detector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-19 00:00:00.000000000 Z
11
+ date: 2014-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opener-opinion-detector-base
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
15
  requirement: !ruby/object:Gem::Requirement
21
16
  requirements:
22
- - - '>='
17
+ - - ">="
23
18
  - !ruby/object:Gem::Version
24
19
  version: '0'
25
- prerelease: false
26
20
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: nokogiri
21
+ prerelease: false
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - '>='
24
+ - - ">="
32
25
  - !ruby/object:Gem::Version
33
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
34
29
  requirement: !ruby/object:Gem::Requirement
35
30
  requirements:
36
- - - '>='
31
+ - - ">="
37
32
  - !ruby/object:Gem::Version
38
33
  version: '0'
39
- prerelease: false
40
34
  type: :runtime
41
- - !ruby/object:Gem::Dependency
42
- name: sinatra
35
+ prerelease: false
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
- - - ~>
38
+ - - ">="
46
39
  - !ruby/object:Gem::Version
47
- version: 1.4.2
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sinatra
48
43
  requirement: !ruby/object:Gem::Requirement
49
44
  requirements:
50
- - - ~>
45
+ - - "~>"
51
46
  - !ruby/object:Gem::Version
52
47
  version: 1.4.2
53
- prerelease: false
54
48
  type: :runtime
55
- - !ruby/object:Gem::Dependency
56
- name: httpclient
49
+ prerelease: false
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - '>='
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
54
+ version: 1.4.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: httpclient
62
57
  requirement: !ruby/object:Gem::Requirement
63
58
  requirements:
64
- - - '>='
59
+ - - ">="
65
60
  - !ruby/object:Gem::Version
66
61
  version: '0'
67
- prerelease: false
68
62
  type: :runtime
69
- - !ruby/object:Gem::Dependency
70
- name: puma
63
+ prerelease: false
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
- - - '>='
66
+ - - ">="
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: puma
76
71
  requirement: !ruby/object:Gem::Requirement
77
72
  requirements:
78
- - - '>='
73
+ - - ">="
79
74
  - !ruby/object:Gem::Version
80
75
  version: '0'
81
- prerelease: false
82
76
  type: :runtime
83
- - !ruby/object:Gem::Dependency
84
- name: opener-daemons
77
+ prerelease: false
85
78
  version_requirements: !ruby/object:Gem::Requirement
86
79
  requirements:
87
- - - '>='
80
+ - - ">="
88
81
  - !ruby/object:Gem::Version
89
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: opener-daemons
90
85
  requirement: !ruby/object:Gem::Requirement
91
86
  requirements:
92
- - - '>='
87
+ - - ">="
93
88
  - !ruby/object:Gem::Version
94
89
  version: '0'
95
- prerelease: false
96
90
  type: :runtime
97
- - !ruby/object:Gem::Dependency
98
- name: opener-core
91
+ prerelease: false
99
92
  version_requirements: !ruby/object:Gem::Requirement
100
93
  requirements:
101
- - - ~>
94
+ - - ">="
102
95
  - !ruby/object:Gem::Version
103
- version: 1.0.2
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: opener-core
104
99
  requirement: !ruby/object:Gem::Requirement
105
100
  requirements:
106
- - - ~>
101
+ - - "~>"
107
102
  - !ruby/object:Gem::Version
108
103
  version: 1.0.2
109
- prerelease: false
110
104
  type: :runtime
111
- - !ruby/object:Gem::Dependency
112
- name: opener-webservice
105
+ prerelease: false
113
106
  version_requirements: !ruby/object:Gem::Requirement
114
107
  requirements:
115
- - - '>='
108
+ - - "~>"
116
109
  - !ruby/object:Gem::Version
117
- version: '0'
110
+ version: 1.0.2
111
+ - !ruby/object:Gem::Dependency
112
+ name: opener-webservice
118
113
  requirement: !ruby/object:Gem::Requirement
119
114
  requirements:
120
- - - '>='
115
+ - - ">="
121
116
  - !ruby/object:Gem::Version
122
117
  version: '0'
123
- prerelease: false
124
118
  type: :runtime
125
- - !ruby/object:Gem::Dependency
126
- name: rspec
119
+ prerelease: false
127
120
  version_requirements: !ruby/object:Gem::Requirement
128
121
  requirements:
129
- - - '>='
122
+ - - ">="
130
123
  - !ruby/object:Gem::Version
131
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec
132
127
  requirement: !ruby/object:Gem::Requirement
133
128
  requirements:
134
- - - '>='
129
+ - - ">="
135
130
  - !ruby/object:Gem::Version
136
131
  version: '0'
137
- prerelease: false
138
132
  type: :development
139
- - !ruby/object:Gem::Dependency
140
- name: cucumber
133
+ prerelease: false
141
134
  version_requirements: !ruby/object:Gem::Requirement
142
135
  requirements:
143
- - - '>='
136
+ - - ">="
144
137
  - !ruby/object:Gem::Version
145
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: cucumber
146
141
  requirement: !ruby/object:Gem::Requirement
147
142
  requirements:
148
- - - '>='
143
+ - - ">="
149
144
  - !ruby/object:Gem::Version
150
145
  version: '0'
151
- prerelease: false
152
146
  type: :development
153
- - !ruby/object:Gem::Dependency
154
- name: pry
147
+ prerelease: false
155
148
  version_requirements: !ruby/object:Gem::Requirement
156
149
  requirements:
157
- - - '>='
150
+ - - ">="
158
151
  - !ruby/object:Gem::Version
159
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry
160
155
  requirement: !ruby/object:Gem::Requirement
161
156
  requirements:
162
- - - '>='
157
+ - - ">="
163
158
  - !ruby/object:Gem::Version
164
159
  version: '0'
165
- prerelease: false
166
160
  type: :development
167
- - !ruby/object:Gem::Dependency
168
- name: rake
161
+ prerelease: false
169
162
  version_requirements: !ruby/object:Gem::Requirement
170
163
  requirements:
171
- - - '>='
164
+ - - ">="
172
165
  - !ruby/object:Gem::Version
173
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rake
174
169
  requirement: !ruby/object:Gem::Requirement
175
170
  requirements:
176
- - - '>='
171
+ - - ">="
177
172
  - !ruby/object:Gem::Version
178
173
  version: '0'
179
- prerelease: false
180
174
  type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
181
  description: Gem that wraps up the different existing opinion detectors
182
- email:
182
+ email:
183
183
  executables:
184
+ - opinion-detector-server
184
185
  - opinion-detector
185
186
  - opinion-detector-daemon
186
- - opinion-detector-server
187
187
  extensions: []
188
188
  extra_rdoc_files: []
189
189
  files:
@@ -203,24 +203,25 @@ files:
203
203
  homepage: http://opener-project.github.com/
204
204
  licenses: []
205
205
  metadata: {}
206
- post_install_message:
206
+ post_install_message:
207
207
  rdoc_options: []
208
208
  require_paths:
209
209
  - lib
210
210
  required_ruby_version: !ruby/object:Gem::Requirement
211
211
  requirements:
212
- - - '>='
212
+ - - ">="
213
213
  - !ruby/object:Gem::Version
214
214
  version: 1.9.2
215
215
  required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  requirements:
217
- - - '>='
217
+ - - ">="
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0'
220
220
  requirements: []
221
- rubyforge_project:
221
+ rubyforge_project:
222
222
  rubygems_version: 2.2.2
223
- signing_key:
223
+ signing_key:
224
224
  specification_version: 4
225
225
  summary: Gem that wraps up the different existing opinion detectors
226
226
  test_files: []
227
+ has_rdoc: yard