activerecord-turntable 2.2.0 → 2.2.1

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
  SHA1:
3
- metadata.gz: 8b5ef39b2f1a9eaa4b861f4e7ac57aabc2fffa21
4
- data.tar.gz: 9cf6ae9ab38f0ebc8268a63fe188ed354b14deb5
3
+ metadata.gz: ea91bc7aa32c2c1c0a017d9c0a812ee2f312ee8c
4
+ data.tar.gz: 6d0ee905e11f4782330039b0074d6b84cfc7487d
5
5
  SHA512:
6
- metadata.gz: 26b6729a9cfe48c15982a3c23b748a2cc23746a79a16cc6a522f9e84dab6095ad156b7d193d9c324c5a76b4ccdcbd5b295ef95ff306dbf396819bfee6d473502
7
- data.tar.gz: b96d8f0a07f38f527e6298c48fa7017fb6ffb3596c78410f4a0b0ebb57c1c29446aec04b27d98ccc5c1a34aaa9f464460c6a87c58eb687f18690d679996896f0
6
+ metadata.gz: a3aab0f4a1895b16257f3eb7c7c8f93524270395a8d3c03bab09b7b6055c820ab295e4fa992e44ee7ff9d0a7face7a8f56f8e147e6f203c9e0cbadd4725001e0
7
+ data.tar.gz: 2053ab8dd31a1e2e9a5564ced8c19299c6f0875e87ba0ea61264b6b3576c25ec3828837232f9e2292ad1aa65979cd9034b44932ea03ba9a134536ba5f53328ae
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## activerecord-turntable 2.2.1 ##
2
+
3
+ ### Bugfix
4
+
5
+ * Fixes #30 undefined local variable with `db:structure:(dump|load)`
6
+
1
7
  ## activerecord-turntable 2.2.0 ##
2
8
 
3
9
  ### Features
@@ -78,7 +78,7 @@ db_namespace = namespace :db do
78
78
  task :dump do
79
79
  current_config = ActiveRecord::Tasks::DatabaseTasks.current_config
80
80
  shard_configs = current_config["shards"]
81
- shard_configs.merge!(config["seq"]) if config["seq"]
81
+ shard_configs.merge!(config["seq"]) if current_config["seq"]
82
82
  if shard_configs
83
83
  shard_configs.each do |name, config|
84
84
  next unless config["database"]
@@ -101,7 +101,7 @@ db_namespace = namespace :db do
101
101
  task :load do
102
102
  current_config = ActiveRecord::Tasks::DatabaseTasks.current_config
103
103
  shard_configs = current_config["shards"]
104
- shard_configs.merge!(config["seq"]) if config["seq"]
104
+ shard_configs.merge!(config["seq"]) if current_config["seq"]
105
105
  if shard_configs
106
106
  shard_configs.each do |name, config|
107
107
  next unless config["database"]
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Turntable
3
- VERSION = "2.2.0"
3
+ VERSION = "2.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-turntable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gussan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-29 00:00:00.000000000 Z
12
+ date: 2015-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord