switchman 1.7.1 → 1.7.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d72b1984f5956d997eafbbd3aa191bc91d42100c
4
- data.tar.gz: 81ec536b5d51265bb3a2cc6221ad47ca7d8ecf80
3
+ metadata.gz: 5cbebb58633ecf7d7de5aee0392cfcc1a4f878ce
4
+ data.tar.gz: 0960e8a987a8f278450a25112287feac197560fe
5
5
  SHA512:
6
- metadata.gz: 71431fb85dfa5f85d6d4b6237c7073d29820fb380e21f1f195a0c95725242d996011c45a69ad0549e6dee3ad71bfe20df59150fda948ca0a245a07a0a1535bda
7
- data.tar.gz: a9f72d4d408bdbf4d8520a5266d5778c9ff0f635c6e5254c29f0ba5835d471c7ac5b6bb87822b0290814b99c4a87d7704f232d044ffa2985765dd653ca0ddf94
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!(default: @default) if active_shards.empty?
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
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
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.7.1
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-10 00:00:00.000000000 Z
13
+ date: 2016-10-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties