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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f2d6e6b3dc37ba5f8eb59d778859d02fd14a49b
4
- data.tar.gz: ee95ccdba100fd85db6e5fd80100198fac6dc09f
3
+ metadata.gz: 4eea234fa322f20367a744c695ef78e2bbfa2ebf
4
+ data.tar.gz: 76c3dae97ada18e90a1b65cdfc6ed0a5cfd86444
5
5
  SHA512:
6
- metadata.gz: 4ec011fbd04b4c5666b1d0eb1911f1738d6a69b5e9a7fd5b3281fe581e92435bc23240c8cc642ec2b49722a21d50895fd212074e4e268f75b9e5ecd35e91e2d8
7
- data.tar.gz: cea5ba6f7890fdbba5f539a813cee1e9685e1bb6a33ece0fdf11afaf8510f39127bd6ef34309525d32d8dd0910f1065129ec9a0c80915ba89d3fc6be53cc0876
6
+ metadata.gz: 4b33ae3a1ba4916c3fb3a43b6f4318e90f253ddcfab2303ad8d184d7e9a192dfcd0e8bbd24138b66c994f76cb97b5aa39a57c2abb78cc346a3e38d17e3d457f4
7
+ data.tar.gz: 8ccdc35fa5cc7d4f618923e0d80a1f1194b221bc853bd07b208419ba1db82d8d0b38f7c3df5455fdcd543c35f3db62c6d15d94591062a2e46cfbcde8ac7ed2a5
@@ -1,3 +1,10 @@
1
+ ## 0.1.2
2
+
3
+ - Fixed `db:structure:dump` when DB specified
4
+ - Fixed `db:schema:cache:dump` when DB specified
5
+ - Fixed `db:version` when DB specified
6
+ - Fixed `db:seed` when DB specified
7
+
1
8
  ## 0.1.1
2
9
 
3
10
  - Fixed `db:migrate:status` when DB specified
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Multiverse
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-13 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails