logstash-input-sttxml1 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/logstash/inputs/sttxml1.rb +4 -1
- data/logstash-input-sttxml1.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bf1d12f52ec75741b869e9d9111e238ea97191f
|
4
|
+
data.tar.gz: f5e48525a771077b70410740a9b59fa8b9aca307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be0641e9e44c51848f684653a78f164b2bb94612c0fbb60455da8b878835a0aa3319a5db9d14f81d46e82f7d5c947870d4667691054a8ec62d0347882790323
|
7
|
+
data.tar.gz: 4f7c61ec93913223aa4bd63964056c0f34ec87b67f8502576ae5b1408a3f73ea0730d727b03724015d86a0f9887a38f3c7905027b3761c923d459c729e7c994e
|
data/Gemfile.lock
CHANGED
@@ -22,6 +22,9 @@ class LogStash::Inputs::Sttxml1 < LogStash::Inputs::Base
|
|
22
22
|
# Default matches R1 and r1
|
23
23
|
config :customer_regex, :validate => :string, :default => '[rR]1'
|
24
24
|
|
25
|
+
# If true, It will substitute all whitespace
|
26
|
+
config :analysis, :validate => :boolean, :default => false
|
27
|
+
|
25
28
|
# The path(s) to the file(s) to use as an input.
|
26
29
|
config :path, :validate => :array, :required => true
|
27
30
|
|
@@ -70,7 +73,7 @@ class LogStash::Inputs::Sttxml1 < LogStash::Inputs::Base
|
|
70
73
|
party = parties[who]
|
71
74
|
event[party] = ''
|
72
75
|
link.child.children.each do |item|
|
73
|
-
begin_time, end_time, content = item.attribute('Begin').content.to_i, item.attribute('End').content.to_i, item.child.text.to_s.gsub(/\s+/, '')
|
76
|
+
begin_time, end_time, content = item.attribute('Begin').content.to_i, item.attribute('End').content.to_i, if @analysis; item.child.text.to_s.gsub(/\s+/, '') else item.child.text.to_s end
|
74
77
|
event[party] += "#{party}-#{begin_time} #{content}\n"
|
75
78
|
clauses << [ who, party, begin_time, end_time, content ]
|
76
79
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-sttxml1'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This example input streams a string at a definable interval."
|
6
6
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-sttxml1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- henry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|