appfuel 0.4.4 → 0.4.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
  SHA1:
3
- metadata.gz: 791084a5719110e76c41bf1eb305ca214dcad6ae
4
- data.tar.gz: 89567858ea98c91f2e034c709d8662b8ae1ef2a1
3
+ metadata.gz: d3a177c11d50f541f3190be60b12e703604d1154
4
+ data.tar.gz: aec5544881946e4293a347721cb3275bffa27109
5
5
  SHA512:
6
- metadata.gz: 1547177ab48f3ba39e1e7cd71bfe01d22d86341cb7f5affc746ba65cf5011ef0aeeb41acf5d496abf9513d63c9a0263e09ef9ea0ad9deac6e0f85fb8c276be4e
7
- data.tar.gz: 9815ebdf21d91cff4d8deefd97ac0305da22939f2476bf0a12e3cdb9407d30ffee66262552932bfd64f962b403aab1c8b560f4ca3f922fff92f57259d66a832d
6
+ metadata.gz: e229df4c4375776527a8091f8b7e493d741cd103fd2c2b2d8406e0d78db954f3b2e767428adc7d4b0f5041dcdf2541bef4922169b8ad6e01f001bfe50d533d3c
7
+ data.tar.gz: ea420d94728c15cf578bcd8f20535c21354662550c6ad761fa0b3e4920447e212b05dfdf4ca5f9ea01ecc094b45fad523d215e471f3e72553bde4db38813b94f
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. (Pending ap
5
5
 
6
6
 
7
7
  # Releases
8
+ ## [[0.4.5]] (https://github.com/rsb/appfuel/releases/tag/0.4.5) 2017-06-29
9
+ ### Fixed
10
+ - fixed active record migrator, was not updating config properly
11
+
8
12
  ## [[0.4.4]] (https://github.com/rsb/appfuel/releases/tag/0.4.4) 2017-06-21
9
13
  ### Changed
10
14
  - upgraded `active record to 5.1.1`
@@ -10,11 +10,12 @@ module Appfuel
10
10
 
11
11
  config = container[:config]
12
12
  root_path = container[:root_path]
13
- env = container[:env]
14
- db_path = config[:db][:path]
15
- migrations_paths = config[:db][:migrations_path]
13
+ env = container[:env]
14
+ db_path = config[:db][:path]
16
15
  db_config = config[:db][:main]
17
16
 
17
+ migrations_paths = config[:db][:migrations_path]
18
+
18
19
  db_tasks = settings.fetch(:db_tasks) {
19
20
  ActiveRecord::Tasks::DatabaseTasks
20
21
  }
@@ -28,14 +29,13 @@ module Appfuel
28
29
  }
29
30
 
30
31
  active_record_base.configurations = {env => db_config}
31
-
32
- db_tasks.root = root_path
33
- db_tasks.env = env
32
+ db_tasks.root = root_path
33
+ db_tasks.env = env
34
34
  db_tasks.db_dir = db_path
35
35
  db_tasks.migrations_paths = migrations_paths
36
- db_tasks.database_configuration = db_config
37
-
38
36
  db_migrator.migrations_paths = migrations_paths
37
+ db_tasks.database_configuration = {env => db_config}
38
+ db_tasks.current_config = db_config
39
39
  end
40
40
  end
41
41
  end
@@ -5,11 +5,13 @@ module Appfuel
5
5
  include Rake::DSL
6
6
 
7
7
  def install_tasks
8
+ MigrationsInitializer.call
8
9
  load "active_record/railties/databases.rake"
9
10
 
10
11
  namespace :db do
11
12
  task :environment do
12
- MigrationsInitializer.call
13
+ # We do all our initialization first this is just to make
14
+ # rails happy
13
15
  end
14
16
  end
15
17
  end
@@ -1,3 +1,3 @@
1
1
  module Appfuel
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appfuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Scott-Buccleuch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-28 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord