mysqlconn 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mysqlconn.rb +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: badf81aff07d481cde7e4c89646495546d597aee
4
- data.tar.gz: de1e53c12a87cfbedd0d8d939381bcc95ef3e095
3
+ metadata.gz: 7fc26053f18977e0a1f1a01e017f6038f1a59c5b
4
+ data.tar.gz: 8d546159a6ad8d8cf68ec11c7a146b4ebb8af5dd
5
5
  SHA512:
6
- metadata.gz: 0c12155da708b254a753f0e01dc6b06861a6cec02ba5c7847ee47bdcaf7bb7e859d6d65523c0efe6fcf4fd76965b831006e2481b39ffe00988f13bd76ea1764e
7
- data.tar.gz: c1448a4bb70881f48879ed33fce8efbc31b9658bc0727393d1c15357af2ff65a5c90ce4bdb3be7042bff0fe743dbd2422dab21e374e85da462ed17bb909b16b8
6
+ metadata.gz: 1a34890a46a0fb9928bbbde25ad0940e82fd86aebe97f2b838ff1a32df1e966929152d1a483e957d1543d7eab0f87df548b9624166c9a223d0e776972be7fac6
7
+ data.tar.gz: aa24d1be68a683aba81fb7e949871a9340ccdbab4f35bcf8511f7fd0607c6da0030a047a02dba0198a1b32ed0f07fc75ef4b0673f6569fa60c1b28aa7536ce55
@@ -91,11 +91,14 @@ class MysqlConn
91
91
 
92
92
  db['host'] || raise("No #{db_key}.host found")
93
93
 
94
- command = "#{mode_command} -h #{db['host']} #{mode_default_args(args)}"
94
+ command = ""
95
+
96
+ command << "MYSQL_PWD=#{db['password']} " if db['password']
97
+
98
+ command << "#{mode_command} -h #{db['host']} #{mode_default_args(args)}"
95
99
 
96
100
  command << " -P #{db['port']}" if db['port']
97
101
  command << " -u #{db['user']}" if db['user']
98
- command << " -p#{db['password']}" if db['password']
99
102
  if db['database'] && mode == :MYSQL
100
103
  case mode
101
104
  when :MYSQL
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysqlconn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neville Kadwa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-21 00:00:00.000000000 Z
11
+ date: 2015-07-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Save your various database credentials to a configuration file and zip
14
14
  around easily