reconnect_ar_rails 0.1.0 → 0.1.1

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: 980e9f3a32e7caa0f4fd49d943ed83ba66fc7bf49141df44d19275d6f3fc7278
4
- data.tar.gz: 75f57afbc1975dd584d184f0130c0849ad7ed21f0a9b31f40501ab7610a501f4
3
+ metadata.gz: 9870179144cceb8bdffb837874cad2a81060952c85ec00f555960280bcb0aa18
4
+ data.tar.gz: cbc01633548285821af39006ec4b45e35781e71d4d30510aa29fd9bcf0d586e3
5
5
  SHA512:
6
- metadata.gz: 3a887f4e300402e0d8bb95810b2674c857e29cd4d30320d75bacffe7a6ce96ef2c3cd493e70f01ab1ce13e8081d42b7f24179a65f4f18735e3c0f18257575ed5
7
- data.tar.gz: e98a9f0860962119be48fe0f270f9d793c165fe4892e78977f83886cf7cd09afcaabbb4489b205291d331bfa809b6b6a4bb2f7634d67b65c513458b4e82d0f55
6
+ metadata.gz: 4bcc270b48dbd50e13d102002abcb691cf1ae9e502f6bf8c3242afb2e49934ae5e07ad02834a944ad68255cb0c11c8b284ad9b5f4d8e36ffa0aaaa14c5fb0b09
7
+ data.tar.gz: 86389d42b766b19807911408c860fe651cd23d0bf333f36dc3428763a2b40708b6cc3399b18e9223b2e792953b1e150c795266a527ee272c33dfd4c5e0067dc9
@@ -0,0 +1,41 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ reconnect_ar_rails (0.1.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activemodel (5.2.2)
10
+ activesupport (= 5.2.2)
11
+ activerecord (5.2.2)
12
+ activemodel (= 5.2.2)
13
+ activesupport (= 5.2.2)
14
+ arel (>= 9.0)
15
+ activesupport (5.2.2)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 0.7, < 2)
18
+ minitest (~> 5.1)
19
+ tzinfo (~> 1.1)
20
+ arel (9.0.0)
21
+ concurrent-ruby (1.1.4)
22
+ i18n (1.2.0)
23
+ concurrent-ruby (~> 1.0)
24
+ minitest (5.11.3)
25
+ rake (10.5.0)
26
+ thread_safe (0.3.6)
27
+ tzinfo (1.2.5)
28
+ thread_safe (~> 0.1)
29
+
30
+ PLATFORMS
31
+ ruby
32
+
33
+ DEPENDENCIES
34
+ activerecord (~> 5.0)
35
+ bundler (~> 1.17)
36
+ minitest (~> 5.0)
37
+ rake (~> 10.0)
38
+ reconnect_ar_rails!
39
+
40
+ BUNDLED WITH
41
+ 1.17.2
@@ -9,7 +9,7 @@ module ReconnectArRails
9
9
  @app.call(env)
10
10
  rescue => e
11
11
  if e.message.match(/--read-only/)
12
- ActiveRecord::Base.connection.disconnect!
12
+ ActiveRecord::Base.clear_all_connections!
13
13
  end
14
14
  raise e
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module ReconnectArRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reconnect_ar_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harutaka Nago
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-18 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,6 +76,7 @@ files:
76
76
  - ".gitignore"
77
77
  - ".travis.yml"
78
78
  - Gemfile
79
+ - Gemfile.lock
79
80
  - LICENSE.txt
80
81
  - README.md
81
82
  - Rakefile