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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '01515238539b7ae3dbbc01c81a744515456f12afc58ba62411d8a425a10bf290'
4
- data.tar.gz: 70206c3f7c691a55d9fb98ef4b7d73ac26826235ce55a2342e475eeffb7cf697
3
+ metadata.gz: 7c88391a71242e30946bd4c1cb06879c4cf83ce1a4ba00e0511c1784e8713e5a
4
+ data.tar.gz: '08e01c0c7bca206247159c4d672c274c30aa79be9db4c1605d9c8dd395e14bf4'
5
5
  SHA512:
6
- metadata.gz: 18b1906041f0d52fba38031f106b3aa7dbc3aa45d09cbecbe1e624fb22bc3979ed411c5b9ac2015c0e8a24b13dec2beab2abbca3c4f7273e64b9f92578a37040
7
- data.tar.gz: 7f3565c23adef339497b26dc38b6ca11e7d7c5e57def09912d97d5366b802b263c0882f9616555bdc0234077422fa6f51bb8f66455bf0b85e58d28e27894e92b
6
+ metadata.gz: b27a880f60936cfbbdf99c32ab463380a31724b619aa9bd7564b6fe9286075d04759d4fda4203778a84ee2492b15ff5dffea84a2b482d117a4d40edad72f0141
7
+ data.tar.gz: 770f922faf767f2af485a8433ca29aa8e5c227ed9aca25323eeabf6b718ed77bf6255047c12bb588d8ff31a21f56f8676affb23742069c732dc9803a639177b6
@@ -16,4 +16,4 @@ jobs:
16
16
  runs-on: ubuntu-24.04
17
17
  steps:
18
18
  - uses: actions/checkout@v4
19
- - uses: crate-ci/typos@v1.33.1
19
+ - uses: crate-ci/typos@v1.34.0
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.1)
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.76.0)
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.0, < 2.0)
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.0)
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.close unless conn.finished?
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
@@ -11,5 +11,5 @@ require_relative '../pgtk'
11
11
  # License:: MIT
12
12
  module Pgtk
13
13
  # Current version of the library.
14
- VERSION = '0.17.3'
14
+ VERSION = '0.17.4'
15
15
  end
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 = 'http://github.com/yegor256/pgtk'
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
@@ -10,7 +10,7 @@
10
10
  <version>0.0.0</version>
11
11
  <packaging>pom</packaging>
12
12
  <properties>
13
- <postgresql.version>42.7.6</postgresql.version>
13
+ <postgresql.version>42.7.7</postgresql.version>
14
14
  <liquibase.version>4.32.0</liquibase.version>
15
15
  </properties>
16
16
  <dependencies>
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.3
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: http://github.com/yegor256/pgtk
195
+ homepage: https://github.com/yegor256/pgtk
196
196
  licenses:
197
197
  - MIT
198
198
  metadata: