heroku_db_clone 0.9.0 → 0.9.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.
- data/lib/heroku_db_clone/client.rb +2 -1
- data/lib/heroku_db_clone/version.rb +1 -1
- metadata +2 -2
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'trollop'
|
2
|
+
require 'yaml'
|
2
3
|
|
3
4
|
module HerokuDbClone
|
4
5
|
class Client
|
@@ -71,7 +72,7 @@ module HerokuDbClone
|
|
71
72
|
# Internal: Get the configuration of the local development database
|
72
73
|
def load_db_information
|
73
74
|
raise "config/database.yml does not exist at the current location: #{File.expand_path('.')}" unless File.exists?('config/database.yml')
|
74
|
-
dev_db = YAML.load_file('config/database.yml')["development"]
|
75
|
+
dev_db = ::YAML.load_file('config/database.yml')["development"]
|
75
76
|
@db_name = dev_db["database"]
|
76
77
|
@db_user = dev_db['username']
|
77
78
|
@db_password = dev_db['password']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku_db_clone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: trollop
|