activerecord-mysql-reconnect 0.3.1 → 0.3.2
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,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGRjNmI2YTRhZjIwZWRiM2YzNzkxZTM0MmRmNTNkMzBlOWY0YmQwYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTgxMDgyZGVmYzllZjBhY2U0MWZhNzE1NTBkMThjYjQ5NDBhZTg5Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MThkOWVhN2IyNjFkNWE4NmY3NDJiZWU0MzViY2VkZDBjZDM1YjkyMTI1OTcx
|
10
|
+
Y2Q2NWEzMTY0YWYyNjAwZjVlMDg0MTYxMzhiNzViNjcwM2RlOTZhMzJkNTVi
|
11
|
+
YzgxM2FiYzE3OWZmZmQyNjBhNWYzZTMwZDFkODIzMDEzNzgyODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTViZTAyZmQ3YTU2Y2NiZTRlYTk5OTQzMmE1MzhjMDYxYzg3Njg1ODAwZmE1
|
14
|
+
NTY3MWE0NDMyNTk3ZjNkNTQ4M2Q2MjdkYjMzMjVjYzhmZjI1NTUzNjQ0MDY1
|
15
|
+
ZWIzN2Q4MTA0Yjc1YjA1Mjc0ODAzMGI0NTQ4NDJiOGEzNDhmYWQ=
|
@@ -40,6 +40,7 @@ module Activerecord::Mysql::Reconnect
|
|
40
40
|
"Can't connect to MySQL server",
|
41
41
|
'Query execution was interrupted',
|
42
42
|
'Access denied for user',
|
43
|
+
'The MySQL server is running with the --read-only option',
|
43
44
|
]
|
44
45
|
|
45
46
|
HANDLE_ERROR_MESSAGES = HANDLE_R_ERROR_MESSAGES + HANDLE_RW_ERROR_MESSAGES
|
@@ -281,4 +281,14 @@ describe 'activerecord-mysql-reconnect' do
|
|
281
281
|
}.to_not raise_error
|
282
282
|
end
|
283
283
|
end
|
284
|
+
|
285
|
+
it 'read-only=1' do
|
286
|
+
mysql2_error('The MySQL server is running with the --read-only option so it cannot execute this statement:') do
|
287
|
+
expect {
|
288
|
+
expect(Employee.all.length).to eq(300024)
|
289
|
+
mysql_restart
|
290
|
+
expect(Employee.all.length).to eq(300024)
|
291
|
+
}.to_not raise_error
|
292
|
+
end
|
293
|
+
end
|
284
294
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-mysql-reconnect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|