Skip to content

Commit c332ced

Browse files
jsvdSuyog Rao
authored andcommitted
update logstash-core-plugin-api dependency and bump to 3.0.0 (#11)
1 parent fbd81af commit c332ced

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
---
12
sudo: false
23
language: ruby
34
cache: bundler
45
rvm:
5-
- jruby-1.7.23
6-
script:
7-
- bundle exec rspec spec
6+
- jruby-1.7.25
7+
script:
8+
- bundle exec rspec spec
9+
jdk: oraclejdk8
10+
before_install: []

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 3.0.0
2+
- Breaking: depend on logstash-core-plugin-api between 1.60 and 2.99 and use new event api
3+
14
# 2.0.4
25
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
36
# 2.0.3

lib/logstash/inputs/sqlite.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def run(queue)
162162
# store each column as a field in the event.
163163
row.each do |column, element|
164164
next if column == :id
165-
event[column.to_s] = element
165+
event.set(column.to_s, element)
166166
end
167167
queue << event
168168
@table_data[k][:place] = row[:id]

logstash-input-sqlite.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-sqlite'
4-
s.version = '2.0.4'
4+
s.version = '3.0.0'
55
s.licenses = ['Apache License (2.0)']
66
s.summary = "Read rows from an sqlite database."
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 'sequel'
2626
s.add_runtime_dependency 'jdbc-sqlite3'

0 commit comments

Comments
 (0)