standalone_migrations 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -35,11 +35,11 @@ class MigratorTasks < ::Rake::TaskLib
35
35
  require 'active_record'
36
36
  ENV[@env] ||= @default_env
37
37
 
38
- require 'erb'
39
-
40
38
  if @config.is_a?(Hash)
41
39
  ActiveRecord::Base.configurations = @config
42
40
  else
41
+ require 'erb'
42
+
43
43
  ActiveRecord::Base.configurations = YAML::load(ERB.new(IO.read(@config)).result)
44
44
  end
45
45
  ActiveRecord::Base.establish_connection(ENV[@env])
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{standalone_migrations}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Todd Huss", "Michael Grosser"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Todd Huss