active_record_shards 3.3.5 → 3.3.6
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 +4 -4
- data/lib/active_record_shards/shard_selection.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: 07f7aafe3e35b846ad5e4e38dd74b45be9275e26
|
|
4
|
+
data.tar.gz: 9ac01c4f0ba7c7ce10e72ecd204bf01293edddb6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7840ad3d09071733566bf6ebc00838513fa185eba16a7870fac93c8c5249ab050240529a3e8fbe707fff5afbd20b20e3ef5e17ace0db85f72316cd9fbae583e3
|
|
7
|
+
data.tar.gz: 358707304bf8a5663f0360fde544cc24a7d7594314bb6137383ecd7e609169e78b6450696ea8d4305b3d741ff2814266e21ee91e8fb5eae1700669dc821ab944
|
|
@@ -34,7 +34,7 @@ module ActiveRecordShards
|
|
|
34
34
|
|
|
35
35
|
# Tradeoff: An Array is a slower Hash key, but joining its elements into
|
|
36
36
|
# one string would generate 3 new String objects needing GC later.
|
|
37
|
-
key = [the_shard, try_slave, @on_slave]
|
|
37
|
+
key = [ActiveRecordShards.rails_env, the_shard, try_slave, @on_slave]
|
|
38
38
|
|
|
39
39
|
@shard_names ||= {}
|
|
40
40
|
@shard_names[key] ||= begin
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_record_shards
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.3.
|
|
4
|
+
version: 3.3.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mick Staugaard
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2015-02-
|
|
13
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|