active_record-pg_reconnect 1.0.0 → 1.0.1

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: 724a5d3da802ef1cc275025e1ddc2b372404f307d325f275de0ea91fdcb06c58
4
- data.tar.gz: 968ad8b0214de70c279a005126dd9926fb99e34e0bc4d339700743108d15ac8a
3
+ metadata.gz: 2fdfb75e8b92c20368774c9ccfa7c993887dc16583b736a400a78272f150394a
4
+ data.tar.gz: 758d80cf23ffdc98b5e27666032b6d3dabbb30bac826a9a9fdb49f9bbf2fa403
5
5
  SHA512:
6
- metadata.gz: 37d390ddfb18e10c072963048964d1fc7d005fce3ff3cd5efbd16fa44cb88cc335cf5386c8ea59ae6c81d797f91104f53f615a731595c33318f854675ff7feb6
7
- data.tar.gz: e011aaa0405f88f26cab4e750d16bee049972c5c3514d9541c70aa997d8f63bb488a6da8cd01caca373d08e6503173d6b331eac398c31e4139e134c6dea89099
6
+ metadata.gz: 787d4802d402003186fe8acd1704580003d9a8c3de0ce67a4adbb01e821740b436a784a9455c4376b2d92cf5dc70ac67fc20173d836d33758194e34916da79d5
7
+ data.tar.gz: a11a7084a5ab13f7494c447e998521cbfc71c2c57a729773ad665127e449434416d1a464c4ab854eb310225d8342868c8f0950e16196cca444c19ecdcfb86781
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module PgReconnect
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
28
28
  reconnect!
29
29
  end
30
30
  send(unsafe_method, *args, &block)
31
- rescue ActiveRecord::StatementInvalid => ex
31
+ rescue ActiveRecord::StatementInvalid, ActiveRecord::ConnectionNotEstablished => ex
32
32
  @reconnection_required = ex.cause.is_a? PG::ConnectionBad
33
33
  raise ex
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record-pg_reconnect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-18 00:00:00.000000000 Z
11
+ date: 2024-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord