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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8dc9c4b7008d151a8a16a1520ae2d7f26c6866e
4
- data.tar.gz: 5a19a93aeef22e216d6814d6fc329961c26d24ce
3
+ metadata.gz: 4796ffeb7cae4ec57e962975db3ca70a3f56b975
4
+ data.tar.gz: 6242dad393a65d6a345b08090437912e1efa961a
5
5
  SHA512:
6
- metadata.gz: c1a0373514dd687b91bd7356d5664e6544eac18ce5cfe2cefdf1a0799e2592c5bda94c2a5d019d5cc862e1ef4218e2946d714548d186fc785b1affe947395e8f
7
- data.tar.gz: 85d6335561628e241b41f8676a78d412518d48fc918cc335124199c68958b435c6445c2df4660f5347fde67e38928c9a89ee5a6f3703f0bb3c0297215e551199
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
@@ -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.17"
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-devutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: java
6
6
  authors:
7
7
  - Jordan Sissel