logstash-devutils 1.3.2-java → 1.3.3-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94e7a4ae81d9897f6e2b46bebe3b043541741175
4
- data.tar.gz: 9a41dcd17a2b7a3c59ff0b41162840e8b3f06f77
3
+ metadata.gz: 93041e4e0e473009efd92fcd45e295f29cb4a744
4
+ data.tar.gz: 675ccc0b90a75fcded4e76519635c0da05f86668
5
5
  SHA512:
6
- metadata.gz: 997a8d17036247cad6be84b8fa4f1a40be275548fd927b37c0007926d635064ceac5d1a0f1274737af0e45d2d030953229073491e9059f3f170746fb486b277c
7
- data.tar.gz: 4efc64e97c73211fe3c3effef9248da2be1cc83ee8bc0bc85bdf35b1bd910ae1341ac162ebcb562a867cf16562c995b81de31102d4b8d7bc06c904d9b022b24d
6
+ metadata.gz: 7f7f0118a96f9729a618bbe19eaea1be3a89540e3057cd80ec93a71968b7d21f75562958c5d9ec9a532b4e8e927a62c5c33469750d7d2332a42e647c3bd5a988
7
+ data.tar.gz: de12cc0477e3210e19246e65a393193bd8795824d514c7b5eab38b51c239df2cc4c15b0aafbc8658cb8b53ec3ab787975908ed874eeb04e2d1f1966bd0ac809c
@@ -1,5 +1,9 @@
1
+ ## 1.3.3
2
+ - Make input function support different pipeline constructor signatures - for compatibility with logstash-core 6.0
3
+ - Make return of lambda used in input helpers explicit
4
+
1
5
  ## 1.3.2
2
- - Make sample function with multiple pipelines - for compatibility with logstash-core 6.0
6
+ - Make sample function support different pipeline constructor signatures - for compatibility with logstash-core 6.0
3
7
 
4
8
  ## 1.3.1
5
9
  - Close pipeline after #sample helper - for compatibility with logstash-core 5.3
@@ -72,7 +72,7 @@ module LogStashHelper
72
72
  end # def sample
73
73
 
74
74
  def input(config, &block)
75
- pipeline = LogStash::Pipeline.new(config)
75
+ pipeline = new_pipeline_from_string(config)
76
76
  queue = Queue.new
77
77
 
78
78
  pipeline.instance_eval do
@@ -82,6 +82,10 @@ module LogStashHelper
82
82
  # output_func is now a method, call closure
83
83
  def output_func(event)
84
84
  @output_func.call(event)
85
+ # We want to return nil or [] since outputs aren't used here
86
+ # NOTE: In Ruby 1.9.x, Queue#<< returned nil, but in 2.x it returns the queue itself
87
+ # So we need to be explicit about the return
88
+ nil
85
89
  end
86
90
  end
87
91
 
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
6
6
  files = %x{git ls-files}.split("\n")
7
7
 
8
8
  spec.name = "logstash-devutils"
9
- spec.version = "1.3.2"
9
+ spec.version = "1.3.3"
10
10
  spec.licenses = ["Apache License (2.0)"]
11
11
  spec.summary = "logstash-devutils"
12
12
  spec.description = "logstash-devutils"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-devutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-25 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement