standalone_migrations 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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -37,10 +37,10 @@ module StandaloneMigrations
37
37
  return nil unless File.exists? configuration_file
38
38
  config = YAML.load( IO.read(configuration_file) )
39
39
  {
40
- :config => config[:config][:database],
41
- :migrate_dir => config[:db][:migrate],
42
- :seeds => config[:db][:seeds],
43
- :schema => config[:db][:schema]
40
+ :config => config["config"]["database"],
41
+ :migrate_dir => config["db"]["migrate"],
42
+ :seeds => config["db"]["seeds"],
43
+ :schema => config["db"]["schema"]
44
44
  }
45
45
  end
46
46
 
@@ -29,7 +29,6 @@ module StandaloneMigrations
29
29
  end
30
30
 
31
31
  context "passing configurations as a parameter" do
32
-
33
32
  let(:args) do
34
33
  {
35
34
  :config => "custom/config/database.yml",
@@ -70,13 +69,13 @@ module StandaloneMigrations
70
69
 
71
70
  let(:yaml_hash) do
72
71
  {
73
- :db => {
74
- :seeds => "file/db/seeds.rb",
75
- :migrate => "file/db/migrate",
76
- :schema => "file/db/schema.rb"
72
+ "db" => {
73
+ "seeds" => "file/db/seeds.rb",
74
+ "migrate" => "file/db/migrate",
75
+ "schema" => "file/db/schema.rb"
77
76
  },
78
- :config => {
79
- :database => "file/config/database.yml"
77
+ "config" => {
78
+ "database" => "file/config/database.yml"
80
79
  }
81
80
  }
82
81
  end
@@ -89,19 +88,19 @@ module StandaloneMigrations
89
88
  end
90
89
 
91
90
  it "use custom config from file" do
92
- configurator.config.should == yaml_hash[:config][:database]
91
+ configurator.config.should == yaml_hash["config"]["database"]
93
92
  end
94
93
 
95
94
  it "use custom migrate dir from file" do
96
- configurator.migrate_dir.should == yaml_hash[:db][:migrate]
95
+ configurator.migrate_dir.should == yaml_hash["db"]["migrate"]
97
96
  end
98
97
 
99
98
  it "use custom seeds from file" do
100
- configurator.seeds.should == yaml_hash[:db][:seeds]
99
+ configurator.seeds.should == yaml_hash["db"]["seeds"]
101
100
  end
102
101
 
103
102
  it "use custom schema from file" do
104
- configurator.schema.should == yaml_hash[:db][:schema]
103
+ configurator.schema.should == yaml_hash["db"]["schema"]
105
104
  end
106
105
 
107
106
  after(:all) do
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "standalone_migrations"
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
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"]
12
- s.date = "2011-11-01"
12
+ s.date = "2011-11-04"
13
13
  s.email = "thuss@gabrito.com"
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
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: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-11-01 00:00:00.000000000Z
13
+ date: 2011-11-04 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- requirement: &70305689446500 !ruby/object:Gem::Requirement
17
+ requirement: &70273003731020 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70305689446500
25
+ version_requirements: *70273003731020
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activerecord
28
- requirement: &70305689445960 !ruby/object:Gem::Requirement
28
+ requirement: &70273003730340 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '3'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70305689445960
36
+ version_requirements: *70273003730340
37
37
  description:
38
38
  email: thuss@gabrito.com
39
39
  executables: []