standalone_migrations 4.0.0 → 4.0.1

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWY1ZTQ2MGQyODA4Mzc0NzRjOTBlM2M5Y2JlNzQ0NTNjNmM2Yjk5Ng==
4
+ ZTJmMmQ1NTE4N2YxNDhmYmQ2Y2IyYWJkZTE0YjkyYzdlNjA3NDBiYQ==
5
5
  data.tar.gz: !binary |-
6
- MWUzYzZkYjk0ZmZmMzM3ZjFkN2MyZWVjMGQ1ZWFlYWM3MGJhYTEyNw==
6
+ ZjcyOTYzMDVlNTBhZWJiNmQ5MTk3MTFmYzhlM2Q0NWNhNTQ2MzIxZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzNlZTY3ZDBkYjVkYjA0ZTcyMDIzMjkxODI0MzRiN2U1ZDIwNmY1MzYwNzg3
10
- ODdmN2YwNmFkYTQxYzk5ZmFjMDQxODRjMDhmZmFlMjBiNDY2ZTZmMzE0YTcx
11
- MzBkMjAwYTJkNDk1NzhiMzhkZjAzMTc3ZTBhYzViNjYxZjI5NTU=
9
+ ZjhjMmY4NGU3YTE2Mjg3MjM0YTAxZTAyMjk0OTk5Mzk4MzYzZmNlODhlNTJh
10
+ ODZlNTljZWZlOTlmMzJjYzYwOWZlZmMzMDQwZTEyNzdkNWY1YWM1NTEyMDM2
11
+ OGIxNDhjMjY3NzJkNmJiY2E2ZWUzZmY0MzI1M2NjMDAxY2NkMWI=
12
12
  data.tar.gz: !binary |-
13
- NjA0OGU2NTBmYTU3Mzc3NmM3NGQ2ZTY4MjUwNTVkMGM1MzI0NDQxN2QxMDI1
14
- NzJhN2Y4N2JjYTRlNjQ0MDVhZWIwOWQ4MjA2NjE3OGQwZjZlMDBkYTAzMmU1
15
- YTFhNGUyYTY0ODEzZGUzZThiMzQyMDc3YTBjM2EzODY3YjlkNzI=
13
+ NWY2MGJiM2M4NGU5MDVjMGRjMjE3MTVjNzVkYjUyMjViMDc2OThkZmM5YmQ3
14
+ NzVkYzdlMGQ4NzBmMmE1Zjg1OTdhZTk4MDdkNWQ1YmI4ODRmYWMyODdiYTEz
15
+ NmRmMTJjZTgzN2Y1NjgwMmMzY2UxNjRmY2E0ZjgyOGQ5MDhhZjg=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.0
1
+ 4.0.1
@@ -1,9 +1,11 @@
1
1
  require 'active_support/all'
2
+ require 'yaml'
2
3
 
3
4
  module StandaloneMigrations
4
5
 
5
6
  class InternalConfigurationsProxy
6
7
 
8
+ attr_reader :configurations
7
9
  def initialize(configurations)
8
10
  @configurations = configurations
9
11
  end
@@ -12,7 +12,9 @@ module StandaloneMigrations
12
12
 
13
13
  def load_tasks
14
14
  configure
15
-
15
+ Configurator.environments_config do |proxy|
16
+ ActiveRecord::Tasks::DatabaseTasks.database_configuration = proxy.configurations
17
+ end
16
18
  MinimalRailtieConfig.load_tasks
17
19
  %w(
18
20
  connection
@@ -44,7 +44,6 @@ describe 'Standalone migrations' do
44
44
  $LOAD_PATH.unshift '#{File.expand_path('lib')}'
45
45
  begin
46
46
  require "standalone_migrations"
47
- ActiveRecord::Tasks::DatabaseTasks.database_configuration = YAML.load_file('db/config.yml')
48
47
  StandaloneMigrations::Tasks.load_tasks
49
48
  rescue LoadError => e
50
49
  puts "gem install standalone_migrations to get db:migrate:* tasks! (Error: \#{e})"
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: standalone_migrations 4.0.0 ruby lib
5
+ # stub: standalone_migrations 4.0.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "standalone_migrations"
9
- s.version = "4.0.0"
9
+ s.version = "4.0.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Todd Huss", "Michael Grosser"]
14
- s.date = "2015-03-19"
14
+ s.date = "2015-04-01"
15
15
  s.email = "thuss@gabrito.com"
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standalone_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Huss
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-19 00:00:00.000000000 Z
12
+ date: 2015-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake