logstash-devutils 0.0.17-java → 0.0.18-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/devutils/rspec/logstash_helpers.rb +13 -0
- data/logstash-devutils.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4796ffeb7cae4ec57e962975db3ca70a3f56b975
|
4
|
+
data.tar.gz: 6242dad393a65d6a345b08090437912e1efa961a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fd64a4ea82ea9bef0981cc59c63db768272510cba28f5412ad6d171976dcbb80328c4e2c63cbef1cf65a6a0ae90363b6f69678762f53b240015375abb52cb96
|
7
|
+
data.tar.gz: 24aab40e887227687ce7ba29f1dc895a2895eb5270afac9b628d26f65678e127b2ad70536fae59d7fb49a15755eea6358e9c096f90f6656deeaa3a08114bc76a
|
@@ -86,6 +86,19 @@ module LogStashHelper
|
|
86
86
|
result
|
87
87
|
end # def input
|
88
88
|
|
89
|
+
def plugin_input(plugin, &block)
|
90
|
+
queue = Queue.new
|
91
|
+
|
92
|
+
input_thread = Thread.new do
|
93
|
+
plugin.run(queue)
|
94
|
+
end
|
95
|
+
result = block.call(queue)
|
96
|
+
|
97
|
+
plugin.do_stop
|
98
|
+
input_thread.join
|
99
|
+
result
|
100
|
+
end
|
101
|
+
|
89
102
|
def agent(&block)
|
90
103
|
|
91
104
|
it("agent(#{caller[0].gsub(/ .*/, "")}) runs") do
|
data/logstash-devutils.gemspec
CHANGED
@@ -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 = "0.0.
|
9
|
+
spec.version = "0.0.18"
|
10
10
|
spec.summary = "logstash-devutils"
|
11
11
|
spec.description = "logstash-devutils"
|
12
12
|
spec.license = "Apache 2.0"
|