fluent-plugin-sql 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/linux-ruby-head.yml +1 -1
- data/.github/workflows/linux.yml +2 -2
- data/ChangeLog +6 -0
- data/VERSION +1 -1
- data/fluent-plugin-sql.gemspec +2 -1
- data/lib/fluent/plugin/out_sql.rb +2 -2
- metadata +32 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d90c196fbc84a7921ba99ea09cdc7aef2c564b4c19799cc1bcce9973e1f391e
|
|
4
|
+
data.tar.gz: 358dbde32a842e26b2ff9e34a11acff25790624dec8ae1e4689aaa8488d179de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cbe495ae7aab0133427155b1a136f8a499b9b0924305bf24807c0f2950f2a84b7a3d0657093375e682be37d2d81f96b503e77635c7ddb24f51a5abb40914a51
|
|
7
|
+
data.tar.gz: 9b856ce7892a9d9f2fd35d36137eca67508d129194043516e976f5497518da251604c35cba15d483386d0879bb073e2fe9fd1d96a0e027dcbe66fb5fd2a78b7d
|
|
@@ -30,7 +30,7 @@ jobs:
|
|
|
30
30
|
--health-retries 5
|
|
31
31
|
name: Ruby ${{ matrix.ruby }} with PostgreSQL ${{ matrix.postgres }} unit testing on ${{ matrix.os }}
|
|
32
32
|
steps:
|
|
33
|
-
- uses: actions/checkout@
|
|
33
|
+
- uses: actions/checkout@v6
|
|
34
34
|
- uses: ruby/setup-ruby@v1
|
|
35
35
|
with:
|
|
36
36
|
ruby-version: ${{ matrix.ruby }}
|
data/.github/workflows/linux.yml
CHANGED
|
@@ -11,7 +11,7 @@ jobs:
|
|
|
11
11
|
strategy:
|
|
12
12
|
fail-fast: false
|
|
13
13
|
matrix:
|
|
14
|
-
ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7' ]
|
|
14
|
+
ruby: [ '4.0', '3.4', '3.3', '3.2', '3.1', '3.0', '2.7' ]
|
|
15
15
|
postgres: [ '16', '15', '14', '13', '12' ]
|
|
16
16
|
os:
|
|
17
17
|
- ubuntu-latest
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
--health-retries 5
|
|
32
32
|
name: Ruby ${{ matrix.ruby }} with PostgreSQL ${{ matrix.postgres }} unit testing on ${{ matrix.os }}
|
|
33
33
|
steps:
|
|
34
|
-
- uses: actions/checkout@
|
|
34
|
+
- uses: actions/checkout@v6
|
|
35
35
|
- uses: ruby/setup-ruby@v1
|
|
36
36
|
with:
|
|
37
37
|
ruby-version: ${{ matrix.ruby }}
|
data/ChangeLog
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
Release 2.3.2 - 2026/01/13
|
|
2
|
+
|
|
3
|
+
* out_sql: Use isolated connection configurations in the output plugin (#152)
|
|
4
|
+
* gem: Add ostruct as dependency for Ruby 4.0 (#159)
|
|
5
|
+
* gem: Relax required activesupport version to accept latest one (#161, #148)
|
|
6
|
+
|
|
1
7
|
Release 2.3.1 - 2024/02/29
|
|
2
8
|
|
|
3
9
|
* in_sql: Fix incompatibility against Ruby 3.2
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.3.
|
|
1
|
+
2.3.2
|
data/fluent-plugin-sql.gemspec
CHANGED
|
@@ -17,7 +17,8 @@ Gem::Specification.new do |gem|
|
|
|
17
17
|
gem.license = "Apache-2.0"
|
|
18
18
|
|
|
19
19
|
gem.add_dependency "fluentd", [">= 1.7.0", "< 2"]
|
|
20
|
-
gem.add_dependency
|
|
20
|
+
gem.add_dependency "ostruct", '~> 0.6'
|
|
21
|
+
gem.add_dependency 'activerecord', [">= 6.1", "< 8.2"]
|
|
21
22
|
gem.add_dependency 'activerecord-import', "~> 1.0"
|
|
22
23
|
gem.add_development_dependency "rake", ">= 0.9.2"
|
|
23
24
|
gem.add_development_dependency "test-unit", "> 3.1.0"
|
|
@@ -206,7 +206,7 @@ module Fluent::Plugin
|
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
SQLOutput.const_set("BaseModel_#{rand(1 << 31)}", @base_model)
|
|
209
|
-
|
|
209
|
+
@base_model.establish_connection(config)
|
|
210
210
|
|
|
211
211
|
# ignore tables if TableElement#init failed
|
|
212
212
|
@tables.reject! do |te|
|
|
@@ -224,7 +224,7 @@ module Fluent::Plugin
|
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
def write(chunk)
|
|
227
|
-
|
|
227
|
+
@base_model.connection_pool.with_connection do
|
|
228
228
|
|
|
229
229
|
@tables.each { |table|
|
|
230
230
|
tag = format_tag(chunk.metadata.tag)
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-sql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sadayuki Furuhashi
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: fluentd
|
|
@@ -31,19 +30,39 @@ dependencies:
|
|
|
31
30
|
- !ruby/object:Gem::Version
|
|
32
31
|
version: '2'
|
|
33
32
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
33
|
+
name: ostruct
|
|
35
34
|
requirement: !ruby/object:Gem::Requirement
|
|
36
35
|
requirements:
|
|
37
36
|
- - "~>"
|
|
38
37
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '6
|
|
38
|
+
version: '0.6'
|
|
40
39
|
type: :runtime
|
|
41
40
|
prerelease: false
|
|
42
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
42
|
requirements:
|
|
44
43
|
- - "~>"
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0.6'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: activerecord
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
requirements:
|
|
50
|
+
- - ">="
|
|
45
51
|
- !ruby/object:Gem::Version
|
|
46
52
|
version: '6.1'
|
|
53
|
+
- - "<"
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '8.2'
|
|
56
|
+
type: :runtime
|
|
57
|
+
prerelease: false
|
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - ">="
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '6.1'
|
|
63
|
+
- - "<"
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '8.2'
|
|
47
66
|
- !ruby/object:Gem::Dependency
|
|
48
67
|
name: activerecord-import
|
|
49
68
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -157,7 +176,6 @@ homepage: https://github.com/fluent/fluent-plugin-sql
|
|
|
157
176
|
licenses:
|
|
158
177
|
- Apache-2.0
|
|
159
178
|
metadata: {}
|
|
160
|
-
post_install_message:
|
|
161
179
|
rdoc_options: []
|
|
162
180
|
require_paths:
|
|
163
181
|
- lib
|
|
@@ -172,8 +190,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
172
190
|
- !ruby/object:Gem::Version
|
|
173
191
|
version: '0'
|
|
174
192
|
requirements: []
|
|
175
|
-
rubygems_version: 3.
|
|
176
|
-
signing_key:
|
|
193
|
+
rubygems_version: 3.6.9
|
|
177
194
|
specification_version: 4
|
|
178
195
|
summary: SQL input/output plugin for Fluentd event collector
|
|
179
|
-
test_files:
|
|
196
|
+
test_files:
|
|
197
|
+
- test/fixtures/schema.rb
|
|
198
|
+
- test/helper.rb
|
|
199
|
+
- test/plugin/test_in_sql.rb
|
|
200
|
+
- test/plugin/test_in_sql_with_custom_time.rb
|
|
201
|
+
- test/plugin/test_in_sql_with_state_file.rb
|
|
202
|
+
- test/plugin/test_out_sql.rb
|