load_remote_db 0.1.13 → 0.1.15

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
- SHA256:
3
- metadata.gz: 20da7674611aad46b458d2f1e7a1ea88e284579ebe471165fd76000800f8ead8
4
- data.tar.gz: 1fb103bfa966a4c29e8b9089866e456531861ea25f9913ed2367de85f9cdc719
2
+ SHA1:
3
+ metadata.gz: f8b499f7364aaecaa15d281aa628c3617f068995
4
+ data.tar.gz: 5285759b634de24b60a18b5aade5f4c3de8be4d6
5
5
  SHA512:
6
- metadata.gz: fe2c84f74cb4ff3268f46afe08c79bb1e8cb81e68e1ca0a43e229e1292bfb427b3b3fd256cb2ba27f00ccfed91d9d0a729bed0c53be7de564e6d8826e7d30ace
7
- data.tar.gz: 16eab87edb6b6f64bba73e11187ed535f40bb184c2556a72146607f70ef116fffbf69e29198a1a29da5a116100789d692dd58289662db0c869b6d880675ce12d
6
+ metadata.gz: 6de3cff8e4d6eae206a0f5500ca031ed4a15919bd26690f5ee9a1782fe4900a43812f5ee5b3d83759ca3ab6a055af83ceee247f24c213bcbbe09947a9bd540d5
7
+ data.tar.gz: 5b683587bf07005fa8658521e1696389357602f01370ec13abb3ea4a2b3a15a5b1de6b66e830d093e7a082901338c893986d6a8672ee3fe98afa8acfd0212bb9
@@ -1,3 +1,3 @@
1
1
  module LoadRemoteDb
2
- VERSION = '0.1.13'.freeze
2
+ VERSION = '0.1.15'.freeze
3
3
  end
@@ -18,12 +18,12 @@ class RemoteDbLoader
18
18
 
19
19
  database_yml =
20
20
  "#{Rails.root}/config/database.yml"
21
- development_db = YAML.load_file(database_yml)['development']
21
+ development_db = YAML.load_file(database_yml)[ENV['RAILS_ENV'] || 'development']
22
22
 
23
23
  username = development_db['username'] || 'root'
24
24
  password = development_db['password']
25
25
  database = development_db['database']
26
- host = development_db['host']
26
+ host = development_db['host'] || 'localhost'
27
27
 
28
28
  begin
29
29
  eval File.read("#{Rails.root}/config/deploy.rb")
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.13
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Huynh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-31 00:00:00.000000000 Z
11
+ date: 2018-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.7.6
80
+ rubygems_version: 2.6.11
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Load MySQL Remote DB for Mina/Capistrano