logstash-input-rabbitmq 5.2.1 → 5.2.2
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/inputs/rabbitmq.rb +1 -30
- data/logstash-input-rabbitmq.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: 9717be7fd0104ed684844927a5a69a0fda982052
|
|
4
|
+
data.tar.gz: 8b9d5fc15f6b107b73f8f9c5a94a446b7c443ea4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ced6c3f699db3b007d8bd0f374f62eba27dd0f6bf60ce3c9347a12f635c3b0213d9a6d54088618f1602b7785d39dddbb2dc3b9aebc9b986f1b2f5812460acf21
|
|
7
|
+
data.tar.gz: 1234e882f423de759d0774fa8f232c3b88b5ebb3e16b7f9bb649b2408da0c12c02a163751aa870601a9fa23a55b916c7849fba46960ce1938e078fd19c0b8646
|
data/CHANGELOG.md
CHANGED
|
@@ -296,38 +296,9 @@ module LogStash
|
|
|
296
296
|
end
|
|
297
297
|
end
|
|
298
298
|
|
|
299
|
-
private
|
|
300
|
-
|
|
301
|
-
# ByteArrayLongString is a private static inner class which
|
|
302
|
-
# can't be access via the regular Java::SomeNameSpace::Classname
|
|
303
|
-
# notation. See https://github.com/jruby/jruby/issues/3333.
|
|
304
|
-
ByteArrayLongString = JavaUtilities::get_proxy_class('com.rabbitmq.client.impl.LongStringHelper$ByteArrayLongString')
|
|
305
|
-
|
|
306
|
-
def get_header_value(value)
|
|
307
|
-
# Two kinds of values require exceptional treatment:
|
|
308
|
-
#
|
|
309
|
-
# String values are instances of
|
|
310
|
-
# com.rabbitmq.client.impl.LongStringHelper.ByteArrayLongString
|
|
311
|
-
# and we don't want to propagate those.
|
|
312
|
-
#
|
|
313
|
-
# List values are java.util.ArrayList objects and we need to
|
|
314
|
-
# recurse into them to convert any nested strings values.
|
|
315
|
-
if value.class == Java::JavaUtil::ArrayList
|
|
316
|
-
value.map{|item| get_header_value(item) }
|
|
317
|
-
elsif value.class == ByteArrayLongString
|
|
318
|
-
value.toString
|
|
319
|
-
else
|
|
320
|
-
value
|
|
321
|
-
end
|
|
322
|
-
end
|
|
323
|
-
|
|
324
299
|
private
|
|
325
300
|
def get_headers(metadata)
|
|
326
|
-
|
|
327
|
-
Hash[metadata.headers.map {|k, v| [k, get_header_value(v)]}]
|
|
328
|
-
else
|
|
329
|
-
{}
|
|
330
|
-
end
|
|
301
|
+
metadata.headers || {}
|
|
331
302
|
end
|
|
332
303
|
|
|
333
304
|
private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'logstash-input-rabbitmq'
|
|
3
|
-
s.version = '5.2.
|
|
3
|
+
s.version = '5.2.2'
|
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
|
5
5
|
s.summary = "Pull events from a RabbitMQ exchange."
|
|
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/logstash-plugin install gemname. This gem is not a stand-alone program"
|