load_remote_db 0.1.13 → 0.1.14

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
  SHA256:
3
- metadata.gz: 20da7674611aad46b458d2f1e7a1ea88e284579ebe471165fd76000800f8ead8
4
- data.tar.gz: 1fb103bfa966a4c29e8b9089866e456531861ea25f9913ed2367de85f9cdc719
3
+ metadata.gz: 878913b775795b712c7743355243e1c7db3739133b0dafae137cd3e3990c8705
4
+ data.tar.gz: 96fb5f43ec2c9de1bc3d4043c1ba035d08a485242fca194445aec16ec68d7c7f
5
5
  SHA512:
6
- metadata.gz: fe2c84f74cb4ff3268f46afe08c79bb1e8cb81e68e1ca0a43e229e1292bfb427b3b3fd256cb2ba27f00ccfed91d9d0a729bed0c53be7de564e6d8826e7d30ace
7
- data.tar.gz: 16eab87edb6b6f64bba73e11187ed535f40bb184c2556a72146607f70ef116fffbf69e29198a1a29da5a116100789d692dd58289662db0c869b6d880675ce12d
6
+ metadata.gz: 9ab6d4dd3c264ded79cea95e9d1649eb4964a2e86f5d9fe6346f27619b607f10916aad3de39ba0aa2689136de19ae8460b864982b4db97cdb462f4720304fde6
7
+ data.tar.gz: e2a9e424c91787573fd616fb55bab84e6d1904371d1fc3c6a2767d947fa3569c6d811ef3cc9f6703141a66aa89354a6a03178be7f320faea5c2e0e405f940736
@@ -1,3 +1,3 @@
1
1
  module LoadRemoteDb
2
- VERSION = '0.1.13'.freeze
2
+ VERSION = '0.1.14'.freeze
3
3
  end
@@ -18,7 +18,7 @@ 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']
metadata CHANGED
@@ -1,7 +1,7 @@
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.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Huynh