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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09d6aa59f048e204ae2618bad24d417d7e0af056'
|
4
|
+
data.tar.gz: 51623f091c226f7f78a5213fd3730f8dfdce3e9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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.
|
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-
|
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
|