active_record_tasks 1.0.3 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ac78a2d5bb04d804ca7c9bfaf8b151ccbbe45f2
4
- data.tar.gz: 4d1e78b507ca0451d47ba19c2a51095165114da0
3
+ metadata.gz: f28dbbf1b5b1b47fa988aeb1f9ecbfff3074f111
4
+ data.tar.gz: 09c3a22b8c348ddc5e67e14a55d9d59cd89014f1
5
5
  SHA512:
6
- metadata.gz: 4517445375502c934a17d3aeccbec8f873cbae89798e10c5515047f617e1c1e24b6a902e259ee3bc8e54158fedcb5694e938efae9c16d0854135017130e8aa58
7
- data.tar.gz: a2fc3b58b0e8e578afb79c0c46264423175351b8785edf96c3f16c64068af4d7f3ea4c8721fa21491d9db20b695323c992804760d8717dea68f8a6fcf54bd39d
6
+ metadata.gz: 8040b2d4aca4f92ceb7bf5ec3dbc004b4ee9ec4e0e5ff0a2b472f0036685b8c8af87d6fcf059f0661b57d9ff58ed5bb86ffcefb133f95eb86391543a10d68a6b
7
+ data.tar.gz: 83bdaaf6880379d542f02157c99d56cf1cbad82522b19374147d9a188dcac86de459b4ad53c0e816a36bf145fb6b1e78245ca8156227b8ee7ca6d650ae2abe6f
data/README.md CHANGED
@@ -6,7 +6,7 @@ The easiest way to get started with ActiveRecord 4 in a non-rails project.
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'active_record_tasks', '~> 1.0.3'
9
+ gem 'active_record_tasks', '~> 1.0.4'
10
10
 
11
11
  And then execute:
12
12
 
@@ -21,6 +21,8 @@ Rake::Task["db:load_config"].overwrite do
21
21
  ActiveRecord::Base.configurations = ActiveRecord::Tasks::DatabaseTasks.database_configuration = YAML.load File.read(config.db_config_path)
22
22
  ActiveRecord::Tasks::DatabaseTasks.db_dir = config.db_dir
23
23
  ActiveRecord::Tasks::DatabaseTasks.env = config.env
24
+ ActiveRecord::Tasks::DatabaseTasks.root = config.root || File.join(config.db_dir, '..')
25
+ ActiveRecord::Tasks::DatabaseTasks.seed_loader = config.seed_loader
24
26
  end
25
27
 
26
28
  # Migrations need an environment with an already established database connection
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordTasks
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -2,7 +2,7 @@ require 'yaml'
2
2
  require 'erb'
3
3
 
4
4
  module ActiveRecordTasks
5
- DatabaseConfig = Struct.new(:db_dir, :db_config_path, :env)
5
+ DatabaseConfig = Struct.new(:db_dir, :db_config_path, :env, :root, :seed_loader)
6
6
  @config = DatabaseConfig.new
7
7
 
8
8
  def self.configure
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gilbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord