opener-scorer 1.0.9 → 1.1.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: da740cac5baff0eb22af68f9799cf0d4ba4ee29c
4
- data.tar.gz: 035da510f7a2f83be7d3ed5dbe10d2468682e39a
3
+ metadata.gz: c4187df29dee8957fae802117f08a7ec12650227
4
+ data.tar.gz: 1066aa4aadd7ae98f9542ab7eefa665401916eb5
5
5
  SHA512:
6
- metadata.gz: cbf58252bcb7c712b426d14c5b5643991f8d40e9fd6c9d8d9cbbcebcfcd9384ff41d6d929fabdf890e816d4aadcc489bfe9002473e59e45a52d786148b9a91e6
7
- data.tar.gz: 160b221b363b560fd191d1d6e9c55ed4e560fded5e83eda0293c43d74d93623b8fc60ba88d0e1b35af2d9902fcb7a6f3f96ff98f1a1e20463c0fa17fe484cee3
6
+ metadata.gz: 81598a43002dddbb215da11e8f0d5e2d50d513a20ef86b0d55a853a420b25c30680a361562d6daac4bbe5ab132c99b2782b52cf40567fd5869245cc8aca8a4af
7
+ data.tar.gz: b5bad591a495a08dbf2e5c5fd7de25c8d419bb3e4b066de533b065ed32244c12a80579a39489e2059cf7c0effeaf6c2c1c01861f2dea39489477ed7260152e09
@@ -86,10 +86,11 @@ module Opener
86
86
  polarities_hash[target.attr('id')] << polarity
87
87
  end
88
88
  end
89
-
90
- opinion.at('opinion_expression').css('span target').each do |target|
91
- polarities_hash[target.attr('id')] ||= []
92
- polarities_hash[target.attr('id')] << polarity
89
+ if targets = opinion.at('opinion_expression')
90
+ opinion.at('opinion_expression').css('span target').each do |target|
91
+ polarities_hash[target.attr('id')] ||= []
92
+ polarities_hash[target.attr('id')] << polarity
93
+ end
93
94
  end
94
95
  end
95
96
  end
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class Scorer
3
- VERSION = "1.0.9"
3
+ VERSION = "1.1.0"
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: 1.0.9
4
+ version: 1.1.0
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-05-23 00:00:00.000000000 Z
11
+ date: 2014-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder