sentiment_lib 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -78,7 +78,7 @@ create a subclass of SentimentLib::Analysis::Strategy
78
78
 
79
79
  You can then pass your strategy to new instances of SentimentLib::Analyzer:
80
80
 
81
- analyzer = SentimentLib::Analyzer.new(:strategy => MyCustomStrategy.new)
81
+ analyzer = SentimentLib::Analyzer.new(:strategy => MyCustomStrategy.new)
82
82
 
83
83
 
84
84
  ## Contributing
@@ -87,4 +87,4 @@ You can then pass your strategy to new instances of SentimentLib::Analyzer:
87
87
  2. Create your feature branch (`git checkout -b my-new-feature`)
88
88
  3. Commit your changes (`git commit -am 'Add some feature'`)
89
89
  4. Push to the branch (`git push origin my-new-feature`)
90
- 5. Create new Pull Request
90
+ 5. Create new Pull Request
@@ -9,7 +9,7 @@ module SentimentLib
9
9
  end
10
10
 
11
11
  def analyze(str, opts={})
12
- tokens, sum = @strategy.tokenize(@strategy.normalize(str)), 0
12
+ tokens = @strategy.tokenize(@strategy.normalize(str))
13
13
 
14
14
  @strategy.weigh(tokens)
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module SentimentLib
2
- VERSION = "0.2"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentiment_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: