active_record_shards 3.4.0 → 3.4.1
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/tasks.rb +6 -6
- 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: ee667367bf55f7e07b7ba123e4b05afd84b19a13
|
|
4
|
+
data.tar.gz: 77cfd8df64de241766065ce63cc354fbe9091b23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1608ad7482a1e9eb6311023929818a23784b7aa0a1e56bdadb04d274561b0c9abf0c8f5eb6c9540f7b7649507ae2857c17bbdb591ba1ce7b7159c7bfa2fc893f
|
|
7
|
+
data.tar.gz: b5847bfe5fd0864923a235cbd225cd91a9083e88cc5f1bc1a3a7a6458e5fcc819b6914d3efb7cc780d98351d6c03222b62815a12929ea7d0150a32aabe3e30ca
|
|
@@ -22,9 +22,9 @@ namespace :db do
|
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
task :reset => :load_config do
|
|
26
|
-
Rake
|
|
27
|
-
Rake
|
|
25
|
+
task :reset => :load_config do |t|
|
|
26
|
+
Rake.application.lookup('db:drop', t.scope).invoke rescue nil
|
|
27
|
+
Rake.application.lookup('db:setup', t.scope).invoke
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
desc "Create the database defined in config/database.yml for the current RAILS_ENV including shards"
|
|
@@ -70,12 +70,12 @@ namespace :db do
|
|
|
70
70
|
|
|
71
71
|
namespace :test do
|
|
72
72
|
desc 'Purges the test databases by dropping and creating'
|
|
73
|
-
task :purge => :load_config do
|
|
73
|
+
task :purge => :load_config do |t|
|
|
74
74
|
begin
|
|
75
75
|
saved_env = Rails.env
|
|
76
76
|
Rails.env = 'test'
|
|
77
|
-
Rake
|
|
78
|
-
Rake
|
|
77
|
+
Rake.application.lookup('db:drop', t.scope).execute
|
|
78
|
+
Rake.application.lookup('db:create', t.scope).execute
|
|
79
79
|
ensure
|
|
80
80
|
Rails.env = saved_env
|
|
81
81
|
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.4.
|
|
4
|
+
version: 3.4.1
|
|
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-03-
|
|
13
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|