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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bdea0adf550ed08824152c6206ff537e61b1373
4
- data.tar.gz: 56987b96866bf9ac31681c840aca1d28dde07836
3
+ metadata.gz: 3bf1d12f52ec75741b869e9d9111e238ea97191f
4
+ data.tar.gz: f5e48525a771077b70410740a9b59fa8b9aca307
5
5
  SHA512:
6
- metadata.gz: 62b97857ed6bc4e924a037331485d8ddf79ba3a1629bd05c23c85595c925c702c5468684c7bc95d7868ab06722cdf47919988fec43839b6ed665061a7a3e52ac
7
- data.tar.gz: 3da6f87e73ecc490d9ddd364d3bf5db2a83103f6261099db21a751b740fafd51dba1b0365a5f653cdc21b9d9acda428044500c616dcd63a8e21a2586555ee352
6
+ metadata.gz: 7be0641e9e44c51848f684653a78f164b2bb94612c0fbb60455da8b878835a0aa3319a5db9d14f81d46e82f7d5c947870d4667691054a8ec62d0347882790323
7
+ data.tar.gz: 4f7c61ec93913223aa4bd63964056c0f34ec87b67f8502576ae5b1408a3f73ea0730d727b03724015d86a0f9887a38f3c7905027b3761c923d459c729e7c994e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- logstash-input-sttxml1 (0.1.0)
4
+ logstash-input-sttxml1 (0.1.1)
5
5
  filewatcher (~> 0.5.2)
6
6
  logstash-codec-plain
7
7
  logstash-core (>= 1.4.0, < 2.0.0)
@@ -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.0'
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.0
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-06 00:00:00.000000000 Z
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