logstash-filter-jdbc_streaming 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53467641c84cec7d86abf44b4e066358b643ab0aa6031d3772708c8e52902424
4
- data.tar.gz: 95e89356c60f31568ea1810a2a5addf19cf6219bbac531c8800a3ca0adee7bb1
3
+ metadata.gz: 846ac85e32b75614304175dc1b80a14ad3fb926a49960d925ce0e3e72d7cc231
4
+ data.tar.gz: 3633ec22d341642ae068f59ea67df3757b40a3d0ca2af30581e7550be3f7c3f9
5
5
  SHA512:
6
- metadata.gz: 993435df20cfbf0f06d11bcb74f57094b0a7592c35a8b06ed968faa4ed6419de73d2872b6b13eb2e0f3459750a8f851f4ae38e28108b3e08c4bef52d1de24785
7
- data.tar.gz: 28235331d718d5ac9e711b9765afbf77c26ccfdf0a1c69384f59f95c1b799ee7dd3a6de57b7bbbbf3621b2ecff29f7e85c3def9c8997e960ecd3f7c7b1497a99
6
+ metadata.gz: f2ebbd142b4af6139f0f4bbc8855b93bcf3a9e8a6b0e746894e021388a9d10c95b3ea698b1aadd7d1846e0818495c96cd9e6833e260339865e64c86569482e32
7
+ data.tar.gz: 66100e0597f0c4dcdbf792dde2f66ad0b6b2306d390f1e7ced1dcc19a06ce38c3757dfc0c5cead4ee61b68aed72937b3e615b842b37f8b03ed41873b3d758321
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.5
2
+ - [#11](https://github.com/logstash-plugins/logstash-filter-jdbc_streaming/pull/11) Swap out mysql for postgresql for testing
3
+
1
4
  ## 1.0.4
2
5
  - [JDBC input - #263](https://github.com/logstash-plugins/logstash-input-jdbc/issues/263) Load the driver with the system class loader. Fixes issue loading some JDBC drivers in Logstash 6.2+
3
6
 
data/docs/index.asciidoc CHANGED
@@ -31,7 +31,7 @@ filter {
31
31
  jdbc_streaming {
32
32
  jdbc_driver_library => "/path/to/mysql-connector-java-5.1.34-bin.jar"
33
33
  jdbc_driver_class => "com.mysql.jdbc.Driver"
34
- jdbc_connection_string => ""jdbc:mysql://localhost:3306/mydatabase"
34
+ jdbc_connection_string => "jdbc:mysql://localhost:3306/mydatabase"
35
35
  jdbc_user => "me"
36
36
  jdbc_password => "secret"
37
37
  statement => "select * from WORLD.COUNTRY WHERE Code = :code"
@@ -223,4 +223,4 @@ Enable or disable caching, boolean true or false, defaults to true
223
223
 
224
224
 
225
225
  [id="plugins-{type}s-{plugin}-common-options"]
226
- include::{include_path}/{type}.asciidoc[]
226
+ include::{include_path}/{type}.asciidoc[]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-jdbc_streaming'
3
- s.version = '1.0.4'
3
+ s.version = '1.0.5'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Enrich events with your database data"
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/plugin install gemname. This gem is not a stand-alone program"
@@ -25,5 +25,5 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_development_dependency 'logstash-devutils'
27
27
  s.add_development_dependency 'jdbc-derby'
28
- s.add_development_dependency 'jdbc-mysql'
28
+ s.add_development_dependency 'jdbc-postgres'
29
29
  end
@@ -1,6 +1,6 @@
1
1
  require "logstash/devutils/rspec/spec_helper"
2
2
  require "logstash/filters/jdbc_streaming"
3
- require 'jdbc/mysql'
3
+ require 'jdbc/postgres'
4
4
  require "sequel"
5
5
  require "sequel/adapters/jdbc"
6
6
 
@@ -10,13 +10,13 @@ module LogStash module Filters
10
10
  end
11
11
 
12
12
  describe JdbcStreaming, :integration => true do
13
- # Use MySql for integration tests
14
- ::Jdbc::MySQL.load_driver
13
+ # Use Postgres for integration tests
14
+ ::Jdbc::Postgres.load_driver
15
15
 
16
16
  ENV["TZ"] = "Etc/UTC"
17
17
  let(:mixin_settings) do
18
- { "jdbc_user" => "root", "jdbc_driver_class" => "com.mysql.jdbc.Driver",
19
- "jdbc_connection_string" => "jdbc:mysql://localhost/jdbc_streaming_db?user=root"}
18
+ { "jdbc_user" => "postgres", "jdbc_driver_class" => "org.postgresql.Driver",
19
+ "jdbc_connection_string" => "jdbc:postgresql://localhost/jdbc_streaming_db?user=postgres"}
20
20
  end
21
21
  let(:settings) { {} }
22
22
  let(:plugin) { JdbcStreaming.new(mixin_settings.merge(settings)) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-jdbc_streaming
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-02 00:00:00.000000000 Z
11
+ date: 2019-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +92,7 @@ dependencies:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
- name: jdbc-mysql
95
+ name: jdbc-postgres
96
96
  prerelease: false
97
97
  type: :development
98
98
  version_requirements: !ruby/object:Gem::Requirement