pgtk 0.17.3 → 0.17.4
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/typos.yml +1 -1
- data/Gemfile.lock +4 -4
- data/lib/pgtk/pool.rb +10 -2
- data/lib/pgtk/version.rb +1 -1
- data/pgtk.gemspec +1 -1
- data/resources/pom.xml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c88391a71242e30946bd4c1cb06879c4cf83ce1a4ba00e0511c1784e8713e5a
|
4
|
+
data.tar.gz: '08e01c0c7bca206247159c4d672c274c30aa79be9db4c1605d9c8dd395e14bf4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b27a880f60936cfbbdf99c32ab463380a31724b619aa9bd7564b6fe9286075d04759d4fda4203778a84ee2492b15ff5dffea84a2b482d117a4d40edad72f0141
|
7
|
+
data.tar.gz: 770f922faf767f2af485a8433ca29aa8e5c227ed9aca25323eeabf6b718ed77bf6255047c12bb588d8ff31a21f56f8676affb23742069c732dc9803a639177b6
|
data/.github/workflows/typos.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
concurrent-ruby (1.3.5)
|
23
23
|
differ (0.1.2)
|
24
24
|
docile (1.4.1)
|
25
|
-
elapsed (0.0
|
25
|
+
elapsed (0.1.0)
|
26
26
|
loog (> 0)
|
27
27
|
tago (> 0)
|
28
28
|
joined (0.3.0)
|
@@ -64,7 +64,7 @@ GEM
|
|
64
64
|
tago (> 0)
|
65
65
|
regexp_parser (2.10.0)
|
66
66
|
rexml (3.4.1)
|
67
|
-
rubocop (1.
|
67
|
+
rubocop (1.77.0)
|
68
68
|
json (~> 2.3)
|
69
69
|
language_server-protocol (~> 3.17.0.2)
|
70
70
|
lint_roller (~> 1.1.0)
|
@@ -72,10 +72,10 @@ GEM
|
|
72
72
|
parser (>= 3.3.0.2)
|
73
73
|
rainbow (>= 2.2.2, < 4.0)
|
74
74
|
regexp_parser (>= 2.9.3, < 3.0)
|
75
|
-
rubocop-ast (>= 1.45.
|
75
|
+
rubocop-ast (>= 1.45.1, < 2.0)
|
76
76
|
ruby-progressbar (~> 1.7)
|
77
77
|
unicode-display_width (>= 2.4.0, < 4.0)
|
78
|
-
rubocop-ast (1.45.
|
78
|
+
rubocop-ast (1.45.1)
|
79
79
|
parser (>= 3.3.7.2)
|
80
80
|
prism (~> 1.4)
|
81
81
|
rubocop-minitest (0.38.1)
|
data/lib/pgtk/pool.rb
CHANGED
@@ -219,11 +219,19 @@ class Pgtk::Pool
|
|
219
219
|
begin
|
220
220
|
yield conn
|
221
221
|
rescue StandardError => e
|
222
|
-
conn
|
223
|
-
conn = @wire.connection
|
222
|
+
conn = renew(conn)
|
224
223
|
raise e
|
225
224
|
ensure
|
226
225
|
@pool << conn
|
227
226
|
end
|
228
227
|
end
|
228
|
+
|
229
|
+
def renew(conn)
|
230
|
+
begin
|
231
|
+
conn.close unless conn.finished?
|
232
|
+
rescue StandardError => e
|
233
|
+
@log.warn("Failed to close connection: #{e.message}")
|
234
|
+
end
|
235
|
+
@wire.connection
|
236
|
+
end
|
229
237
|
end
|
data/lib/pgtk/version.rb
CHANGED
data/pgtk.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
'connection pool and query processor, to make SQL manipulation simpler.'
|
22
22
|
s.authors = ['Yegor Bugayenko']
|
23
23
|
s.email = 'yegor256@gmail.com'
|
24
|
-
s.homepage = '
|
24
|
+
s.homepage = 'https://github.com/yegor256/pgtk'
|
25
25
|
s.files = `git ls-files`.split($RS)
|
26
26
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
27
27
|
s.rdoc_options = ['--charset=UTF-8']
|
data/resources/pom.xml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pgtk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
@@ -192,7 +192,7 @@ files:
|
|
192
192
|
- test/test_pool.rb
|
193
193
|
- test/test_stash.rb
|
194
194
|
- test/test_wire.rb
|
195
|
-
homepage:
|
195
|
+
homepage: https://github.com/yegor256/pgtk
|
196
196
|
licenses:
|
197
197
|
- MIT
|
198
198
|
metadata:
|