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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4685600c17b38021c0601061601098ee26dd330684fd60bfb16bc40e41248a7
4
- data.tar.gz: 1afec8f57736de6fd69c005fbfd4eb8bb513f0dab58bbe775fc6b8ea1103ad30
3
+ metadata.gz: 3d357ad8613bcbea31498900f8e1d97b5d21bfc1b8259372268e456bdaad77a2
4
+ data.tar.gz: 1c0d9c52923910fbacb3c94549174db6681fbd9f5184ba455f300341fa204142
5
5
  SHA512:
6
- metadata.gz: 240eae47a63fec982f10f381bf561b427ecbebb8b1ce744cdf364854b8660130c0d71491cb613e2f0f477a6bfab3b343593a1381ffbb826cccfa3533a09f6a8d
7
- data.tar.gz: 7b54a60c3c822fd85c774220964d80f576f6749ddf8821d033dab35655ccc65804ade2e5679604bc24fe2c8bf449d9da05da05eb216eb4057739f9c626b99888
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
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-04-18 00:00:00.000000000 Z
13
+ date: 2018-05-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord