multiverse 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/multiverse/railtie.rb +8 -0
- data/lib/multiverse/version.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: 4eea234fa322f20367a744c695ef78e2bbfa2ebf
|
4
|
+
data.tar.gz: 76c3dae97ada18e90a1b65cdfc6ed0a5cfd86444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b33ae3a1ba4916c3fb3a43b6f4318e90f253ddcfab2303ad8d184d7e9a192dfcd0e8bbd24138b66c994f76cb97b5aa39a57c2abb78cc346a3e38d17e3d457f4
|
7
|
+
data.tar.gz: 8ccdc35fa5cc7d4f618923e0d80a1f1194b221bc853bd07b208419ba1db82d8d0b38f7c3df5455fdcd543c35f3db62c6d15d94591062a2e46cfbcde8ac7ed2a5
|
data/CHANGELOG.md
CHANGED
data/lib/multiverse/railtie.rb
CHANGED
@@ -15,6 +15,7 @@ module Multiverse
|
|
15
15
|
task :load_config do
|
16
16
|
ActiveRecord::Tasks::DatabaseTasks.migrations_paths = [Multiverse.migrate_path]
|
17
17
|
ActiveRecord::Tasks::DatabaseTasks.db_dir = [Multiverse.db_dir]
|
18
|
+
Rails.application.paths["db/seeds.rb"] = ["#{Multiverse.db_dir}/seeds.rb"]
|
18
19
|
end
|
19
20
|
|
20
21
|
namespace :test do
|
@@ -44,9 +45,16 @@ module Multiverse
|
|
44
45
|
task :load_config do
|
45
46
|
ActiveRecord::Base.establish_connection(Multiverse.record_class.connection_config)
|
46
47
|
end
|
48
|
+
|
49
|
+
task :override_config do
|
50
|
+
ActiveRecord::Tasks::DatabaseTasks.current_config = ActiveRecord::Base.configurations[Multiverse.env(ActiveRecord::Tasks::DatabaseTasks.env)]
|
51
|
+
end
|
47
52
|
end
|
48
53
|
|
49
54
|
Rake::Task["db:migrate:status"].enhance ["multiverse:load_config"]
|
55
|
+
Rake::Task["db:structure:dump"].enhance ["multiverse:load_config", "multiverse:override_config"]
|
56
|
+
Rake::Task["db:schema:cache:dump"].enhance ["multiverse:load_config"]
|
57
|
+
Rake::Task["db:version"].enhance ["multiverse:load_config"]
|
50
58
|
end
|
51
59
|
end
|
52
60
|
end
|
data/lib/multiverse/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiverse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|