rails-pg-adapter 0.1.3 → 0.1.4

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: '0922aa74310b9970afc80440e44af2cda8412588f10997b64c1f059dc87c1f44'
4
- data.tar.gz: 890a5148ac39ce80bb3a5d8c0c9c7547d6f71fbf6b5ad28c9412f3fe4f7e50f2
3
+ metadata.gz: 648d36ac2c7b9990f850dc54483824206aba63db49dc17d9379c49ce5ec88e1d
4
+ data.tar.gz: bd0dd4cfd41cc749eb797d95da5d1f8261c586f04da5608068220694cbfdbbc6
5
5
  SHA512:
6
- metadata.gz: 8b0547c9f969da901988e9d27ec317d319903d9c01ea8d543ff8ba4fe174f307ea427e44878e4c4c70c15ed232d805f48fbd93a94ea06402e07b017ba88b1125
7
- data.tar.gz: 3906ce61975f0477b396b32c150c81f075c239094b055a92318d82460a053140ecdd1794916fe1940ea13d2b8ac95f37e7bb5242fff61c73a1d2d3220a32c2e9
6
+ metadata.gz: 41c0930afcf109ae0402e36ade421227f3b245358a06ccb79a46bf5da0c5749623b996d401fcf60fe6b00d1ad79a3ed72ffdfc21aaa30f9a5b994536884aef2a
7
+ data.tar.gz: c96c0592c584ce6c3555bf87a880dcea495830f2b3deb1fcf03bc87f036a5b3b46afe00a8395c8b39757b0f7db159975562cd586cbe60c8ec02635103d4e03c4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [0.1.3] - 2023-04-04
2
2
 
3
+ - Rescue and recover from `ActiveRecord::ConnectionNotEstablished`
4
+
5
+ ## [0.1.3] - 2023-04-04
6
+
3
7
  - Bug fix: Always prepend the patch on boot to avoid issues with loading the monkey patch on some Rails installations
4
8
 
5
9
  ## [0.1.2] - 2023-03-29
@@ -22,13 +22,13 @@ module RailsPgAdapter
22
22
 
23
23
  def exec_cache(*args)
24
24
  super(*args)
25
- rescue ::ActiveRecord::StatementInvalid => e
25
+ rescue ::ActiveRecord::StatementInvalid, ::ActiveRecord::ConnectionNotEstablished => e
26
26
  handle_error(e) || raise
27
27
  end
28
28
 
29
29
  def exec_no_cache(*args)
30
30
  super(*args)
31
- rescue ::ActiveRecord::StatementInvalid => e
31
+ rescue ::ActiveRecord::StatementInvalid, ::ActiveRecord::ConnectionNotEstablished => e
32
32
  handle_error(e) || raise
33
33
  end
34
34
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsPgAdapter
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-pg-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tines Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2023-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails