load_remote_db 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b3d5cea3e682bb673520fb772e03c48a8adfdd5
4
- data.tar.gz: e289335fa2b71e7a9cc3616438b73c1aba8dc2ab
3
+ metadata.gz: e39c071006f52163ab4dbe97f5f202d9982da308
4
+ data.tar.gz: c717ccdd1a6322cab4d0e0be00e3e117eba0ff08
5
5
  SHA512:
6
- metadata.gz: 2f6b98fdd6ec9ec9a79d5fdecd12e9bf79e05313f59e2e30175fb094cc8f36df818b16c15ca9464b39e7d290f162f7c13529398791d573a6f6202a6bd729dd45
7
- data.tar.gz: 596742f4e5dc997b293fd914c0d66c0293eec8e13374a9d2f55ede935ea7a7a07652e67cdadcad14bff293b4e04c439a1cd5697a3eb02fcabb533f516e0f98da
6
+ metadata.gz: '03930c3fc8d856960a40ab88cd7c083f75f4dc1336b67f469b013356c9c42b6c3281e09ce73438ce3be85d3aa6cdbab0ab6831dbd402bce93e0cba7610d359d4'
7
+ data.tar.gz: 89ab0bf5227db8723c980bf350cea08fff2c235f01c326b34e9d4432c468c028f34e871f6b074fc3b5d8cb35c87e400e1d5a052b27545b5e28014521f2b3fe37
@@ -1,3 +1,3 @@
1
1
  module LoadRemoteDb
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
@@ -20,7 +20,7 @@ class RemoteDbLoader
20
20
  "#{Rails.root}/config/database.yml"
21
21
  development_db = YAML.load_file(database_yml)['development']
22
22
 
23
- username = development_db['username']
23
+ username = development_db['username'] || 'root'
24
24
  password = development_db['password']
25
25
  database = development_db['database']
26
26
 
@@ -35,7 +35,7 @@ class RemoteDbLoader
35
35
  shared_path = "#{@deploy_to}/shared"
36
36
 
37
37
  remote_db_config = eval `#{get_db_info_command}`
38
- remote_db_username = remote_db_config["username"]
38
+ remote_db_username = remote_db_config["username"] || 'root'
39
39
  remote_db_password = remote_db_config["password"]
40
40
  remote_db_host = remote_db_config["host"]
41
41
  remote_db_name = remote_db_config["database"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: load_remote_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Huynh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-30 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler