logstash-filter-sentimentalizer 0.2.1 → 0.2.2

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: 985434fa92185812a9723b193bbf35993c35cd39
4
- data.tar.gz: 2d9778a8dc3854c1d8eee28a95a846b02f23579b
3
+ metadata.gz: '09d6aa59f048e204ae2618bad24d417d7e0af056'
4
+ data.tar.gz: 51623f091c226f7f78a5213fd3730f8dfdce3e9b
5
5
  SHA512:
6
- metadata.gz: 2d5d64917cdcc72cf81c95c09a6a1271a2fe20eda29bb137c3b6382f71d70c9a797696dcc6a45bf688fda48856b8fdd285fedfb73654033787f31fd8fb5a9ce4
7
- data.tar.gz: 4b6efdc4e66ffae2c9267d5f92514c368a62a8980211fd44c96873f7756216a27fa8b27694baa9eb1af51385b6a8b93f73ae97bc2854f8dfe5c662f125d409bc
6
+ metadata.gz: adf1b42a5e8d65d61c4a37a296929dac7893863ca7401efb83f9f2e28ecbce0b4619df7a04eaba27596c120b1324469126e86be4800965ce5a5585bc8efd03a8
7
+ data.tar.gz: 45388cd4fd6b351b3dff7220b19da5a9e9f5107654a93a72bf31983fabd1c67c9f6e5556415b56f26445a4eb5bbae8c5e8dc3558a69bbf28dea2b91422317a0a
@@ -34,9 +34,8 @@ class LogStash::Filters::Sentimentalizer < LogStash::Filters::Base
34
34
  def filter(event)
35
35
  return unless filter?(event)
36
36
 
37
- source = event.get(@source).dup
38
-
39
- unless source.nil?
37
+ unless event.get(@source).nil?
38
+ source = event.get(@source).dup
40
39
  begin
41
40
  sentiment = Sentimentalizer.analyze(
42
41
  @scrub ? source.gsub(/\B#(\S+)\b/, '\1') : source
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-sentimentalizer'
3
- s.version = '0.2.1'
3
+ s.version = '0.2.2'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'This plugin will analyze sentiment of a specified field.'
6
6
  s.description = 'A logstash plugin to derive sentiment from fields.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-sentimentalizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Langlois
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-20 00:00:00.000000000 Z
11
+ date: 2017-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement