logstash-filter-jdbc_streaming 1.0.3 → 1.0.4

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: 2e58c4a625113ca4fd3bd6805e413bcb8545607ed0feb7d17df9073f69da5e67
4
- data.tar.gz: 2c3119c76e1ce1f1736711c7e3fc883aa6487739f6428a21673ebca3b25c3d51
3
+ metadata.gz: 53467641c84cec7d86abf44b4e066358b643ab0aa6031d3772708c8e52902424
4
+ data.tar.gz: 95e89356c60f31568ea1810a2a5addf19cf6219bbac531c8800a3ca0adee7bb1
5
5
  SHA512:
6
- metadata.gz: 52f47f2bd9efbce56cddec08280107ac597f7b99e1dca5006295286f739df7c891036776f9d0685875d2c710fc78d10ff66517789e55657b7a7512db9ecb4900
7
- data.tar.gz: 242bc6c99d36b0d4d8e07610f104cefd42cab9c151bb64e44e85a174a589d1b055e3451b47ab6dca4ec64110d803296c0f7be98ce81fd08331cc40d12d1d1f28
6
+ metadata.gz: 993435df20cfbf0f06d11bcb74f57094b0a7592c35a8b06ed968faa4ed6419de73d2872b6b13eb2e0f3459750a8f851f4ae38e28108b3e08c4bef52d1de24785
7
+ data.tar.gz: 28235331d718d5ac9e711b9765afbf77c26ccfdf0a1c69384f59f95c1b799ee7dd3a6de57b7bbbbf3621b2ecff29f7e85c3def9c8997e960ecd3f7c7b1497a99
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.4
2
+ - [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
+
1
4
  ## 1.0.3
2
5
  - Update gemspec summary
3
6
 
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012-2018 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
@@ -43,7 +43,12 @@ module LogStash module PluginMixins module JdbcStreaming
43
43
  require "sequel"
44
44
  require "sequel/adapters/jdbc"
45
45
  require "java"
46
- require @jdbc_driver_library if @jdbc_driver_library
46
+
47
+ if @jdbc_driver_library
48
+ class_loader = java.lang.ClassLoader.getSystemClassLoader().to_java(java.net.URLClassLoader)
49
+ class_loader.add_url(java.io.File.new(@jdbc_driver_library).toURI().toURL())
50
+ end
51
+
47
52
  Sequel::JDBC.load_driver(@jdbc_driver_class)
48
53
  @database = Sequel.connect(@jdbc_connection_string, :user=> @jdbc_user, :password=> @jdbc_password.nil? ? nil : @jdbc_password.value)
49
54
  if @jdbc_validate_connection
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-jdbc_streaming'
3
- s.version = '1.0.3'
3
+ s.version = '1.0.4'
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"
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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-07 00:00:00.000000000 Z
11
+ date: 2018-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.6.11
143
+ rubygems_version: 2.6.13
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Enrich events with your database data