active_record_shards 3.11.4 → 3.11.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record_shards/connection_switcher.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d357ad8613bcbea31498900f8e1d97b5d21bfc1b8259372268e456bdaad77a2
|
4
|
+
data.tar.gz: 1c0d9c52923910fbacb3c94549174db6681fbd9f5184ba455f300341fa204142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8c1b2faa6c40c7f447d32a72240958d4098bc95b52150083009d38d65fd1e99488d77604eba4ae4b8d26bbd61ff9ddf264391aacec5b466e53dc1f79f33e523
|
7
|
+
data.tar.gz: c68d21caf7452690ed7107e7ee7f2650d33f6facc794396249e3ad9e14a75f1cb0a936b6bfb0f2e75b3082ca7ad57d172a139052f72a6de2e098e60405831b9e
|
@@ -139,7 +139,7 @@ module ActiveRecordShards
|
|
139
139
|
|
140
140
|
def shard_names
|
141
141
|
unless config = configurations[shard_env]
|
142
|
-
raise "Did not find #{shard_env} in configurations, did you forget to add it to your database config? (configurations: #{configurations.inspect})"
|
142
|
+
raise "Did not find #{shard_env} in configurations, did you forget to add it to your database config? (configurations: #{configurations.keys.inspect})"
|
143
143
|
end
|
144
144
|
unless config.fetch(SHARD_NAMES_CONFIG_KEY, []).all? { |shard_name| shard_name.is_a?(Integer) }
|
145
145
|
raise "All shard names must be integers: #{config[SHARD_NAMES_CONFIG_KEY].inspect}."
|
@@ -157,7 +157,7 @@ module ActiveRecordShards
|
|
157
157
|
|
158
158
|
if options.key?(:shard)
|
159
159
|
unless configurations[shard_env]
|
160
|
-
raise "Did not find #{shard_env} in configurations, did you forget to add it to your database config? (configurations: #{configurations.inspect})"
|
160
|
+
raise "Did not find #{shard_env} in configurations, did you forget to add it to your database config? (configurations: #{configurations.keys.inspect})"
|
161
161
|
end
|
162
162
|
current_shard_selection.shard = options[:shard]
|
163
163
|
end
|
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.11.
|
4
|
+
version: 3.11.5
|
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: 2018-
|
13
|
+
date: 2018-05-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|