logstash-integration-jdbc 5.4.7 → 5.4.9

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: d5c04b526284f336bb23a9fc70ba7a516fe14e2245a54369b7ee1880238b3152
4
- data.tar.gz: def3a4fef6a0a94301973f3f27c04cad37665192845ff0e2c8597daee9176422
3
+ metadata.gz: fd25bda7dbc3dbbc14d2db3d79f2aff6c4c1eb39de48c786701c998ed66fefcf
4
+ data.tar.gz: 519d0d5d51ad001974ccdf2ca131d81f8d2558984b78f897cb9d2f69b509e444
5
5
  SHA512:
6
- metadata.gz: 94a6e5c731897e4f1d83e161d4c009bb4d549249fb1d34f7e237bba8c6e0a71e742c9add3e34ed9499fb00315cde934b82cde88433f314bdaf146fc70880e50c
7
- data.tar.gz: 1ebe17301cd731035da8751c82214d6591db988327589571abde08a5f69e797b0321b3622ddd803f1fa750903ea327e60ba5dbf9dff2a33d995b42b9cc716799
6
+ metadata.gz: 4776aa8f80c18579b366713c5eea82f956e0b18304414a6bf66c3866bab4d92f08cf4c10d82ce464d2c33fef5ce51ae69102a0db814383bef4b8aa9f6e4621a7
7
+ data.tar.gz: 28b7b9ee174032657084ec43d55eeb9152d51689e97ccbf4d1bac826fa6890b1b9f0e3d190bc2230c5f2b1462f22249c5f18aef1ce50423838d8037c44d2f711
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 5.4.9
2
+ - Fix Derby missed driver classes when built locally for version 10.15 [#160](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/160)
3
+ -
4
+ ## 5.4.8
5
+ - Update Derby with locally built 10.15.2.1 version [#155](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/155)
6
+
1
7
  ## 5.4.7
2
8
  - Update sequel version to >= 5.74.0. It fixes the generic jdbc adapter to properly handle disconnect errors [#153](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/153)
3
9
 
@@ -1,5 +1,7 @@
1
1
  # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.
2
2
 
3
3
  require 'jar_dependencies'
4
- require_jar('org.apache.derby', 'derby', '10.14.1.0')
5
- require_jar('org.apache.derby', 'derbyclient', '10.14.1.0')
4
+ require_jar('org.apache.derby', 'derby', '10.15.2.1')
5
+ require_jar('org.apache.derby', 'derbyclient', '10.15.2.1')
6
+ require_jar('org.apache.derby', 'derbytools', '10.15.2.1')
7
+ require_jar('org.apache.derby', 'derbyshared', '10.15.2.1')
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-integration-jdbc'
3
- s.version = '5.4.7'
3
+ s.version = '5.4.9'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Integration with JDBC - input and filter plugins"
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/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -45,5 +45,4 @@ Gem::Specification.new do |s|
45
45
  s.add_development_dependency "childprocess"
46
46
  s.add_development_dependency 'logstash-devutils', '>= 2.3'
47
47
  s.add_development_dependency 'timecop'
48
- s.add_development_dependency 'jdbc-derby'
49
48
  end
@@ -1,7 +1,6 @@
1
1
  require "logstash/devutils/rspec/spec_helper"
2
2
  require "logstash/devutils/rspec/shared_examples"
3
3
  require "logstash/filters/jdbc_streaming"
4
- require 'jdbc/derby'
5
4
  require "sequel"
6
5
  require "sequel/adapters/jdbc"
7
6
 
@@ -13,8 +12,6 @@ module LogStash module Filters
13
12
  describe JdbcStreaming do
14
13
  let!(:jdbc_connection_string) { "jdbc:derby:memory:jdbc_streaming_testdb;create=true"}
15
14
  #Use embedded Derby for tests
16
- ::Jdbc::Derby.load_driver
17
-
18
15
  ENV["TZ"] = "Etc/UTC"
19
16
  describe "plugin level execution" do
20
17
  let(:mixin_settings) do
@@ -2,7 +2,6 @@
2
2
  require "logstash/devutils/rspec/spec_helper"
3
3
  require "logstash/devutils/rspec/shared_examples"
4
4
  require "logstash/inputs/jdbc"
5
- require "jdbc/derby"
6
5
  require "sequel"
7
6
  require "sequel/adapters/jdbc"
8
7
  require "timecop"
@@ -33,7 +32,6 @@ describe LogStash::Inputs::Jdbc do
33
32
  before :each do
34
33
  if !RSpec.current_example.metadata[:no_connection]
35
34
  # before body
36
- Jdbc::Derby.load_driver
37
35
  db.create_table :test_table do
38
36
  DateTime :created_at
39
37
  BigDecimal :big_num
@@ -1587,9 +1585,21 @@ describe LogStash::Inputs::Jdbc do
1587
1585
  end
1588
1586
  end
1589
1587
 
1588
+ def load_derby_version
1589
+ version = {}
1590
+ derby_version = File.join(Dir.pwd, 'derby_version.txt')
1591
+ File.readlines(derby_version, chomp: true).each do |line|
1592
+ key = line.split('=')[0]
1593
+ value = line.split('=')[1]
1594
+ version[key] = value
1595
+ end
1596
+ version
1597
+ end
1598
+
1590
1599
  context "when an unreadable jdbc_driver_path entry is present" do
1591
1600
  let(:driver_jar_path) do
1592
- jar_file = $CLASSPATH.find { |name| name.index(Jdbc::Derby.driver_jar) }
1601
+ derby_version = load_derby_version()['DERBY_VERSION']
1602
+ jar_file = $CLASSPATH.find { |name| name.index("derby-#{derby_version}.jar") }
1593
1603
  raise "derby jar not found on class-path" unless jar_file
1594
1604
  jar_file.sub('file:', '')
1595
1605
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-integration-jdbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.7
4
+ version: 5.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-31 00:00:00.000000000 Z
11
+ date: 2024-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -226,20 +226,6 @@ dependencies:
226
226
  - - ">="
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
- - !ruby/object:Gem::Dependency
230
- requirement: !ruby/object:Gem::Requirement
231
- requirements:
232
- - - ">="
233
- - !ruby/object:Gem::Version
234
- version: '0'
235
- name: jdbc-derby
236
- prerelease: false
237
- type: :development
238
- version_requirements: !ruby/object:Gem::Requirement
239
- requirements:
240
- - - ">="
241
- - !ruby/object:Gem::Version
242
- version: '0'
243
229
  description: This gem is a Logstash plugin required to be installed on top of the
244
230
  Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
245
231
  gem is not a stand-alone program
@@ -309,8 +295,10 @@ files:
309
295
  - spec/plugin_mixins/jdbc/timezone_proxy_spec.rb
310
296
  - spec/plugin_mixins/jdbc/value_tracking_spec.rb
311
297
  - spec/plugin_mixins/jdbc_streaming/parameter_handler_spec.rb
312
- - vendor/jar-dependencies/org/apache/derby/derby/10.14.1.0/derby-10.14.1.0.jar
313
- - vendor/jar-dependencies/org/apache/derby/derbyclient/10.14.1.0/derbyclient-10.14.1.0.jar
298
+ - vendor/jar-dependencies/org/apache/derby/derby/10.15.2.1/derby-10.15.2.1.jar
299
+ - vendor/jar-dependencies/org/apache/derby/derbyclient/10.15.2.1/derbyclient-10.15.2.1.jar
300
+ - vendor/jar-dependencies/org/apache/derby/derbyshared/10.15.2.1/derbyshared-10.15.2.1.jar
301
+ - vendor/jar-dependencies/org/apache/derby/derbytools/10.15.2.1/derbytools-10.15.2.1.jar
314
302
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
315
303
  licenses:
316
304
  - Apache License (2.0)