switchman 1.9.7 → 1.9.8

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
  SHA1:
3
- metadata.gz: 5cb122072743392c94ee7f184136a0a54710618d
4
- data.tar.gz: edd7dac621e1abb34fde5f727d55943789d79076
3
+ metadata.gz: 8b4460b9eec1a0ed73fcfa4b7ac97f96347d9777
4
+ data.tar.gz: 50f3fe16b1cd257ca95625e8deae16bef4a8fc26
5
5
  SHA512:
6
- metadata.gz: a64792365604ca68c6a7aa162ab073ec8820e3aa9944bb101e681fb5bd9b25caa29a4b207b0df283274e57b853315db2979981cf5f9f08ec43d0c1f1ffc86cd6
7
- data.tar.gz: b4e6287a9bc2ea138aa4de7705c87a602c7dc8646d69791e149dba5b54855235b2ddda355544e1b26fdc76f96be37cf1b2fbe9a88b7b8f0025600c6594f25089
6
+ metadata.gz: efbe63e6d3c157c180c031f274a2b13e9c2034b56242dcd8c7b81aa37c99037f24fe8412556fb80bf5e85e2d378661b8954827f41f534fe55bff8da0660e376d
7
+ data.tar.gz: 182383aea02d23c5c80dd80d6673c55e14f3530d67be70a8046d160586b0bf92395217c7eccfd657e0540f701c167be26b6b1e8d6a0d2efd268ead17c176536c
@@ -347,8 +347,7 @@ module Switchman
347
347
  previous_shard = nil
348
348
  close_connections_if_needed = lambda do |shard|
349
349
  # prune the prior connection unless it happened to be the same
350
- if previous_shard && shard != previous_shard &&
351
- (shard.database_server != previous_shard.database_server || !previous_shard.database_server.shareable?)
350
+ if previous_shard && shard != previous_shard && !previous_shard.database_server.shareable?
352
351
  previous_shard.activate do
353
352
  ::Shackles.activated_environments.each do |env|
354
353
  ::Shackles.activate(env) do
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.9.7"
2
+ VERSION = "1.9.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.7
4
+ version: 1.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-03-23 00:00:00.000000000 Z
13
+ date: 2017-04-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  version: '0'
244
244
  requirements: []
245
245
  rubyforge_project:
246
- rubygems_version: 2.6.11
246
+ rubygems_version: 2.6.10
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: Rails 4 sharding magic