fresh_connection 3.1.1 → 3.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d08b4af45ac4be67687ada9bb4b625b8cbba3cf8c91c4a949683513412f2530d
|
4
|
+
data.tar.gz: 3935f4c10df73bda3f24118ce3c61d0baabeb7cb723e610cab6bc502feb6ddc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab0812a77f069b51221835fc7c6aa35768bbf3486bbb5a07a2f6585399690c16be58e7c158254db0f513535ede4055ce00db1afe8f486401bddf7025f08e6783
|
7
|
+
data.tar.gz: 1288550ff29486fd6730fb36aa1face8d227e0de1f4c201a736e24ab03d1b50c5ac71524aa4beec7349b12e76c540b7b4dc0ac4f799d158f414ba8443dbaed5f
|
data/.travis.yml
CHANGED
@@ -6,9 +6,9 @@ before_install:
|
|
6
6
|
- gem update --system
|
7
7
|
- gem --version
|
8
8
|
rvm:
|
9
|
-
- 2.6.
|
10
|
-
- 2.7.
|
11
|
-
- 3.0.
|
9
|
+
- 2.6.9
|
10
|
+
- 2.7.5
|
11
|
+
- 3.0.3
|
12
12
|
gemfile:
|
13
13
|
- gemfiles/rails52.gemfile
|
14
14
|
- gemfiles/rails60.gemfile
|
@@ -17,4 +17,8 @@ script:
|
|
17
17
|
- "bin/test"
|
18
18
|
matrix:
|
19
19
|
fast_finish: true
|
20
|
+
exclude:
|
21
|
+
- rvm: 3.0.3
|
22
|
+
gemfile: gemfiles/rails52.gemfile
|
23
|
+
|
20
24
|
bundler_args: --jobs 3 --retry 3
|
@@ -61,7 +61,11 @@ module FreshConnection
|
|
61
61
|
|
62
62
|
def catch_exceptions
|
63
63
|
return @catch_exceptions if defined?(@catch_exceptions)
|
64
|
-
@catch_exceptions = [
|
64
|
+
@catch_exceptions = [
|
65
|
+
ActiveRecord::StatementInvalid,
|
66
|
+
ActiveRecord::ConnectionNotEstablished
|
67
|
+
]
|
68
|
+
|
65
69
|
@catch_exceptions << ::Mysql2::Error if defined?(::Mysql2)
|
66
70
|
|
67
71
|
if defined?(::PG)
|
@@ -3,15 +3,15 @@
|
|
3
3
|
module FreshConnection
|
4
4
|
module Extend
|
5
5
|
module ArRelation
|
6
|
-
def calculate(*
|
6
|
+
def calculate(*)
|
7
7
|
manage_access { super }
|
8
8
|
end
|
9
9
|
|
10
|
-
def exists?(*
|
10
|
+
def exists?(*)
|
11
11
|
manage_access { super }
|
12
12
|
end
|
13
13
|
|
14
|
-
def pluck(*
|
14
|
+
def pluck(*)
|
15
15
|
manage_access { super }
|
16
16
|
end
|
17
17
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fresh_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tsukasa OISHI
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -183,7 +183,7 @@ homepage: https://github.com/tsukasaoishi/fresh_connection
|
|
183
183
|
licenses:
|
184
184
|
- MIT
|
185
185
|
metadata: {}
|
186
|
-
post_install_message:
|
186
|
+
post_install_message:
|
187
187
|
rdoc_options: []
|
188
188
|
require_paths:
|
189
189
|
- lib
|
@@ -198,8 +198,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
- !ruby/object:Gem::Version
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
|
-
rubygems_version: 3.
|
202
|
-
signing_key:
|
201
|
+
rubygems_version: 3.4.1
|
202
|
+
signing_key:
|
203
203
|
specification_version: 4
|
204
204
|
summary: FreshConnection supports connections with configured replica servers.
|
205
205
|
test_files: []
|