activerecord-turntable 2.0.4 → 2.0.5

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
  SHA1:
3
- metadata.gz: 8069297634d4cb87e81b6f4e06332ce1d5876183
4
- data.tar.gz: bd7470ff554b46af40af99e904add373e3109d46
3
+ metadata.gz: 16165f8a33bac2fc2a458d17e3cdbe26661c5e4e
4
+ data.tar.gz: ae8c155b11f3998b574442e7041503eb0d0c905e
5
5
  SHA512:
6
- metadata.gz: 7ecad4f8c75a561cedb0fca64e859a045b0518b252cc69c63f4ef31e0312570728e2e0adbe99844de53b2a6f93aaebc2918a7680dc3dfc2b29f252a1238fc4c2
7
- data.tar.gz: 1b4d0ab20b846f1abd96fb5f4fd1924829150da9666783f8ecec67f5bf67e521fa422efa31cc5223cffc76f0e96ba152e033190a43f6ec46bd1a0ae725996c63
6
+ metadata.gz: af05b917a26c42a549de736397b4736c729a61cb5baba9986398d00c188175c1d98354b073b08dfbe1051aae5719470e1401f44f2d4228abd8d0214a66c0ac23
7
+ data.tar.gz: b986e37ae2f98b4964bdea08d8358b36c73c8de2756362ae4bedfb6dc84c3fe3b189ce81920f14f2b53d878f80d4dbaea11dd6a5a172fe7b49d8fda11a2b740b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## activerecord-turntable 2.0.5 ##
2
+
3
+ ### Bugfixes
4
+
5
+ * Fix not to destroy other database extension's connection proxy object
6
+
1
7
  ## activerecord-turntable 2.0.4 ##
2
8
 
3
9
  Add dependency: ruby >= 1.9.3 from this release
@@ -13,14 +13,14 @@ module ActiveRecord::Turntable
13
13
  def pool_for_with_turntable(owner)
14
14
  owner_to_pool.fetch(owner.name) {
15
15
  if ancestor_pool = pool_from_any_process_for(owner)
16
- if ancestor_pool.is_a?(ActiveRecord::Turntable::PoolProxy)
17
- # Use same PoolProxy object
18
- owner_to_pool[owner.name] = ancestor_pool
19
- else
16
+ if ancestor_pool.is_a?(ActiveRecord::ConnectionAdapters::ConnectionPool)
20
17
  # A connection was established in an ancestor process that must have
21
18
  # subsequently forked. We can't reuse the connection, but we can copy
22
19
  # the specification and establish a new connection with it.
23
20
  establish_connection owner, ancestor_pool.spec
21
+ else
22
+ # Use same PoolProxy object
23
+ owner_to_pool[owner.name] = ancestor_pool
24
24
  end
25
25
  else
26
26
  owner_to_pool[owner.name] = nil
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Turntable
3
- VERSION = "2.0.4"
3
+ VERSION = "2.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-turntable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - gussan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-19 00:00:00.000000000 Z
12
+ date: 2014-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord