switchman 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/switchman/shard_internal.rb +6 -1
- data/lib/switchman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cbebb58633ecf7d7de5aee0392cfcc1a4f878ce
|
4
|
+
data.tar.gz: 0960e8a987a8f278450a25112287feac197560fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b4229a603a2276b36d20ccaf4c5ccd8517692ccc2afb8d7097222cc8bdccbc6a4de2c39fce95ece6f440b93c3a0124d27eaa10926d0ead5d0f564db82c586e9
|
7
|
+
data.tar.gz: adad3ed4f5ca5fef5152f2a3aadb6004df803a7b1697820409d11b79a9cb50739412f7e86fe23739ad68006b18eaab1e921183b68c34ea236f5283056dd9c664
|
@@ -66,7 +66,12 @@ module Switchman
|
|
66
66
|
[category, shard]
|
67
67
|
end.to_h)
|
68
68
|
|
69
|
-
activate!(
|
69
|
+
activate!(primary: @default) if active_shards.empty?
|
70
|
+
|
71
|
+
# make sure this is not erroneously cached
|
72
|
+
if @default.database_server.instance_variable_defined?(:@primary_shard)
|
73
|
+
@default.database_server.remove_instance_variable(:@primary_shard)
|
74
|
+
end
|
70
75
|
end
|
71
76
|
@default
|
72
77
|
end
|
data/lib/switchman/version.rb
CHANGED
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.7.
|
4
|
+
version: 1.7.2
|
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: 2016-10-
|
13
|
+
date: 2016-10-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|