opener-scorer 3.0.3 → 3.0.4

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: 1dcd08283a4bd6b1d6e99e8925bb738820f529cf
4
- data.tar.gz: 4212ffb0e1a53ff57452745d858f304b8d218f85
3
+ metadata.gz: 93ec004f5390f49797564dca72bccf14cec70c72
4
+ data.tar.gz: e31ff479b0c16ec07cd602f3f5dbb8f0bd8cc4ea
5
5
  SHA512:
6
- metadata.gz: 466ce5a7591c03b4d3a15e2c06992ff8df5b07925485aab7797864fd1b0a3e116cdd0c2438bb5ce44bdeb051239adee5a831f504050b0eb8ba88537d129abc53
7
- data.tar.gz: 9c5cf6c073ccebe565c0b379bcc53a8cfb62b60a8b61a379861abd580fbb95646d36232c477067012b17f8685c6044f2ea5ef70b3c94d310f0a6dd9d68f1fa07
6
+ metadata.gz: 1dd3826f7b475af95d004c26e7fb069e3343b1ea5e5cda861af24a429b9a47e3aac9598efc9b868a787ae4ada2f0d8a04ffe55923d4dc6bda45cf2e79ec9d37f
7
+ data.tar.gz: 7ed304e100de6e1b53281a91c347b3b88097b788f9fcaa60ade81b6c0c644e3d5b4d7173fbbec18c338bdb97d2e9960eb92bb7c122d2e160803665939933ebda
@@ -102,8 +102,7 @@ module Opener
102
102
 
103
103
  if op_target
104
104
  op_target.css('span target').each do |target|
105
- require 'pry'
106
- polarities_hash[target.attr('id')] ||= {} rescue binding.pry
105
+ polarities_hash[target.attr('id')] ||= {}
107
106
  polarities_hash[target.attr('id')][polarity] = strength
108
107
  end
109
108
  end
@@ -180,7 +179,7 @@ module Opener
180
179
 
181
180
  positive = positive_polarities.compact.inject(0, :+)
182
181
  negative = negative_polarities.compact.inject(0, :+)
183
-
182
+
184
183
  return if (positive + negative) == 0
185
184
 
186
185
  score = ((positive - negative).to_f) / (positive + negative)
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class Scorer
3
- VERSION = '3.0.3'
3
+ VERSION = '3.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-scorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
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-22 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -181,28 +181,28 @@ dependencies:
181
181
  description: Component for calculating scores of KAF documents
182
182
  email:
183
183
  executables:
184
- - scorer
185
- - scorer-daemon
186
184
  - scorer-server
185
+ - scorer-daemon
186
+ - scorer
187
187
  extensions: []
188
188
  extra_rdoc_files: []
189
189
  files:
190
190
  - config/database.rb
191
191
  - lib/opener/scorer.rb
192
- - lib/opener/scorer/cli.rb
192
+ - lib/opener/scorer/version.rb
193
193
  - lib/opener/scorer/output.rb
194
- - lib/opener/scorer/output_processor.rb
195
194
  - lib/opener/scorer/server.rb
196
- - lib/opener/scorer/version.rb
195
+ - lib/opener/scorer/cli.rb
196
+ - lib/opener/scorer/output_processor.rb
197
197
  - lib/opener/scorer/views/index.erb
198
198
  - config.ru
199
199
  - opener-scorer.gemspec
200
200
  - README.md
201
201
  - LICENSE.txt
202
202
  - exec/scorer.rb
203
- - bin/scorer
204
- - bin/scorer-daemon
205
203
  - bin/scorer-server
204
+ - bin/scorer-daemon
205
+ - bin/scorer
206
206
  homepage: http://opener-project.github.com/
207
207
  licenses:
208
208
  - Apache 2.0
@@ -228,3 +228,4 @@ signing_key:
228
228
  specification_version: 4
229
229
  summary: Component for calculating scores of KAF documents
230
230
  test_files: []
231
+ has_rdoc: yard