fluent-plugin-pgjson 1.0.0 → 1.0.1
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/.travis.yml +2 -2
- data/fluent-plugin-pgjson.gemspec +1 -1
- data/lib/fluent/plugin/out_pgjson.rb +6 -0
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb3799124226f80cb140cca512a0a09ec442b2cc4004a589f456bc0a1129bb68
|
|
4
|
+
data.tar.gz: 93d61f535fba84b6f476f8a0b6b471fd5d2c53076ec65aa9464c97164e37f4aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: defaa3ee2680a7927e36f4bb0b52013ee296ae31da2cc554a6688802c3d809bc6495914bc0f7f2c01040f972f962fa68d42b81610d873638be55f695be0f0364
|
|
7
|
+
data.tar.gz: f733dd18d69b42b4d2bdd5aba65c071b0200e6ec5b64cb7022e30ce45b083630a19454a52b54d8838cd81a9569375037ac501a1a2b938701dd7d29f79849df30
|
data/.travis.yml
CHANGED
|
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "fluent-plugin-pgjson"
|
|
5
|
-
s.version = "1.0.
|
|
5
|
+
s.version = "1.0.1"
|
|
6
6
|
s.authors = ["OKUNO Akihiro"]
|
|
7
7
|
s.email = ["choplin.choplin@gmail.com"]
|
|
8
8
|
s.homepage = "https://github.com/fluent-plugins-nursery/fluent-plugin-pgjson"
|
|
@@ -94,10 +94,16 @@ module Fluent::Plugin
|
|
|
94
94
|
errmsg = "%s while copy data: %s" % [ err.class.name, err.message ]
|
|
95
95
|
@conn.put_copy_end( errmsg )
|
|
96
96
|
@conn.get_result
|
|
97
|
+
@conn.close()
|
|
98
|
+
@conn = nil
|
|
97
99
|
raise
|
|
98
100
|
else
|
|
99
101
|
@conn.put_copy_end
|
|
100
102
|
res = @conn.get_result
|
|
103
|
+
if res.result_status!=PG::PGRES_COMMAND_OK
|
|
104
|
+
@conn.close()
|
|
105
|
+
@conn = nil
|
|
106
|
+
end
|
|
101
107
|
raise res.result_error_message if res.result_status!=PG::PGRES_COMMAND_OK
|
|
102
108
|
end
|
|
103
109
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-pgjson
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OKUNO Akihiro
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-07-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fluentd
|
|
@@ -109,9 +109,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '0'
|
|
111
111
|
requirements: []
|
|
112
|
-
|
|
113
|
-
rubygems_version: 2.7.6
|
|
112
|
+
rubygems_version: 3.0.3
|
|
114
113
|
signing_key:
|
|
115
114
|
specification_version: 4
|
|
116
115
|
summary: Fluentd Output Plugin for PostgreSQL JSON Type.
|
|
117
|
-
test_files:
|
|
116
|
+
test_files:
|
|
117
|
+
- test/helper.rb
|
|
118
|
+
- test/plugin/test_out.rb
|