sad_panda 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1885,7 +1885,8 @@ module SadPanda
1885
1885
  # polarity unreadable; return a neutral score of zero
1886
1886
  score = 0
1887
1887
  else
1888
- score = polarity_score.max_by{|k, v| v}[1]
1888
+ polarity_values = polarity_score.values
1889
+ score = polarity_values.inject{ |sum, el| sum.to_f + el.to_f } / polarity_values.length
1889
1890
  polarity_score = {}
1890
1891
  end
1891
1892
  if @verbose
@@ -1,3 +1,3 @@
1
1
  module SadPanda
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sad_panda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: