mysqlconn 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mysqlconn.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fc26053f18977e0a1f1a01e017f6038f1a59c5b
|
4
|
+
data.tar.gz: 8d546159a6ad8d8cf68ec11c7a146b4ebb8af5dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a34890a46a0fb9928bbbde25ad0940e82fd86aebe97f2b838ff1a32df1e966929152d1a483e957d1543d7eab0f87df548b9624166c9a223d0e776972be7fac6
|
7
|
+
data.tar.gz: aa24d1be68a683aba81fb7e949871a9340ccdbab4f35bcf8511f7fd0607c6da0030a047a02dba0198a1b32ed0f07fc75ef4b0673f6569fa60c1b28aa7536ce55
|
data/lib/mysqlconn.rb
CHANGED
@@ -91,11 +91,14 @@ class MysqlConn
|
|
91
91
|
|
92
92
|
db['host'] || raise("No #{db_key}.host found")
|
93
93
|
|
94
|
-
command = "
|
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.
|
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-
|
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
|