logstash-integration-jdbc 5.4.8 → 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: 6b685b74c2638954f52e43f9f2443ad12701be5a0f75973a7380eb3d19bd5a75
4
- data.tar.gz: d77612944fbc3ff7696cb4858f81fd3348c5342e23fae43f4ef3680412b9159e
3
+ metadata.gz: fd25bda7dbc3dbbc14d2db3d79f2aff6c4c1eb39de48c786701c998ed66fefcf
4
+ data.tar.gz: 519d0d5d51ad001974ccdf2ca131d81f8d2558984b78f897cb9d2f69b509e444
5
5
  SHA512:
6
- metadata.gz: 4b1a24c4e64eff48d836e058cebeef83a062506f9144ba9ac6ee16364ab4095ce411a2d19612fc5db597d265f51de75fa3daf119553272168c885270911a9b9e
7
- data.tar.gz: 05edc5d6b08312f04efd13bb0c360ff58be1125f244e01437d784baaf99b4df14f9228af61c197b32a5e70b379024f18d5ffe8244957d703fff5c53255d27d6b
6
+ metadata.gz: 4776aa8f80c18579b366713c5eea82f956e0b18304414a6bf66c3866bab4d92f08cf4c10d82ce464d2c33fef5ce51ae69102a0db814383bef4b8aa9f6e4621a7
7
+ data.tar.gz: 28b7b9ee174032657084ec43d55eeb9152d51689e97ccbf4d1bac826fa6890b1b9f0e3d190bc2230c5f2b1462f22249c5f18aef1ce50423838d8037c44d2f711
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
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
+ -
1
4
  ## 5.4.8
2
5
  - Update Derby with locally built 10.15.2.1 version [#155](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/155)
3
6
 
@@ -3,3 +3,5 @@
3
3
  require 'jar_dependencies'
4
4
  require_jar('org.apache.derby', 'derby', '10.15.2.1')
5
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.8'
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.8
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-02-13 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
@@ -311,6 +297,8 @@ files:
311
297
  - spec/plugin_mixins/jdbc_streaming/parameter_handler_spec.rb
312
298
  - vendor/jar-dependencies/org/apache/derby/derby/10.15.2.1/derby-10.15.2.1.jar
313
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)