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 +4 -4
- data/lib/active_record/pg_reconnect/version.rb +1 -1
- data/lib/active_record/pg_reconnect.rb +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: 2fdfb75e8b92c20368774c9ccfa7c993887dc16583b736a400a78272f150394a
|
4
|
+
data.tar.gz: 758d80cf23ffdc98b5e27666032b6d3dabbb30bac826a9a9fdb49f9bbf2fa403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 787d4802d402003186fe8acd1704580003d9a8c3de0ce67a4adbb01e821740b436a784a9455c4376b2d92cf5dc70ac67fc20173d836d33758194e34916da79d5
|
7
|
+
data.tar.gz: a11a7084a5ab13f7494c447e998521cbfc71c2c57a729773ad665127e449434416d1a464c4ab854eb310225d8342868c8f0950e16196cca444c19ecdcfb86781
|
@@ -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.
|
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:
|
11
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|