Skip to content

Commit a914108

Browse files
authored
Merge pull request #12 from logstash-plugins/update_api
Update to new Event API
2 parents 5f717bc + 0d5d14f commit a914108

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
sudo: false
2+
jdk:
3+
- oraclejdk8
24
language: ruby
35
cache: bundler
46
rvm:
5-
- jruby-1.7.23
6-
script:
7-
- bundle exec rspec spec
7+
- jruby-1.7.25
8+
script:
9+
- bundle exec rspec spec

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.0.0
2+
- Breaking: Updated plugin to use new Java Event APIs
3+
- relax logstash-core-plugin-api constrains
4+
- update .travis.yml
5+
16
# 2.0.4
27
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
38
# 2.0.3

lib/logstash/inputs/jms.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@ def queue_event(msg, output_queue)
157157

158158
if @include_header
159159
msg.attributes.each do |field, value|
160-
event[field.to_s] = value
160+
event.set(field.to_s, value)
161161
end
162162
end
163163

164164
if @include_properties
165165
msg.properties.each do |field, value|
166-
event[field.to_s] = value
166+
event.set(field.to_s, value)
167167
end
168168
end
169169

logstash-input-jms.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22

33
s.name = 'logstash-input-jms'
4-
s.version = '2.0.4'
4+
s.version = '3.0.0'
55
s.licenses = ['Apache License (2.0)']
66
s.summary = "Pull events from a JMS topic or queue."
77
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"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
2020
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
2121

2222
# Gem dependencies
23-
s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
23+
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
2424

2525
s.add_runtime_dependency 'logstash-codec-json'
2626
s.add_runtime_dependency 'logstash-codec-plain'

0 commit comments

Comments
 (0)