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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed1fe67b7b07763f761dc3af84064284d6f05ff3
4
- data.tar.gz: 894d9c4b151f75801213d72db5cafaacb4d0c605
3
+ metadata.gz: 9717be7fd0104ed684844927a5a69a0fda982052
4
+ data.tar.gz: 8b9d5fc15f6b107b73f8f9c5a94a446b7c443ea4
5
5
  SHA512:
6
- metadata.gz: 17355d1e32af290d02d0d5ce99187b8ce31516be58436ed75c8794fff5750dc2ce742cfb59017d1ef477f4f84c94a31a896899f144d85d6a7ac9c506bd907d97
7
- data.tar.gz: 068d58811f00bc7cacb05341a36e34ba1d3343886e14a9733a0e5568a6e31d8a9860e85d8d0ea1fa64e80406445348e4c84388ffcdb43e36ab623a079a30381b
6
+ metadata.gz: ced6c3f699db3b007d8bd0f374f62eba27dd0f6bf60ce3c9347a12f635c3b0213d9a6d54088618f1602b7785d39dddbb2dc3b9aebc9b986f1b2f5812460acf21
7
+ data.tar.gz: 1234e882f423de759d0774fa8f232c3b88b5ebb3e16b7f9bb649b2408da0c12c02a163751aa870601a9fa23a55b916c7849fba46960ce1938e078fd19c0b8646
@@ -1,3 +1,6 @@
1
+ ## 5.2.2
2
+ - Remove legacy header normalization code. MarchHare does this directly now.
3
+
1
4
  ## 5.2.1
2
5
  - Bump march_hare version to fix issue where metadata would be broken for strings > 255 chars
3
6
  due to their transformation to rabbitmq java's LongString class
@@ -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
- if !metadata.headers.nil?
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.1'
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.1
4
+ version: 5.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic