logstash-input-jms 3.3.1-java → 3.3.2-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
  SHA256:
3
- metadata.gz: 439f29fea2225b00c4b170feec416693450ec6536ce14d7b4e78c67c71865b9c
4
- data.tar.gz: 8c1eec0ab93ac8ac3c7800cd276ea4241eb509a8e5a581a7b55cc352bc99bc2f
3
+ metadata.gz: 68ba94c2430968b4fa0c88d3ecbc796522f01aadb1a8669833df1a85a1a3ffca
4
+ data.tar.gz: bfdda07aa59bf48808a40b25b54d930140c36530968adafa96f220a4f40eb40d
5
5
  SHA512:
6
- metadata.gz: 1642d6d70049790f9b1bcef286590e67fb3cd3060eefc8e58e5f8735c7ab9f441d3147dcbb6df0d65dd403e6ed35eeba4732555a8624804048af1d275e491b42
7
- data.tar.gz: 7829fce7bbd96851992825306ce7893f7a4381258716a04f85e8726ea0723e92012799bc2d2d15baa1e5794d2f1684bc76ce029f8cebe199480e0cf6c2f02e30
6
+ metadata.gz: 604b07f4da881f8f32a4fba609e4c0163a10fb027baabb64948487dc9742ae171f17b5def402fdf79d04e3316eeec92d560afb60ab3fb5c580fc934f3c317d53
7
+ data.tar.gz: 20420bfb125d531f87489e85a2b3454b66b4c8c701548a2edeb9030cb723788f47e1528bdfcb3a026770d3485ed5e0222c6cfeca0b210aeb2034d52d58a0527c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.3.2
2
+ - Fix `NameError: uninitialized constant Fixnum` when reading a JMS MapMessage on Logstash 9.4+ [#63](https://github.com/logstash-plugins/logstash-input-jms/pull/63)
3
+ - The `jruby-jms` gem references the `Fixnum` constant, which Ruby removed in 3.2 (shipped by the JRuby in Logstash 9.4+). This raised a `NameError` while decoding a JMS MapMessage. Alias the removed `Fixnum`/`Bignum` constants to `Integer` before requiring `jms`.
4
+
1
5
  ## 3.3.1
2
6
  - Fixed a regression introduced in 3.3.0 where `add_field` is no longer enriching events [#59](https://github.com/logstash-plugins/logstash-input-jms/pull/59)
3
7
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Travis Build Status](https://travis-ci.com/logstash-plugins/logstash-input-jms.svg)](https://travis-ci.com/logstash-plugins/logstash-input-jms)
3
+ [![Unit Tests](https://github.com/logstash-plugins/logstash-input-jms/actions/workflows/unit-tests.yml/badge.svg?branch=main)](https://github.com/logstash-plugins/logstash-input-jms/actions/workflows/unit-tests.yml)
4
4
 
5
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
6
6
 
@@ -9,6 +9,13 @@ require 'logstash/plugin_mixins/ecs_compatibility_support/target_check'
9
9
  require 'logstash/plugin_mixins/event_support/event_factory_adapter'
10
10
  require 'logstash/plugin_mixins/validator_support/field_reference_validation_adapter'
11
11
 
12
+ # Ruby 2.4 unified Fixnum/Bignum into Integer, and Ruby 3.2 (the JRuby shipped
13
+ # with Logstash 9.4+) removed the old constants. The `jruby-jms` gem still
14
+ # references Fixnum in its MapMessage handling, so alias the removed constants
15
+ # back to Integer before `require "jms"` runs in #register.
16
+ Fixnum = Integer unless defined?(Fixnum)
17
+ Bignum = Integer unless defined?(Bignum)
18
+
12
19
  # Read events from a Jms Broker. Supports both Jms Queues and Topics.
13
20
  #
14
21
  # For more information about Jms, see <http://docs.oracle.com/javaee/6/tutorial/doc/bncdq.html>
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-jms'
4
- s.version = '3.3.1'
4
+ s.version = ::File.read('version').split("\n").first
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Reads events from a Jms Broker"
7
7
  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"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
14
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "version", "docs/**/*"]
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -309,4 +309,22 @@ describe LogStash::Inputs::Jms do
309
309
  end
310
310
 
311
311
  end
312
+
313
+ context "ensure add_field has been called" do
314
+ let(:jms_config) do
315
+ super().merge(
316
+ 'include_body' => false,
317
+ 'include_headers' => false,
318
+ 'include_properties' => false,
319
+ 'add_field' => { "[jms][extra]" => "something" }
320
+ )
321
+ end
322
+
323
+ it 'has decorated event' do
324
+ plugin.register
325
+ plugin.queue_events(double('jms-message-stub'), queue = [])
326
+ event = queue.first
327
+ expect(event.get("[jms][extra]")).to eq("something")
328
+ end
329
+ end
312
330
  end
data/version ADDED
@@ -0,0 +1 @@
1
+ 3.3.2
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-jms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.3.2
5
5
  platform: java
6
6
  authors:
7
7
  - Elasticsearch
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-09-08 00:00:00.000000000 Z
10
+ date: 2026-08-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: logstash-core-plugin-api
@@ -178,6 +178,7 @@ files:
178
178
  - spec/inputs/integration/jms_spec.rb
179
179
  - spec/inputs/spec_helper.rb
180
180
  - spec/inputs/unit/jms_spec.rb
181
+ - version
181
182
  homepage: http://www.elasticsearch.org/guide/en/logstash/current/index.html
182
183
  licenses:
183
184
  - Apache License (2.0)