logstash-filter-esquerystring 1.3.0 → 1.3.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: 0bc48d1cf1d787b54b63d96f00195787056a2cc8
4
- data.tar.gz: ff744149a3c8702e851bc720505ab36481f30eae
3
+ metadata.gz: f0545cf846cb849f5b5e386fc9f69519622d2a33
4
+ data.tar.gz: eda9318721ec207f4c2ad512dfa9a3adeaaa2c66
5
5
  SHA512:
6
- metadata.gz: 67f92b43df01f7a3bf3a9c94f8a23eb03ae00237233e537681669df95696eb1991c4707a9ab023891fad9dc549cc574f45938f6d5c541fac0c35f00962c9c935
7
- data.tar.gz: 9e65a1a31e2f3f4c4b85850ec73094698b91cf2a7909dd44ce3bab16f8632067f2b308dac981d0629898177e2a575af018b3e54a3f1f24f49f44fe80220a3186
6
+ metadata.gz: fc0acb27661294d55ae8033642fbfa09f310a93b4dc35e8cf6ef065ca4bbaac216609e8c8c0261dfbddebaed93134ae6a62188750bbc8f7fd7734ed46afa6791
7
+ data.tar.gz: a607dc608d6161207ef4b9bcc7f14eef21c442ff60d70b5c536c300c38e41fac3d59a2308fd4039b72039654936032a7d477839bf6d20604a0955043185fa107
@@ -28,6 +28,8 @@ class LogStash::Filters::Esquerystring < LogStash::Filters::Base
28
28
  values += value
29
29
  end
30
30
 
31
+ values.compact!
32
+
31
33
  return if values.length == 0
32
34
  values = values.uniq.map { |x| '"' + x + '"' }
33
35
  values_str = "(" + values.join(" OR ") + ")"
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-esquerystring'
4
- s.version = '1.3.0'
4
+ s.version = '1.3.1'
5
5
  s.licenses = ['Apache-2.0']
6
6
  s.summary = "This filter converts values of source field to elasticsearch query string"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-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-filter-esquerystring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-23 00:00:00.000000000 Z
11
+ date: 2018-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement